mirror of
https://github.com/Kunzisoft/KeePassDX.git
synced 2026-12-05 00:02:27 -08:00
First commit to add Magikeyboard
This commit is contained in:
1 parent
ef8db46ae7
commit
fdcb05467c
29 files changed
+703
-2
No files matched your search
@@ -39,6 +39,7 @@ import android.support.v7.preference.PreferenceCategory;
|
||||
import android.support.v7.preference.PreferenceFragmentCompat;
|
||||
import android.util.Log;
|
||||
import android.view.autofill.AutofillManager;
|
||||
import android.view.inputmethod.InputMethodManager;
|
||||
import android.widget.Toast;
|
||||
|
||||
import com.kunzisoft.keepass.BuildConfig;
|
||||
@@ -60,6 +61,8 @@ import com.kunzisoft.keepass.settings.preferenceDialogFragment.ParallelismPrefer
|
||||
import com.kunzisoft.keepass.settings.preferenceDialogFragment.RoundsPreferenceDialogFragmentCompat;
|
||||
import com.kunzisoft.keepass.stylish.Stylish;
|
||||
|
||||
import static android.content.Context.INPUT_METHOD_SERVICE;
|
||||
|
||||
public class NestedSettingsFragment extends PreferenceFragmentCompat
|
||||
implements Preference.OnPreferenceClickListener {
|
||||
|
||||
@@ -277,8 +280,16 @@ public class NestedSettingsFragment extends PreferenceFragmentCompat
|
||||
});
|
||||
}
|
||||
|
||||
// TODO define the checkbox by verifying
|
||||
SwitchPreference keyboardPreference = (SwitchPreference) findPreference(getString(R.string.magic_keyboard_key));
|
||||
preferenceInDevelopment(keyboardPreference);
|
||||
keyboardPreference.setOnPreferenceClickListener(preference -> {
|
||||
if (getContext() != null) {
|
||||
InputMethodManager imeManager = (InputMethodManager) getContext().getSystemService(INPUT_METHOD_SERVICE);
|
||||
if (imeManager != null)
|
||||
imeManager.showInputMethodPicker();
|
||||
}
|
||||
return false;
|
||||
});
|
||||
|
||||
break;
|
||||
|
||||
|
||||
Reference in new issue
Block a user