added Android 12L support
This commit is contained in:
parent
4e78d9c037
commit
ee63ca384e
4 changed files with 5 additions and 3 deletions
|
|
@ -59,8 +59,7 @@ android {
|
|||
defaultConfig {
|
||||
applicationId PACKAGE_NAME
|
||||
minSdk 19
|
||||
//noinspection ExpiredTargetSdkVersion
|
||||
targetSdk 30
|
||||
targetSdk 32
|
||||
versionCode getVerCode()
|
||||
versionName getVerName()
|
||||
}
|
||||
|
|
|
|||
|
|
@ -18,6 +18,8 @@ class ItemSelectGlobalKeyboard extends ItemClickable {
|
|||
|
||||
clickIntent = new Intent(Settings.ACTION_INPUT_METHOD_SETTINGS);
|
||||
clickIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
|
||||
clickIntent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TASK);
|
||||
clickIntent.addFlags(Intent.FLAG_ACTIVITY_NO_HISTORY);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
|||
|
|
@ -26,8 +26,8 @@ public class UI {
|
|||
public static void showSettingsScreen(InputMethodService ims) {
|
||||
Intent prefIntent = new Intent(ims, PreferencesActivity.class);
|
||||
prefIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
|
||||
prefIntent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TASK);
|
||||
prefIntent.addFlags(Intent.FLAG_ACTIVITY_NO_HISTORY);
|
||||
ims.hideWindow();
|
||||
ims.startActivity(prefIntent);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -99,6 +99,7 @@ public class AddWordDialog extends PopupDialog {
|
|||
public static void show(InputMethodService ims, int language, String currentWord) {
|
||||
Intent intent = new Intent(ims, PopupDialogActivity.class);
|
||||
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
|
||||
intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TASK);
|
||||
intent.addFlags(Intent.FLAG_ACTIVITY_NO_HISTORY);
|
||||
intent.putExtra(PARAMETER_DIALOG_TYPE, TYPE);
|
||||
intent.putExtra(PARAMETER_LANGUAGE, language);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue