diff --git a/app/llx/app/build.gradle b/app/llx/app/build.gradle
index dec2aab..3b51abc 100644
--- a/app/llx/app/build.gradle
+++ b/app/llx/app/build.gradle
@@ -142,4 +142,6 @@ dependencies {
implementation libs.lsvg
implementation libs.flows
implementation libs.koin.android
+ implementation libs.androidx.appcomat
+ implementation libs.androidx.material
}
diff --git a/app/llx/app/src/extreme/java/net/pierrox/lightning_launcher/PurchaseProcess.java b/app/llx/app/src/extreme/java/net/pierrox/lightning_launcher/PurchaseProcess.java
index c8c17b7..994796c 100644
--- a/app/llx/app/src/extreme/java/net/pierrox/lightning_launcher/PurchaseProcess.java
+++ b/app/llx/app/src/extreme/java/net/pierrox/lightning_launcher/PurchaseProcess.java
@@ -24,22 +24,23 @@ SOFTWARE.
package net.pierrox.lightning_launcher;
-import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;
-import net.pierrox.lightning_launcher_extreme.R;
+import androidx.appcompat.app.AppCompatActivity;
+
import net.pierrox.lightning_launcher.iab.IabHelper;
import net.pierrox.lightning_launcher.iab.IabResult;
import net.pierrox.lightning_launcher.iab.Inventory;
import net.pierrox.lightning_launcher.iab.Purchase;
+import net.pierrox.lightning_launcher_extreme.R;
import java.util.ArrayList;
-public class PurchaseProcess extends Activity {
+public class PurchaseProcess extends AppCompatActivity {
private static final int REQUEST_PURCHASE_UNLOCK = 1;
private static final String INTENT_EXTRA_SKU = "sku";
diff --git a/app/llx/app/src/extreme/res/values-v21/styles.xml b/app/llx/app/src/extreme/res/values-v21/styles.xml
deleted file mode 100644
index 0cb543f..0000000
--- a/app/llx/app/src/extreme/res/values-v21/styles.xml
+++ /dev/null
@@ -1,8 +0,0 @@
-
-
-
-
\ No newline at end of file
diff --git a/app/llx/app/src/main/AndroidManifest.xml b/app/llx/app/src/main/AndroidManifest.xml
index 7e462b3..65d92ea 100644
--- a/app/llx/app/src/main/AndroidManifest.xml
+++ b/app/llx/app/src/main/AndroidManifest.xml
@@ -54,7 +54,7 @@
+ android:label="@string/customize_ll" />
permissionsToRequest = new ArrayList<>();
final ArrayList permissionsToExplain = new ArrayList<>();
diff --git a/app/llx/core/src/main/java/net/pierrox/lightning_launcher/data/Utils.java b/app/llx/core/src/main/java/net/pierrox/lightning_launcher/data/Utils.java
index 4b4507e..212f838 100644
--- a/app/llx/core/src/main/java/net/pierrox/lightning_launcher/data/Utils.java
+++ b/app/llx/core/src/main/java/net/pierrox/lightning_launcher/data/Utils.java
@@ -63,7 +63,6 @@ import net.pierrox.lightning_launcher.configuration.ItemConfig;
import net.pierrox.lightning_launcher.configuration.JsonFields;
import net.pierrox.lightning_launcher.configuration.PageConfig;
import net.pierrox.lightning_launcher.configuration.ShortcutConfig;
-import net.pierrox.lightning_launcher.configuration.SystemConfig;
import net.pierrox.lightning_launcher.engine.LightningEngine;
import net.pierrox.lightning_launcher.engine.Screen;
import net.pierrox.lightning_launcher.script.Script;
@@ -172,20 +171,10 @@ public class Utils {
// public static int getPageForOrientation(int p, int degrees) {
// return p%ORIENTATION_SHIFT + ORIENTATION_SHIFT*degrees;
// }
- public static final int APP_THEME = 0;
- public static final int APP_THEME_TRANSLUCENT = 1;
- public static final int APP_THEME_NO_ACTION_BAR = 2;
- public static final int APP_THEME_NO_ACTION_BAR_WALLPAPER = 3;
private static final Rect sTmpRect1 = new Rect();
private static final float DYNAMIC_FOLDER_BG_MARGIN = 0.03125f;
private static final Matrix sTempMatrix = new Matrix();
private static final RectF sTempRectF = new RectF();
- private static final int[] sThemes = new int[]{
- R.style.AppLight, R.style.AppDark,
- R.style.AppLightTranslucent, R.style.AppDarkTranslucent,
- R.style.AppLightNoActionBar, R.style.AppDarkNoActionBar,
- R.style.AppLightNoActionBarWallpaper, R.style.AppDarkNoActionBarWallpaper,
- };
public static Method sGetDrawableForDensity;
private static int sStandardIconSize;
private static int sLauncherIconDensity;
@@ -2428,12 +2417,6 @@ public class Utils {
return 0;
}
- public static void setTheme(Context context, int theme) {
- boolean is_light = LLApp.get().getSystemConfig().appStyle == SystemConfig.AppStyle.LIGHT;
- int style = sThemes[theme * 2 + (is_light ? 0 : 1)];
- context.setTheme(style);
- }
-
public static void copyResourceToFile(Resources resources, int id, File out) {
InputStream is = null;
FileOutputStream os = null;
diff --git a/app/llx/core/src/main/res/values-v13/styles.xml b/app/llx/core/src/main/res/values-v13/styles.xml
deleted file mode 100644
index 48fa6fe..0000000
--- a/app/llx/core/src/main/res/values-v13/styles.xml
+++ /dev/null
@@ -1,19 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/app/llx/core/src/main/res/values-v21/styles.xml b/app/llx/core/src/main/res/values-v21/styles.xml
deleted file mode 100644
index ac14003..0000000
--- a/app/llx/core/src/main/res/values-v21/styles.xml
+++ /dev/null
@@ -1,41 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/app/llx/core/src/main/res/values-v28/styles.xml b/app/llx/core/src/main/res/values-v28/styles.xml
index 812b7bf..6807d0f 100644
--- a/app/llx/core/src/main/res/values-v28/styles.xml
+++ b/app/llx/core/src/main/res/values-v28/styles.xml
@@ -1,15 +1,18 @@
-
-
+
\ No newline at end of file
diff --git a/app/llx/core/src/main/res/values/styles.xml b/app/llx/core/src/main/res/values/styles.xml
index 9fb7d96..f54eb40 100644
--- a/app/llx/core/src/main/res/values/styles.xml
+++ b/app/llx/core/src/main/res/values/styles.xml
@@ -1,16 +1,40 @@
-
-
-
-
-
+
-
-
-
-
+
+
+
+
+
+
+
+
+
+