1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-11-12 20:45:04 -05:00

Sadly, KitKat's file manager fails to recognize our mimetype and won't let users import settings

This commit is contained in:
Jesse Vincent 2013-11-05 20:19:27 -05:00
parent 8f19d56f00
commit e20e513039

View File

@ -1373,7 +1373,8 @@ public class Accounts extends K9ListActivity implements OnItemClickListener {
Intent i = new Intent(Intent.ACTION_GET_CONTENT);
i.addFlags(Intent.FLAG_ACTIVITY_NO_HISTORY);
i.addCategory(Intent.CATEGORY_OPENABLE);
i.setType(MimeUtility.K9_SETTINGS_MIME_TYPE);
i.setType("*/*"); // KitKat seems to be ignoring mimetypes and won't load settings
// MimeUtility.K9_SETTINGS_MIME_TYPE);
PackageManager packageManager = getPackageManager();
List<ResolveInfo> infos = packageManager.queryIntentActivities(i, 0);