mirror of
https://github.com/libretro/RetroArch
synced 2025-02-21 09:39:56 +00:00
(Android Java) Create separate class for ReportIME
This commit is contained in:
parent
b142cae10a
commit
7abe27de81
@ -24,6 +24,7 @@
|
|||||||
<category android:name="android.intent.category.LAUNCHER" />
|
<category android:name="android.intent.category.LAUNCHER" />
|
||||||
</intent-filter>
|
</intent-filter>
|
||||||
</activity>
|
</activity>
|
||||||
|
<activity android:name=".browser.ReportIME"></activity>
|
||||||
<activity android:name=".browser.HelpActivity"></activity>
|
<activity android:name=".browser.HelpActivity"></activity>
|
||||||
<activity android:name=".browser.DirectoryActivity"></activity>
|
<activity android:name=".browser.DirectoryActivity"></activity>
|
||||||
<activity android:name=".browser.ROMActivity"></activity>
|
<activity android:name=".browser.ROMActivity"></activity>
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<menu xmlns:android="http://schemas.android.com/apk/res/android" >
|
<menu xmlns:android="http://schemas.android.com/apk/res/android" >
|
||||||
<item android:id="@+id/input_method_select" android:title="@string/input_method" android:showAsAction="ifRoom" />
|
<item android:id="@+id/input_method_select" android:title="@string/input_method" android:showAsAction="ifRoom" />
|
||||||
<item android:id="@+id/report_ime" android:title="@string/report_ime"></item>
|
|
||||||
</menu>
|
</menu>
|
||||||
|
@ -383,6 +383,14 @@
|
|||||||
android:title="R3 Button" />
|
android:title="R3 Button" />
|
||||||
</PreferenceScreen>
|
</PreferenceScreen>
|
||||||
</PreferenceCategory>
|
</PreferenceCategory>
|
||||||
|
<PreferenceCategory android:title="Diagnostics" >
|
||||||
|
<Preference android:title="Report IME"
|
||||||
|
android:summary="Reports the current IME (Input Method Editor) name.">
|
||||||
|
<intent
|
||||||
|
android:targetClass="org.retroarch.browser.ReportIME"
|
||||||
|
android:targetPackage="org.retroarch" />
|
||||||
|
</Preference>
|
||||||
|
</PreferenceCategory>
|
||||||
</PreferenceScreen>
|
</PreferenceScreen>
|
||||||
<PreferenceScreen android:title="Path Options">
|
<PreferenceScreen android:title="Path Options">
|
||||||
<PreferenceCategory android:title="ROM paths">
|
<PreferenceCategory android:title="ROM paths">
|
||||||
|
15
android/phoenix/src/org/retroarch/browser/ReportIME.java
Normal file
15
android/phoenix/src/org/retroarch/browser/ReportIME.java
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
package org.retroarch.browser;
|
||||||
|
|
||||||
|
import android.app.Activity;
|
||||||
|
import android.app.AlertDialog;
|
||||||
|
import android.os.Bundle;
|
||||||
|
import android.provider.Settings;
|
||||||
|
|
||||||
|
public class ReportIME extends Activity {
|
||||||
|
@Override
|
||||||
|
public void onCreate(Bundle savedInstanceState) {
|
||||||
|
super.onCreate(savedInstanceState);
|
||||||
|
String current_ime = Settings.Secure.getString(getContentResolver(), Settings.Secure.DEFAULT_INPUT_METHOD);
|
||||||
|
new AlertDialog.Builder(this).setMessage(current_ime).setNeutralButton("Close", null).show();
|
||||||
|
}
|
||||||
|
}
|
@ -377,10 +377,6 @@ public class RetroArch extends Activity implements
|
|||||||
InputMethodManager imm = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE);
|
InputMethodManager imm = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE);
|
||||||
imm.showInputMethodPicker();
|
imm.showInputMethodPicker();
|
||||||
return true;
|
return true;
|
||||||
case R.id.report_ime:
|
|
||||||
String current_ime = Settings.Secure.getString(getContentResolver(), Settings.Secure.DEFAULT_INPUT_METHOD);
|
|
||||||
new AlertDialog.Builder(this).setMessage(current_ime).setNeutralButton("Close", null).show();
|
|
||||||
return true;
|
|
||||||
default:
|
default:
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user