diff --git a/app/src/main/java/xtr/keymapper/editor/EditorUI.java b/app/src/main/java/xtr/keymapper/editor/EditorUI.java index 2c17dbab..a42da634 100644 --- a/app/src/main/java/xtr/keymapper/editor/EditorUI.java +++ b/app/src/main/java/xtr/keymapper/editor/EditorUI.java @@ -3,7 +3,6 @@ import static xtr.keymapper.keymap.KeymapProfiles.MOUSE_RIGHT; import android.annotation.SuppressLint; -import android.app.AlertDialog; import android.content.Context; import android.os.Handler; import android.os.Looper; @@ -14,6 +13,10 @@ import android.view.ViewGroup; import android.view.WindowManager; +import androidx.appcompat.app.AlertDialog; + +import com.google.android.material.dialog.MaterialAlertDialogBuilder; + import java.util.ArrayList; import java.util.List; @@ -194,7 +197,7 @@ else if (id == R.id.save) { } else if (id == R.id.dpad) { final CharSequence[] items = { "Arrow Keys", "WASD Keys"}; - AlertDialog.Builder builder = new AlertDialog.Builder(context); + MaterialAlertDialogBuilder builder = new MaterialAlertDialogBuilder(context); builder.setTitle("Select Dpad").setItems(items, (dialog, i) -> { if (i == 0) addArrowKeysDpad(defaultX, defaultY); else addWasdDpad(defaultX, defaultY);