1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-11-27 11:42:16 -05:00

Merge pull request #551 from BombTeam/remove-redundant-cast

Remove redundant casts
This commit is contained in:
cketti 2015-02-16 18:46:15 +01:00
commit b4900cc6af
2 changed files with 5 additions and 6 deletions

View File

@ -7,7 +7,6 @@ import android.os.Bundle;
import android.util.Log; import android.util.Log;
import android.view.View; import android.view.View;
import android.view.View.OnClickListener; import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.Toast; import android.widget.Toast;
import com.fsck.k9.Account; import com.fsck.k9.Account;
import com.fsck.k9.K9; import com.fsck.k9.K9;
@ -41,9 +40,9 @@ public class AccountSetupAccountType extends K9Activity implements OnClickListen
public void onCreate(Bundle savedInstanceState) { public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState); super.onCreate(savedInstanceState);
setContentView(R.layout.account_setup_account_type); setContentView(R.layout.account_setup_account_type);
((Button)findViewById(R.id.pop)).setOnClickListener(this); findViewById(R.id.pop).setOnClickListener(this);
((Button)findViewById(R.id.imap)).setOnClickListener(this); findViewById(R.id.imap).setOnClickListener(this);
((Button)findViewById(R.id.webdav)).setOnClickListener(this); findViewById(R.id.webdav).setOnClickListener(this);
String accountUuid = getIntent().getStringExtra(EXTRA_ACCOUNT); String accountUuid = getIntent().getStringExtra(EXTRA_ACCOUNT);
mAccount = Preferences.getPreferences(this).getAccount(accountUuid); mAccount = Preferences.getPreferences(this).getAccount(accountUuid);

View File

@ -33,8 +33,8 @@ public class WelcomeMessage extends K9Activity implements OnClickListener{
welcome.setText(HtmlConverter.htmlToSpanned(getString(R.string.accounts_welcome))); welcome.setText(HtmlConverter.htmlToSpanned(getString(R.string.accounts_welcome)));
welcome.setMovementMethod(LinkMovementMethod.getInstance()); welcome.setMovementMethod(LinkMovementMethod.getInstance());
((Button) findViewById(R.id.next)).setOnClickListener(this); findViewById(R.id.next).setOnClickListener(this);
((Button) findViewById(R.id.import_settings)).setOnClickListener(this); findViewById(R.id.import_settings).setOnClickListener(this);
} }
@Override @Override