Skip to content

Commit

Permalink
opt: when module isnt active, logger alive alertdialog wont show
Browse files Browse the repository at this point in the history
  • Loading branch information
Sevtinge committed Oct 25, 2024
1 parent 59451d8 commit 34e5226
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
*/
package com.sevtinge.hyperceiler.ui;

import static com.sevtinge.hyperceiler.utils.Helpers.isModuleActive;
import static com.sevtinge.hyperceiler.utils.devicesdk.MiDeviceAppUtilsKt.isPad;
import static com.sevtinge.hyperceiler.utils.devicesdk.SystemSDKKt.isMoreHyperOSVersion;
import static com.sevtinge.hyperceiler.utils.log.LogManager.IS_LOGGER_ALIVE;
Expand Down Expand Up @@ -74,7 +75,7 @@ public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
new Thread(() -> SearchHelper.getAllMods(MainActivity.this, savedInstanceState != null)).start();
Helpers.checkXposedActivateState(this);
if (!IS_LOGGER_ALIVE && BuildConfig.BUILD_TYPE != "release" && !mPrefs.getBoolean("prefs_key_development_close_log_alert_dialog", false)) {
if (!IS_LOGGER_ALIVE && isModuleActive && BuildConfig.BUILD_TYPE != "release" && !mPrefs.getBoolean("prefs_key_development_close_log_alert_dialog", false)) {
handler.post(() -> new AlertDialog.Builder(context)
.setCancelable(false)
.setTitle(getResources().getString(R.string.warn))
Expand Down

0 comments on commit 34e5226

Please sign in to comment.