fix issue with switching to previous keyboard when using subtypes (https://keepass2android.codeplex.com/workitem/205)

This commit is contained in:
Philipp Crocoll 2014-12-18 06:22:22 +01:00
parent a626521f97
commit a93fd417ad
4 changed files with 6 additions and 1 deletions

View File

@ -54,7 +54,12 @@ public class ImeSwitcher {
String currentIme = android.provider.Settings.Secure.getString(
ctx.getContentResolver(),
android.provider.Settings.Secure.DEFAULT_INPUT_METHOD);
currentIme += ";"+String.valueOf(
android.provider.Settings.Secure.getInt(
ctx.getContentResolver(),
android.provider.Settings.Secure.SELECTED_INPUT_METHOD_SUBTYPE,
-1)
);
SharedPreferences prefs = ctx.getSharedPreferences(KP2A_SWITCHER, Context.MODE_PRIVATE);
Editor edit = prefs.edit();