mirror of
https://github.com/moparisthebest/k-9
synced 2024-11-30 21:22:26 -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();
|
Account[] accounts = Preferences.getPreferences(this).getAccounts();
|
||||||
Intent intent = getIntent();
|
Intent intent = getIntent();
|
||||||
boolean startup = (boolean)intent.getBooleanExtra(EXTRA_STARTUP, true);
|
boolean startup = intent.getBooleanExtra(EXTRA_STARTUP, true);
|
||||||
if (startup && K9.startIntegratedInbox())
|
if (startup && K9.startIntegratedInbox())
|
||||||
{
|
{
|
||||||
onOpenAccount(integratedInboxAccount);
|
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()
|
mChipColor.setOnPreferenceClickListener(new Preference.OnPreferenceClickListener()
|
||||||
{
|
{
|
||||||
public boolean onPreferenceClick(Preference preference)
|
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()
|
mLedColor.setOnPreferenceClickListener(new Preference.OnPreferenceClickListener()
|
||||||
{
|
{
|
||||||
public boolean onPreferenceClick(Preference preference)
|
public boolean onPreferenceClick(Preference preference)
|
||||||
|
@ -50,7 +50,7 @@ public class AccountSetupAccountType extends K9Activity implements OnClickListen
|
|||||||
|
|
||||||
String accountUuid = getIntent().getStringExtra(EXTRA_ACCOUNT);
|
String accountUuid = getIntent().getStringExtra(EXTRA_ACCOUNT);
|
||||||
mAccount = Preferences.getPreferences(this).getAccount(accountUuid);
|
mAccount = Preferences.getPreferences(this).getAccount(accountUuid);
|
||||||
mMakeDefault = (boolean)getIntent().getBooleanExtra(EXTRA_MAKE_DEFAULT, false);
|
mMakeDefault = getIntent().getBooleanExtra(EXTRA_MAKE_DEFAULT, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void onPop()
|
private void onPop()
|
||||||
|
@ -85,8 +85,8 @@ public class AccountSetupCheckSettings extends K9Activity implements OnClickList
|
|||||||
|
|
||||||
String accountUuid = getIntent().getStringExtra(EXTRA_ACCOUNT);
|
String accountUuid = getIntent().getStringExtra(EXTRA_ACCOUNT);
|
||||||
mAccount = Preferences.getPreferences(this).getAccount(accountUuid);
|
mAccount = Preferences.getPreferences(this).getAccount(accountUuid);
|
||||||
mCheckIncoming = (boolean)getIntent().getBooleanExtra(EXTRA_CHECK_INCOMING, false);
|
mCheckIncoming = getIntent().getBooleanExtra(EXTRA_CHECK_INCOMING, false);
|
||||||
mCheckOutgoing = (boolean)getIntent().getBooleanExtra(EXTRA_CHECK_OUTGOING, false);
|
mCheckOutgoing = getIntent().getBooleanExtra(EXTRA_CHECK_OUTGOING, false);
|
||||||
|
|
||||||
new Thread()
|
new Thread()
|
||||||
{
|
{
|
||||||
|
@ -198,7 +198,7 @@ public class AccountSetupIncoming extends K9Activity implements OnClickListener
|
|||||||
|
|
||||||
String accountUuid = getIntent().getStringExtra(EXTRA_ACCOUNT);
|
String accountUuid = getIntent().getStringExtra(EXTRA_ACCOUNT);
|
||||||
mAccount = Preferences.getPreferences(this).getAccount(accountUuid);
|
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
|
* 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?
|
//FIXME: get Account object again?
|
||||||
accountUuid = getIntent().getStringExtra(EXTRA_ACCOUNT);
|
accountUuid = getIntent().getStringExtra(EXTRA_ACCOUNT);
|
||||||
mAccount = Preferences.getPreferences(this).getAccount(accountUuid);
|
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
|
* If we're being reloaded we override the original account with the one
|
||||||
|
Loading…
Reference in New Issue
Block a user