diff --git a/app/src/main/java/com/drdisagree/iconify/ui/activities/BaseActivity.java b/app/src/main/java/com/drdisagree/iconify/ui/activities/BaseActivity.java index 0748c2233..4ea04745f 100644 --- a/app/src/main/java/com/drdisagree/iconify/ui/activities/BaseActivity.java +++ b/app/src/main/java/com/drdisagree/iconify/ui/activities/BaseActivity.java @@ -2,16 +2,11 @@ import android.content.Context; import android.os.Bundle; -import android.view.View; -import androidx.annotation.NonNull; import androidx.annotation.Nullable; import androidx.appcompat.app.AppCompatActivity; import androidx.appcompat.app.AppCompatDelegate; -import androidx.core.view.OnApplyWindowInsetsListener; -import androidx.core.view.ViewCompat; import androidx.core.view.WindowCompat; -import androidx.core.view.WindowInsetsCompat; import com.drdisagree.iconify.R; import com.drdisagree.iconify.ui.utils.ThemeHelper; diff --git a/app/src/main/java/com/drdisagree/iconify/ui/activities/IconShape.java b/app/src/main/java/com/drdisagree/iconify/ui/activities/IconShape.java index d95ddcbf1..0c9aee1d3 100644 --- a/app/src/main/java/com/drdisagree/iconify/ui/activities/IconShape.java +++ b/app/src/main/java/com/drdisagree/iconify/ui/activities/IconShape.java @@ -5,7 +5,6 @@ import android.annotation.SuppressLint; import android.os.Bundle; -import android.os.Environment; import android.os.Handler; import android.os.Looper; import android.util.Log; @@ -95,8 +94,8 @@ private void addItem(ArrayList pack) { refreshBackground(); } else { - if (!Environment.isExternalStorageManager()) { - SystemUtil.getStoragePermission(this); + if (!SystemUtil.hasStoragePermission()) { + SystemUtil.requestStoragePermission(this); } else { // Show loading dialog loadingDialog.show(getResources().getString(R.string.loading_dialog_wait)); diff --git a/app/src/main/java/com/drdisagree/iconify/ui/activities/MonetEngine.java b/app/src/main/java/com/drdisagree/iconify/ui/activities/MonetEngine.java index d0fc4184e..7c542c39d 100644 --- a/app/src/main/java/com/drdisagree/iconify/ui/activities/MonetEngine.java +++ b/app/src/main/java/com/drdisagree/iconify/ui/activities/MonetEngine.java @@ -26,7 +26,6 @@ import android.graphics.Color; import android.graphics.drawable.GradientDrawable; import android.os.Bundle; -import android.os.Environment; import android.os.Handler; import android.os.Looper; import android.util.Log; @@ -381,8 +380,8 @@ public void onStopTrackingTouch(@NonNull Slider slider) { binding.floatingActionMenu.hide(); showApplyButton = false; binding.enableCustomMonet.setOnClickListener(v -> { - if (!Environment.isExternalStorageManager()) { - SystemUtil.getStoragePermission(this); + if (!SystemUtil.hasStoragePermission()) { + SystemUtil.requestStoragePermission(this); } else if (Objects.equals(selectedStyle, STR_NULL)) { Toast.makeText(MonetEngine.this, getResources().getString(R.string.toast_select_style), Toast.LENGTH_SHORT).show(); } else { @@ -660,8 +659,8 @@ private List> cloneList(final List> src) { } private void importExportSettings(boolean export) { - if (!Environment.isExternalStorageManager()) { - SystemUtil.getStoragePermission(MonetEngine.this); + if (!SystemUtil.hasStoragePermission()) { + SystemUtil.requestStoragePermission(MonetEngine.this); } else { Intent fileIntent = new Intent(); fileIntent.setAction(export ? Intent.ACTION_CREATE_DOCUMENT : Intent.ACTION_GET_CONTENT); diff --git a/app/src/main/java/com/drdisagree/iconify/ui/activities/Onboarding.java b/app/src/main/java/com/drdisagree/iconify/ui/activities/Onboarding.java index dc134f255..af5d0e184 100644 --- a/app/src/main/java/com/drdisagree/iconify/ui/activities/Onboarding.java +++ b/app/src/main/java/com/drdisagree/iconify/ui/activities/Onboarding.java @@ -14,7 +14,6 @@ import android.graphics.drawable.TransitionDrawable; import android.os.Build; import android.os.Bundle; -import android.os.Environment; import android.os.Handler; import android.os.Looper; import android.os.PersistableBundle; @@ -165,13 +164,13 @@ public void onPageSelected(int position) { if (RootUtil.isDeviceRooted()) { if (RootUtil.isMagiskInstalled() || RootUtil.isKSUInstalled()) { - if (!Environment.isExternalStorageManager()) { + if (!SystemUtil.hasStoragePermission()) { showInfo(R.string.need_storage_perm_title, R.string.need_storage_perm_desc); Toast.makeText(Onboarding.this, R.string.toast_storage_access, Toast.LENGTH_SHORT).show(); new Handler(Looper.getMainLooper()).postDelayed(() -> { clickedContinue.set(true); - SystemUtil.getStoragePermission(Onboarding.this); + SystemUtil.requestStoragePermission(Onboarding.this); }, clickedContinue.get() ? 10 : 2000); } else { if (!ModuleUtil.moduleExists()) { @@ -213,13 +212,13 @@ public void onPageSelected(int position) { if (RootUtil.isDeviceRooted()) { if (RootUtil.isMagiskInstalled() || RootUtil.isKSUInstalled()) { - if (!Environment.isExternalStorageManager()) { + if (!SystemUtil.hasStoragePermission()) { showInfo(R.string.need_storage_perm_title, R.string.need_storage_perm_desc); Toast.makeText(Onboarding.this, R.string.toast_storage_access, Toast.LENGTH_SHORT).show(); new Handler(Looper.getMainLooper()).postDelayed(() -> { clickedContinue.set(true); - SystemUtil.getStoragePermission(this); + SystemUtil.requestStoragePermission(this); }, clickedContinue.get() ? 10 : 2000); } else { boolean moduleExists = ModuleUtil.moduleExists(); @@ -353,6 +352,12 @@ protected void onRestoreInstanceState(@NonNull Bundle savedInstanceState) { selectedItemPosition = savedInstanceState.getInt(mData); } + @Override + protected void onResume() { + super.onResume(); + binding.btnNextStep.requestLayout(); + } + @SuppressLint("StaticFieldLeak") private class StartInstallationProcess extends TaskExecutor { @SuppressLint("SetTextI18n") @@ -637,10 +642,4 @@ protected void onCancelled() { Shell.cmd("rm -rf " + Resources.MODULE_DIR).exec(); } } - - @Override - protected void onResume() { - super.onResume(); - binding.btnNextStep.requestLayout(); - } } diff --git a/app/src/main/java/com/drdisagree/iconify/ui/activities/QsPanelMargin.java b/app/src/main/java/com/drdisagree/iconify/ui/activities/QsPanelMargin.java index ca39dbf8d..0db7f3a34 100644 --- a/app/src/main/java/com/drdisagree/iconify/ui/activities/QsPanelMargin.java +++ b/app/src/main/java/com/drdisagree/iconify/ui/activities/QsPanelMargin.java @@ -8,7 +8,6 @@ import android.annotation.SuppressLint; import android.os.Bundle; -import android.os.Environment; import android.os.Handler; import android.os.Looper; import android.view.View; @@ -121,8 +120,8 @@ public void onStopTrackingTouch(@NonNull Slider slider) { binding.qsMarginReset.setVisibility(View.VISIBLE); binding.qsMarginApply.setOnClickListener(v -> { - if (!Environment.isExternalStorageManager()) { - SystemUtil.getStoragePermission(this); + if (!SystemUtil.hasStoragePermission()) { + SystemUtil.requestStoragePermission(this); } else { // Show loading dialog loadingDialog.show(getResources().getString(R.string.loading_dialog_wait)); diff --git a/app/src/main/java/com/drdisagree/iconify/ui/activities/QsTileSize.java b/app/src/main/java/com/drdisagree/iconify/ui/activities/QsTileSize.java index a5dca2b1a..c5ec55c3d 100644 --- a/app/src/main/java/com/drdisagree/iconify/ui/activities/QsTileSize.java +++ b/app/src/main/java/com/drdisagree/iconify/ui/activities/QsTileSize.java @@ -7,7 +7,6 @@ import android.annotation.SuppressLint; import android.os.Bundle; -import android.os.Environment; import android.os.Handler; import android.os.Looper; import android.view.View; @@ -172,8 +171,8 @@ public void onStopTrackingTouch(@NonNull Slider slider) { binding.qsTileHeightReset.setVisibility(View.VISIBLE); binding.qsTileHeightApply.setOnClickListener(v -> { - if (!Environment.isExternalStorageManager()) { - SystemUtil.getStoragePermission(this); + if (!SystemUtil.hasStoragePermission()) { + SystemUtil.requestStoragePermission(this); } else { // Show loading dialog loadingDialog.show(getResources().getString(R.string.loading_dialog_wait)); diff --git a/app/src/main/java/com/drdisagree/iconify/ui/activities/SettingsIcons.java b/app/src/main/java/com/drdisagree/iconify/ui/activities/SettingsIcons.java index 0581fda5d..dc6139a63 100644 --- a/app/src/main/java/com/drdisagree/iconify/ui/activities/SettingsIcons.java +++ b/app/src/main/java/com/drdisagree/iconify/ui/activities/SettingsIcons.java @@ -8,7 +8,6 @@ import android.annotation.SuppressLint; import android.os.Bundle; -import android.os.Environment; import android.os.Handler; import android.os.Looper; import android.util.Log; @@ -122,8 +121,8 @@ protected void onCreate(Bundle savedInstanceState) { binding.disableSettingsIcons.setVisibility(View.VISIBLE); binding.enableSettingsIcons.setOnClickListener(v -> { - if (!Environment.isExternalStorageManager()) { - SystemUtil.getStoragePermission(this); + if (!SystemUtil.hasStoragePermission()) { + SystemUtil.requestStoragePermission(this); } else { // Show loading dialog loadingDialog.show(getResources().getString(R.string.loading_dialog_wait)); diff --git a/app/src/main/java/com/drdisagree/iconify/ui/activities/ToastFrame.java b/app/src/main/java/com/drdisagree/iconify/ui/activities/ToastFrame.java index a5d801c4b..6a23f5bce 100644 --- a/app/src/main/java/com/drdisagree/iconify/ui/activities/ToastFrame.java +++ b/app/src/main/java/com/drdisagree/iconify/ui/activities/ToastFrame.java @@ -5,7 +5,6 @@ import android.annotation.SuppressLint; import android.os.Bundle; -import android.os.Environment; import android.os.Handler; import android.os.Looper; import android.util.Log; @@ -80,8 +79,8 @@ private void addItem(ArrayList pack) { int finalI = i; list.setOnClickListener(v -> { - if (!Environment.isExternalStorageManager()) { - SystemUtil.getStoragePermission(this); + if (!SystemUtil.hasStoragePermission()) { + SystemUtil.requestStoragePermission(this); } else { // Show loading dialog loadingDialog.show(getResources().getString(R.string.loading_dialog_wait)); diff --git a/app/src/main/java/com/drdisagree/iconify/ui/activities/UiRoundness.java b/app/src/main/java/com/drdisagree/iconify/ui/activities/UiRoundness.java index a8f378049..b646f3f20 100644 --- a/app/src/main/java/com/drdisagree/iconify/ui/activities/UiRoundness.java +++ b/app/src/main/java/com/drdisagree/iconify/ui/activities/UiRoundness.java @@ -6,7 +6,6 @@ import android.content.res.Configuration; import android.graphics.drawable.GradientDrawable; import android.os.Bundle; -import android.os.Environment; import android.os.Handler; import android.os.Looper; import android.util.Log; @@ -91,8 +90,8 @@ public void onStopTrackingTouch(@NonNull Slider slider) { }); binding.applyRadius.setOnClickListener(v -> { - if (!Environment.isExternalStorageManager()) { - SystemUtil.getStoragePermission(this); + if (!SystemUtil.hasStoragePermission()) { + SystemUtil.requestStoragePermission(this); } else { // Show loading dialog loadingDialog.show(getResources().getString(R.string.loading_dialog_wait)); diff --git a/app/src/main/java/com/drdisagree/iconify/ui/activities/VolumePanel.java b/app/src/main/java/com/drdisagree/iconify/ui/activities/VolumePanel.java index 2b2b5cd46..816a478ab 100644 --- a/app/src/main/java/com/drdisagree/iconify/ui/activities/VolumePanel.java +++ b/app/src/main/java/com/drdisagree/iconify/ui/activities/VolumePanel.java @@ -8,7 +8,6 @@ import android.annotation.SuppressLint; import android.os.Bundle; -import android.os.Environment; import android.os.Handler; import android.os.Looper; import android.util.Log; @@ -119,8 +118,8 @@ protected void onCreate(Bundle savedInstanceState) { realCheckedId = checkedId1 == -1 ? checkedId2 : checkedId1; binding.volumeStyle.volumeStyleCreateModule.setOnClickListener(v -> { - if (!Environment.isExternalStorageManager()) { - SystemUtil.getStoragePermission(this); + if (!SystemUtil.hasStoragePermission()) { + SystemUtil.requestStoragePermission(this); } else { if (realCheckedId == -1) { Toast.makeText(getApplicationContext(), getResources().getString(R.string.toast_select_style), Toast.LENGTH_SHORT).show(); diff --git a/app/src/main/java/com/drdisagree/iconify/ui/activities/XposedHeaderClock.java b/app/src/main/java/com/drdisagree/iconify/ui/activities/XposedHeaderClock.java index 9409a9bb7..f28da7fa6 100644 --- a/app/src/main/java/com/drdisagree/iconify/ui/activities/XposedHeaderClock.java +++ b/app/src/main/java/com/drdisagree/iconify/ui/activities/XposedHeaderClock.java @@ -22,7 +22,6 @@ import android.graphics.Color; import android.graphics.drawable.GradientDrawable; import android.os.Bundle; -import android.os.Environment; import android.os.Handler; import android.os.Looper; import android.view.View; @@ -99,8 +98,8 @@ protected void onCreate(Bundle savedInstanceState) { // Lockscreen clock font picker binding.pickHeaderClockFont.setOnClickListener(v -> { - if (!Environment.isExternalStorageManager()) { - SystemUtil.getStoragePermission(this); + if (!SystemUtil.hasStoragePermission()) { + SystemUtil.requestStoragePermission(this); } else { browseHeaderClockFont(); } diff --git a/app/src/main/java/com/drdisagree/iconify/ui/activities/XposedHeaderImage.java b/app/src/main/java/com/drdisagree/iconify/ui/activities/XposedHeaderImage.java index 0d1f9c993..e6706f975 100644 --- a/app/src/main/java/com/drdisagree/iconify/ui/activities/XposedHeaderImage.java +++ b/app/src/main/java/com/drdisagree/iconify/ui/activities/XposedHeaderImage.java @@ -13,7 +13,6 @@ import android.app.Activity; import android.content.Intent; import android.os.Bundle; -import android.os.Environment; import android.view.View; import android.widget.Toast; @@ -58,8 +57,8 @@ protected void onCreate(Bundle savedInstanceState) { // Header image picker binding.pickHeaderImage.setOnClickListener(v -> { - if (!Environment.isExternalStorageManager()) { - SystemUtil.getStoragePermission(this); + if (!SystemUtil.hasStoragePermission()) { + SystemUtil.requestStoragePermission(this); } else { browseHeaderImage(); } diff --git a/app/src/main/java/com/drdisagree/iconify/ui/activities/XposedLockscreenClock.java b/app/src/main/java/com/drdisagree/iconify/ui/activities/XposedLockscreenClock.java index 784df6d8d..fa8d5920a 100644 --- a/app/src/main/java/com/drdisagree/iconify/ui/activities/XposedLockscreenClock.java +++ b/app/src/main/java/com/drdisagree/iconify/ui/activities/XposedLockscreenClock.java @@ -22,7 +22,6 @@ import android.graphics.Color; import android.graphics.drawable.GradientDrawable; import android.os.Bundle; -import android.os.Environment; import android.os.Handler; import android.os.Looper; import android.view.View; @@ -107,8 +106,8 @@ protected void onCreate(Bundle savedInstanceState) { // Lockscreen clock font picker binding.pickLsclockFont.setOnClickListener(v -> { - if (!Environment.isExternalStorageManager()) { - SystemUtil.getStoragePermission(this); + if (!SystemUtil.hasStoragePermission()) { + SystemUtil.requestStoragePermission(this); } else { browseLSClockFont(); } diff --git a/app/src/main/java/com/drdisagree/iconify/ui/adapters/ProgressBarAdapter.java b/app/src/main/java/com/drdisagree/iconify/ui/adapters/ProgressBarAdapter.java index b490a2dbf..39256f28d 100644 --- a/app/src/main/java/com/drdisagree/iconify/ui/adapters/ProgressBarAdapter.java +++ b/app/src/main/java/com/drdisagree/iconify/ui/adapters/ProgressBarAdapter.java @@ -6,7 +6,6 @@ import android.annotation.SuppressLint; import android.app.Activity; import android.content.Context; -import android.os.Environment; import android.os.Handler; import android.os.Looper; import android.util.Log; @@ -115,8 +114,8 @@ private void enableOnClickListener(ViewHolder holder) { // Set onClick operation for Enable button holder.btn_enable.setOnClickListener(v -> { - if (!Environment.isExternalStorageManager()) { - SystemUtil.getStoragePermission(context); + if (!SystemUtil.hasStoragePermission()) { + SystemUtil.requestStoragePermission(context); } else { // Show loading dialog loadingDialog.show(context.getResources().getString(R.string.loading_dialog_wait)); diff --git a/app/src/main/java/com/drdisagree/iconify/ui/adapters/SwitchAdapter.java b/app/src/main/java/com/drdisagree/iconify/ui/adapters/SwitchAdapter.java index e807af87b..d513be59c 100644 --- a/app/src/main/java/com/drdisagree/iconify/ui/adapters/SwitchAdapter.java +++ b/app/src/main/java/com/drdisagree/iconify/ui/adapters/SwitchAdapter.java @@ -6,7 +6,6 @@ import android.annotation.SuppressLint; import android.app.Activity; import android.content.Context; -import android.os.Environment; import android.os.Handler; import android.os.Looper; import android.util.Log; @@ -120,8 +119,8 @@ private void enableOnCheckedChangeListener(ViewHolder holder) { private void switchAction(ViewHolder holder, boolean checked) { new Handler(Looper.getMainLooper()).postDelayed(() -> { if (checked) { - if (!Environment.isExternalStorageManager()) { - SystemUtil.getStoragePermission(context); + if (!SystemUtil.hasStoragePermission()) { + SystemUtil.requestStoragePermission(context); holder.aSwitch.setChecked(false); } else { // Show loading dialog diff --git a/app/src/main/java/com/drdisagree/iconify/ui/fragments/Settings.java b/app/src/main/java/com/drdisagree/iconify/ui/fragments/Settings.java index 2093026da..a306a84d4 100644 --- a/app/src/main/java/com/drdisagree/iconify/ui/fragments/Settings.java +++ b/app/src/main/java/com/drdisagree/iconify/ui/fragments/Settings.java @@ -21,7 +21,6 @@ import android.content.pm.PackageManager; import android.net.Uri; import android.os.Bundle; -import android.os.Environment; import android.os.Handler; import android.os.Looper; import android.util.Log; @@ -334,8 +333,8 @@ public void onItemSelected(int dialogId, int selectedIndex) { } private void importExportSettings(boolean export) { - if (!Environment.isExternalStorageManager()) { - SystemUtil.getStoragePermission(requireContext()); + if (!SystemUtil.hasStoragePermission()) { + SystemUtil.requestStoragePermission(requireContext()); } else { Intent fileIntent = new Intent(); fileIntent.setAction(export ? Intent.ACTION_CREATE_DOCUMENT : Intent.ACTION_GET_CONTENT); diff --git a/app/src/main/java/com/drdisagree/iconify/ui/fragments/XposedMenu.java b/app/src/main/java/com/drdisagree/iconify/ui/fragments/XposedMenu.java index 755225162..b6d122526 100644 --- a/app/src/main/java/com/drdisagree/iconify/ui/fragments/XposedMenu.java +++ b/app/src/main/java/com/drdisagree/iconify/ui/fragments/XposedMenu.java @@ -17,7 +17,6 @@ import android.os.Build; import android.os.Bundle; import android.os.CountDownTimer; -import android.os.Environment; import android.os.Handler; import android.os.Looper; import android.util.Log; @@ -282,8 +281,8 @@ private void addItem(ArrayList pack) { } private void importExportSettings(boolean export) { - if (!Environment.isExternalStorageManager()) { - SystemUtil.getStoragePermission(requireContext()); + if (!SystemUtil.hasStoragePermission()) { + SystemUtil.requestStoragePermission(requireContext()); } else { Intent fileIntent = new Intent(); fileIntent.setAction(export ? Intent.ACTION_CREATE_DOCUMENT : Intent.ACTION_GET_CONTENT); diff --git a/app/src/main/java/com/drdisagree/iconify/ui/utils/ViewHelper.java b/app/src/main/java/com/drdisagree/iconify/ui/utils/ViewHelper.java index 67b04a600..b0f43239c 100644 --- a/app/src/main/java/com/drdisagree/iconify/ui/utils/ViewHelper.java +++ b/app/src/main/java/com/drdisagree/iconify/ui/utils/ViewHelper.java @@ -1,12 +1,8 @@ package com.drdisagree.iconify.ui.utils; -import android.annotation.SuppressLint; import android.content.Context; -import android.content.res.Resources; -import android.content.res.TypedArray; import android.util.TypedValue; -import androidx.annotation.AttrRes; import androidx.appcompat.app.AppCompatActivity; import androidx.appcompat.widget.Toolbar; import androidx.recyclerview.widget.RecyclerView; diff --git a/app/src/main/java/com/drdisagree/iconify/utils/SystemUtil.java b/app/src/main/java/com/drdisagree/iconify/utils/SystemUtil.java index aaa065f2b..c5f55a6a7 100644 --- a/app/src/main/java/com/drdisagree/iconify/utils/SystemUtil.java +++ b/app/src/main/java/com/drdisagree/iconify/utils/SystemUtil.java @@ -7,6 +7,7 @@ import static com.drdisagree.iconify.common.Preferences.VER_CODE; import static com.drdisagree.iconify.common.References.DEVICE_BOOT_ID_CMD; +import android.Manifest; import android.annotation.SuppressLint; import android.app.Activity; import android.content.Context; @@ -14,11 +15,13 @@ import android.content.res.Configuration; import android.graphics.Insets; import android.net.Uri; +import android.os.Environment; import android.view.WindowInsets; import android.view.WindowMetrics; import android.widget.Toast; import androidx.annotation.NonNull; +import androidx.core.app.ActivityCompat; import com.drdisagree.iconify.BuildConfig; import com.drdisagree.iconify.Iconify; @@ -128,12 +131,21 @@ public static int getSavedVersionCode() { return Prefs.getInt(VER_CODE, -1); } - public static void getStoragePermission(Context context) { + public static boolean hasStoragePermission() { + return Environment.isExternalStorageManager() || Environment.isExternalStorageLegacy(); + } + + public static void requestStoragePermission(Context context) { Intent intent = new Intent(); intent.setAction(ACTION_MANAGE_APP_ALL_FILES_ACCESS_PERMISSION); - Uri uri = Uri.fromParts("package", BuildConfig.APPLICATION_ID, null); - intent.setData(uri); - context.startActivity(intent); + intent.setData(Uri.fromParts("package", BuildConfig.APPLICATION_ID, null)); + ((Activity) context).startActivityForResult(intent, 0); + + ActivityCompat.requestPermissions((Activity) context, new String[]{ + Manifest.permission.READ_EXTERNAL_STORAGE, + Manifest.permission.WRITE_EXTERNAL_STORAGE, + Manifest.permission.MANAGE_EXTERNAL_STORAGE + }, 0); } public static void enableRestartSystemuiAfterBoot() { diff --git a/app/src/main/java/com/drdisagree/iconify/utils/compiler/VolumeCompiler.java b/app/src/main/java/com/drdisagree/iconify/utils/compiler/VolumeCompiler.java index 6a5611513..6e0ef1512 100644 --- a/app/src/main/java/com/drdisagree/iconify/utils/compiler/VolumeCompiler.java +++ b/app/src/main/java/com/drdisagree/iconify/utils/compiler/VolumeCompiler.java @@ -3,7 +3,6 @@ import static com.drdisagree.iconify.common.Dynamic.ZIP; import static com.drdisagree.iconify.utils.helpers.Logger.writeLog; -import android.os.Environment; import android.util.Log; import com.drdisagree.iconify.common.Resources; diff --git a/app/src/main/java/com/drdisagree/iconify/xposed/mods/QSTransparency.java b/app/src/main/java/com/drdisagree/iconify/xposed/mods/QSTransparency.java index 02692d3f9..7f6104aed 100644 --- a/app/src/main/java/com/drdisagree/iconify/xposed/mods/QSTransparency.java +++ b/app/src/main/java/com/drdisagree/iconify/xposed/mods/QSTransparency.java @@ -21,9 +21,9 @@ public class QSTransparency extends ModPack { private static final String TAG = "Iconify - " + QSTransparency.class.getSimpleName() + ": "; + private final float keyguard_alpha = 0.85f; boolean qsTransparencyActive = false; boolean onlyNotifTransparencyActive = false; - private final float keyguard_alpha = 0.85f; private float alpha = 60; public QSTransparency(Context context) {