From d5676d683f031a2d23f4e01e0ada0afd58dc9b89 Mon Sep 17 00:00:00 2001 From: Jules Aguillon Date: Sat, 10 Feb 2024 17:33:42 +0100 Subject: Fix compatibility with Android 3.0 Incompatible APIs were used in the custom layouts and the extra keys options. Add @TargetApi annotations to help catch similar issues in the future with the help of 'gradle lint'. --- srcs/juloo.keyboard2/prefs/CustomExtraKeysPreference.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'srcs/juloo.keyboard2/prefs/CustomExtraKeysPreference.java') diff --git a/srcs/juloo.keyboard2/prefs/CustomExtraKeysPreference.java b/srcs/juloo.keyboard2/prefs/CustomExtraKeysPreference.java index 9d8395f..cf47d46 100644 --- a/srcs/juloo.keyboard2/prefs/CustomExtraKeysPreference.java +++ b/srcs/juloo.keyboard2/prefs/CustomExtraKeysPreference.java @@ -51,7 +51,7 @@ public class CustomExtraKeysPreference extends ListGroupPreference void select(final SelectionCallback callback) { new AlertDialog.Builder(getContext()) - .setView(R.layout.dialog_edit_text) + .setView(View.inflate(getContext(), R.layout.dialog_edit_text, null)) .setPositiveButton(android.R.string.ok, new DialogInterface.OnClickListener(){ public void onClick(DialogInterface dialog, int which) { -- cgit v1.2.3