remove redundant cast Button to WelcomeMessage

findViewById(R.id.next) and
findViewById(R.id.import_settings)
are Button so it’s redundant to cast it to Button
This commit is contained in:
Marine 2015-02-16 15:10:34 +01:00
parent 63047e0ac6
commit f5cac2c71f
1 changed files with 2 additions and 2 deletions

View File

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