Skip to content

Commit

Permalink
Fixed tile not being properly added to the Quick Settings Panel on so…
Browse files Browse the repository at this point in the history
…me devices.
  • Loading branch information
DavidBerdik committed Aug 26, 2022
1 parent b5238f5 commit 0d9a4ef
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import de.robv.android.xposed.callbacks.XC_LoadPackage
class SystemUIHooker {
companion object {
private const val tileId = "custom(${BuildConfig.APPLICATION_ID}/.QuickTile)"
private var tileAdded = false
private var tileRevealed = false

@SuppressLint("PrivateApi")
Expand All @@ -20,7 +19,7 @@ class SystemUIHooker {
name == "setTiles" && isPublic && paramCount == 0
}.hookMethod {
before { param ->
if (!tileAdded) {
if (!tileRevealed) {
val tileHost = XposedHelpers.getObjectField(param.thisObject, "mHost")

/*
Expand All @@ -44,7 +43,6 @@ class SystemUIHooker {
}

XposedBridge.log("[Let Me Downgrade] Tile added to quick settings panel.")
tileAdded = true
}
}
}
Expand Down

0 comments on commit 0d9a4ef

Please sign in to comment.