mirror of
https://github.com/libretro/RetroArch
synced 2025-04-01 04:20:27 +00:00
[Android] Remove a redundant context variable in ReportIME.java.
This commit is contained in:
parent
2464e30ca5
commit
a16be6af65
@ -15,21 +15,19 @@ public final class ReportIME extends Activity {
|
|||||||
String current_ime = Settings.Secure.getString(getContentResolver(),
|
String current_ime = Settings.Secure.getString(getContentResolver(),
|
||||||
Settings.Secure.DEFAULT_INPUT_METHOD);
|
Settings.Secure.DEFAULT_INPUT_METHOD);
|
||||||
|
|
||||||
final Activity ctx = this;
|
|
||||||
AlertDialog.Builder dialog = new AlertDialog.Builder(this)
|
AlertDialog.Builder dialog = new AlertDialog.Builder(this)
|
||||||
.setMessage(current_ime)
|
.setMessage(current_ime)
|
||||||
.setNeutralButton(R.string.close,
|
.setNeutralButton(R.string.close,
|
||||||
new DialogInterface.OnClickListener() {
|
new DialogInterface.OnClickListener() {
|
||||||
@Override
|
@Override
|
||||||
public void onClick(DialogInterface dialog,
|
public void onClick(DialogInterface dialog, int which) {
|
||||||
int which) {
|
finish();
|
||||||
ctx.finish();
|
|
||||||
}
|
}
|
||||||
}).setCancelable(true)
|
}).setCancelable(true)
|
||||||
.setOnCancelListener(new DialogInterface.OnCancelListener() {
|
.setOnCancelListener(new DialogInterface.OnCancelListener() {
|
||||||
@Override
|
@Override
|
||||||
public void onCancel(DialogInterface dialog) {
|
public void onCancel(DialogInterface dialog) {
|
||||||
ctx.finish();
|
finish();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user