mirror of
https://github.com/moparisthebest/k-9
synced 2024-11-27 19:52:17 -05:00
Get rid of some redundant casts (Per IntelliJ)
This commit is contained in:
parent
fde438fbfb
commit
0677bd9e77
@ -342,7 +342,7 @@ public class Accounts extends K9ListActivity implements OnItemClickListener, OnC
|
||||
|
||||
Account[] accounts = Preferences.getPreferences(this).getAccounts();
|
||||
Intent intent = getIntent();
|
||||
boolean startup = (boolean)intent.getBooleanExtra(EXTRA_STARTUP, true);
|
||||
boolean startup = intent.getBooleanExtra(EXTRA_STARTUP, true);
|
||||
if (startup && K9.startIntegratedInbox())
|
||||
{
|
||||
onOpenAccount(integratedInboxAccount);
|
||||
|
@ -625,7 +625,7 @@ public class AccountSettings extends K9PreferenceActivity
|
||||
|
||||
|
||||
|
||||
mChipColor = (Preference)findPreference(PREFERENCE_CHIP_COLOR);
|
||||
mChipColor = findPreference(PREFERENCE_CHIP_COLOR);
|
||||
mChipColor.setOnPreferenceClickListener(new Preference.OnPreferenceClickListener()
|
||||
{
|
||||
public boolean onPreferenceClick(Preference preference)
|
||||
@ -635,7 +635,7 @@ public class AccountSettings extends K9PreferenceActivity
|
||||
}
|
||||
});
|
||||
|
||||
mLedColor = (Preference)findPreference(PREFERENCE_LED_COLOR);
|
||||
mLedColor = findPreference(PREFERENCE_LED_COLOR);
|
||||
mLedColor.setOnPreferenceClickListener(new Preference.OnPreferenceClickListener()
|
||||
{
|
||||
public boolean onPreferenceClick(Preference preference)
|
||||
|
@ -50,7 +50,7 @@ public class AccountSetupAccountType extends K9Activity implements OnClickListen
|
||||
|
||||
String accountUuid = getIntent().getStringExtra(EXTRA_ACCOUNT);
|
||||
mAccount = Preferences.getPreferences(this).getAccount(accountUuid);
|
||||
mMakeDefault = (boolean)getIntent().getBooleanExtra(EXTRA_MAKE_DEFAULT, false);
|
||||
mMakeDefault = getIntent().getBooleanExtra(EXTRA_MAKE_DEFAULT, false);
|
||||
}
|
||||
|
||||
private void onPop()
|
||||
|
@ -85,8 +85,8 @@ public class AccountSetupCheckSettings extends K9Activity implements OnClickList
|
||||
|
||||
String accountUuid = getIntent().getStringExtra(EXTRA_ACCOUNT);
|
||||
mAccount = Preferences.getPreferences(this).getAccount(accountUuid);
|
||||
mCheckIncoming = (boolean)getIntent().getBooleanExtra(EXTRA_CHECK_INCOMING, false);
|
||||
mCheckOutgoing = (boolean)getIntent().getBooleanExtra(EXTRA_CHECK_OUTGOING, false);
|
||||
mCheckIncoming = getIntent().getBooleanExtra(EXTRA_CHECK_INCOMING, false);
|
||||
mCheckOutgoing = getIntent().getBooleanExtra(EXTRA_CHECK_OUTGOING, false);
|
||||
|
||||
new Thread()
|
||||
{
|
||||
|
@ -198,7 +198,7 @@ public class AccountSetupIncoming extends K9Activity implements OnClickListener
|
||||
|
||||
String accountUuid = getIntent().getStringExtra(EXTRA_ACCOUNT);
|
||||
mAccount = Preferences.getPreferences(this).getAccount(accountUuid);
|
||||
mMakeDefault = (boolean)getIntent().getBooleanExtra(EXTRA_MAKE_DEFAULT, false);
|
||||
mMakeDefault = getIntent().getBooleanExtra(EXTRA_MAKE_DEFAULT, false);
|
||||
|
||||
/*
|
||||
* If we're being reloaded we override the original account with the one
|
||||
|
@ -197,7 +197,7 @@ public class AccountSetupOutgoing extends K9Activity implements OnClickListener,
|
||||
//FIXME: get Account object again?
|
||||
accountUuid = getIntent().getStringExtra(EXTRA_ACCOUNT);
|
||||
mAccount = Preferences.getPreferences(this).getAccount(accountUuid);
|
||||
mMakeDefault = (boolean)getIntent().getBooleanExtra(EXTRA_MAKE_DEFAULT, false);
|
||||
mMakeDefault = getIntent().getBooleanExtra(EXTRA_MAKE_DEFAULT, false);
|
||||
|
||||
/*
|
||||
* If we're being reloaded we override the original account with the one
|
||||
|
Loading…
Reference in New Issue
Block a user