[Android] Remove a redundant context variable in ReportIME.java.

This commit is contained in:
Lioncash 2013-10-08 23:52:10 -04:00
parent 2464e30ca5
commit a16be6af65

View File

@ -15,21 +15,19 @@ public final class ReportIME extends Activity {
String current_ime = Settings.Secure.getString(getContentResolver(),
Settings.Secure.DEFAULT_INPUT_METHOD);
final Activity ctx = this;
AlertDialog.Builder dialog = new AlertDialog.Builder(this)
.setMessage(current_ime)
.setNeutralButton(R.string.close,
new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialog,
int which) {
ctx.finish();
public void onClick(DialogInterface dialog, int which) {
finish();
}
}).setCancelable(true)
.setOnCancelListener(new DialogInterface.OnCancelListener() {
@Override
public void onCancel(DialogInterface dialog) {
ctx.finish();
finish();
}
});