Merge "Tidy warnings in AccountSettingsFragment" into jb-ub-mail-ur10

This commit is contained in:
Tony Mantler 2013-09-05 18:04:07 +00:00 committed by Android (Google) Code Review
commit 19c11c0b77
1 changed files with 6 additions and 6 deletions

View File

@ -141,7 +141,6 @@ public class AccountSettingsFragment extends PreferenceFragment
private Ringtone mRingtone;
private AccountPreferences mAccountPreferences;
private FolderPreferences mInboxFolderPreferences;
/** The e-mail of the account being edited. */
@ -338,9 +337,9 @@ public class AccountSettingsFragment extends PreferenceFragment
/**
* Listen to all preference changes in this class.
* @param preference
* @param newValue
* @return
* @param preference The changed Preference
* @param newValue The new value of the Preference
* @return True to update the state of the Preference with the new value
*/
@Override
public boolean onPreferenceChange(Preference preference, Object newValue){
@ -581,12 +580,13 @@ public class AccountSettingsFragment extends PreferenceFragment
folderCursor.close();
}
mAccountPreferences = new AccountPreferences(mContext, mUiAccount.name);
final AccountPreferences accountPreferences =
new AccountPreferences(mContext, mUiAccount.name);
mInboxFolderPreferences =
new FolderPreferences(mContext, mUiAccount.name, folder, true);
NotificationUtils.moveNotificationSetting(
mAccountPreferences, mInboxFolderPreferences);
accountPreferences, mInboxFolderPreferences);
final String ringtoneUri = mInboxFolderPreferences.getNotificationRingtoneUri();
if (!TextUtils.isEmpty(ringtoneUri)) {