Merge "Clean up usage of Account.name when accessing account/folder prefs" into jb-ub-mail-ur10
This commit is contained in:
commit
67e78a67ba
@ -321,7 +321,7 @@ public class NotificationController {
|
|||||||
|
|
||||||
if (folder != null) {
|
if (folder != null) {
|
||||||
final FolderPreferences folderPreferences = new FolderPreferences(
|
final FolderPreferences folderPreferences = new FolderPreferences(
|
||||||
mContext, uiAccount.name, folder, true /* inbox */);
|
mContext, uiAccount.getEmailAddress(), folder, true /* inbox */);
|
||||||
|
|
||||||
ringtoneUri = folderPreferences.getNotificationRingtoneUri();
|
ringtoneUri = folderPreferences.getNotificationRingtoneUri();
|
||||||
vibrate = folderPreferences.isNotificationVibrateEnabled();
|
vibrate = folderPreferences.isNotificationVibrateEnabled();
|
||||||
|
@ -581,9 +581,9 @@ public class AccountSettingsFragment extends PreferenceFragment
|
|||||||
}
|
}
|
||||||
|
|
||||||
final AccountPreferences accountPreferences =
|
final AccountPreferences accountPreferences =
|
||||||
new AccountPreferences(mContext, mUiAccount.name);
|
new AccountPreferences(mContext, mUiAccount.getEmailAddress());
|
||||||
mInboxFolderPreferences =
|
mInboxFolderPreferences =
|
||||||
new FolderPreferences(mContext, mUiAccount.name, folder, true);
|
new FolderPreferences(mContext, mUiAccount.getEmailAddress(), folder, true);
|
||||||
|
|
||||||
NotificationUtils.moveNotificationSetting(
|
NotificationUtils.moveNotificationSetting(
|
||||||
accountPreferences, mInboxFolderPreferences);
|
accountPreferences, mInboxFolderPreferences);
|
||||||
|
@ -254,7 +254,7 @@ public class AccountSetupOptions extends AccountSetupActivity implements OnClick
|
|||||||
// We can move the notification setting to the inbox FolderPreferences later, once
|
// We can move the notification setting to the inbox FolderPreferences later, once
|
||||||
// we know what the inbox is
|
// we know what the inbox is
|
||||||
final AccountPreferences accountPreferences =
|
final AccountPreferences accountPreferences =
|
||||||
new AccountPreferences(context, account.mEmailAddress);
|
new AccountPreferences(context, account.getEmailAddress());
|
||||||
accountPreferences.setDefaultInboxNotificationsEnabled(mNotifyView.isChecked());
|
accountPreferences.setDefaultInboxNotificationsEnabled(mNotifyView.isChecked());
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -144,7 +144,8 @@ public class EmailPreferenceMigrator extends BasePreferenceMigrator {
|
|||||||
}
|
}
|
||||||
|
|
||||||
final FolderPreferences folderPreferences =
|
final FolderPreferences folderPreferences =
|
||||||
new FolderPreferences(context, account.name, folder, true /* inbox */);
|
new FolderPreferences(context, account.getEmailAddress(), folder,
|
||||||
|
true /* inbox */);
|
||||||
|
|
||||||
@SuppressWarnings("deprecation")
|
@SuppressWarnings("deprecation")
|
||||||
final boolean notify = (ecAccount.getFlags()
|
final boolean notify = (ecAccount.getFlags()
|
||||||
|
Loading…
Reference in New Issue
Block a user