Skip to content

Commit

Permalink
Directly use getColorAttrDefaultColor() instead of getColorAttr().def…
Browse files Browse the repository at this point in the history
…aultColor

Signed-off-by: DrDisagree <[email protected]>
  • Loading branch information
Mahmud0808 committed Nov 11, 2024
1 parent 1583c6e commit 93a100a
Showing 1 changed file with 7 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,10 @@ import com.drdisagree.iconify.utils.color.monet.quantize.QuantizerCelebi
import com.drdisagree.iconify.utils.color.monet.score.Score
import com.drdisagree.iconify.xposed.ModPack
import com.drdisagree.iconify.xposed.modules.utils.ActivityLauncherUtils
import com.drdisagree.iconify.xposed.modules.utils.Helpers
import com.drdisagree.iconify.xposed.modules.utils.Helpers.findClassInArray
import com.drdisagree.iconify.xposed.modules.utils.Helpers.isMethodAvailable
import com.drdisagree.iconify.xposed.modules.utils.Helpers.isQsTileOverlayEnabled
import com.drdisagree.iconify.xposed.modules.utils.SettingsLibUtils.Companion.getColorAttr
import com.drdisagree.iconify.xposed.modules.utils.SettingsLibUtils.Companion.getColorAttrDefaultColor
import com.drdisagree.iconify.xposed.modules.utils.TouchAnimator
import com.drdisagree.iconify.xposed.modules.utils.VibrationUtils
import com.drdisagree.iconify.xposed.modules.utils.ViewHelper.applyBlur
Expand Down Expand Up @@ -2195,23 +2194,14 @@ class OpQsHeader(context: Context?) : ModPack(context!!) {
}

mContext.apply {
colorAccent = getColorAttr(
colorAccent = getColorAttrDefaultColor(
this,
resources.getIdentifier(
"colorAccent",
"attr",
FRAMEWORK_PACKAGE
)
).defaultColor
colorPrimary = getColorAttr(
android.R.attr.colorAccent
)
colorPrimary = getColorAttrDefaultColor(
this,
resources.getIdentifier(
"colorPrimary",
"attr",
FRAMEWORK_PACKAGE
)
).defaultColor

android.R.attr.colorPrimary
)
qsTileCornerRadius = resources.getDimensionPixelSize(
resources.getIdentifier(
"qs_corner_radius",
Expand Down

0 comments on commit 93a100a

Please sign in to comment.