1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-11-14 05:25:07 -05:00

merge fixups

This commit is contained in:
Jesse Vincent 2012-04-10 19:44:17 -04:00 committed by Andrew Chen
parent 2152512529
commit 5fa5b69688
3 changed files with 9 additions and 14 deletions

View File

@ -26,7 +26,9 @@
<uses-permission android:name="android.permission.VIBRATE"/> <uses-permission android:name="android.permission.VIBRATE"/>
<uses-permission android:name="android.permission.WAKE_LOCK"/> <uses-permission android:name="android.permission.WAKE_LOCK"/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> <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" /> <uses-permission android:name="org.thialfihar.android.apg.permission.READ_KEY_DETAILS" />
<permission android:name="com.fsck.k9.permission.READ_ATTACHMENT" <permission android:name="com.fsck.k9.permission.READ_ATTACHMENT"

View File

@ -132,12 +132,6 @@ public class Account implements BaseAccount {
// decide on owners name // decide on owners name
String 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 { try {
Account account = Preferences.getPreferences(context).getDefaultAccount(); Account account = Preferences.getPreferences(context).getDefaultAccount();
if (account != null) { if (account != null) {
@ -146,7 +140,6 @@ public class Account implements BaseAccount {
} catch (Exception e) { } catch (Exception e) {
Log.e(K9.LOG_TAG, "Could not get default account name", e); Log.e(K9.LOG_TAG, "Could not get default account name", e);
} }
}
if (name == null) { if (name == null) {
name = ""; name = "";
} }

View File

@ -140,7 +140,7 @@ public class AccountSetupCheckSettings extends K9Activity implements OnClickList
setMessage(R.string.account_setup_check_settings_fetch); setMessage(R.string.account_setup_check_settings_fetch);
} }
MessagingController.getInstance(getApplication()).listFoldersSynchronous(mAccount, true, null); 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) { if (mDestroyed) {
return; return;