mirror of
https://github.com/moparisthebest/k-9
synced 2024-11-11 12:05:06 -05:00
merge fixups
This commit is contained in:
parent
2152512529
commit
5fa5b69688
@ -26,7 +26,9 @@
|
||||
<uses-permission android:name="android.permission.VIBRATE"/>
|
||||
<uses-permission android:name="android.permission.WAKE_LOCK"/>
|
||||
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
|
||||
|
||||
<!-- Needed to get the owner name which is used when the first mail account is created -->
|
||||
<uses-permission android:name="android.permission.READ_OWNER_DATA"/>
|
||||
<uses-permission android:name="android.permission.GET_ACCOUNTS"/>
|
||||
<uses-permission android:name="org.thialfihar.android.apg.permission.READ_KEY_DETAILS" />
|
||||
|
||||
<permission android:name="com.fsck.k9.permission.READ_ATTACHMENT"
|
||||
|
@ -133,19 +133,12 @@ public class Account implements BaseAccount {
|
||||
// decide on owners name
|
||||
String name = "";
|
||||
try {
|
||||
name = Contacts.getInstance(context).getOwnerName();
|
||||
} catch (Exception e) {
|
||||
Log.e(K9.LOG_TAG, "Could not get owner name, using default account name", e);
|
||||
}
|
||||
if (name == null || name.length() == 0) {
|
||||
try {
|
||||
Account account = Preferences.getPreferences(context).getDefaultAccount();
|
||||
if (account != null) {
|
||||
name = account.getName();
|
||||
}
|
||||
} catch (Exception e) {
|
||||
Log.e(K9.LOG_TAG, "Could not get default account name", e);
|
||||
Account account = Preferences.getPreferences(context).getDefaultAccount();
|
||||
if (account != null) {
|
||||
name = account.getName();
|
||||
}
|
||||
} catch (Exception e) {
|
||||
Log.e(K9.LOG_TAG, "Could not get default account name", e);
|
||||
}
|
||||
if (name == null) {
|
||||
name = "";
|
||||
|
@ -140,7 +140,7 @@ public class AccountSetupCheckSettings extends K9Activity implements OnClickList
|
||||
setMessage(R.string.account_setup_check_settings_fetch);
|
||||
}
|
||||
MessagingController.getInstance(getApplication()).listFoldersSynchronous(mAccount, true, null);
|
||||
MessagingController.getInstance(getApplication()).synchronizeMailbox(mAccount, K9.INBOX , null, null);
|
||||
MessagingController.getInstance(getApplication()).synchronizeMailbox(mAccount, mAccount.getInboxFolderName() , null, null);
|
||||
}
|
||||
if (mDestroyed) {
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user