Skip to content

Commit

Permalink
Merge pull request #688 from DHD2280/beta
Browse files Browse the repository at this point in the history
LockscreenClockParent: load layout with appContext
  • Loading branch information
DHD2280 authored Nov 30, 2024
2 parents 0f70d06 + 1ed61a5 commit 8d6558b
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import android.widget.CompoundButton
import android.widget.FrameLayout
import androidx.lifecycle.lifecycleScope
import com.drdisagree.iconify.BuildConfig
import com.drdisagree.iconify.Iconify.Companion.appContext
import com.drdisagree.iconify.R
import com.drdisagree.iconify.common.Preferences.LSCLOCK_STYLE
import com.drdisagree.iconify.common.Preferences.LSCLOCK_SWITCH
Expand Down Expand Up @@ -110,7 +111,7 @@ class LockscreenClockParent : BaseFragment() {
maxIndex,
getInt(LSCLOCK_STYLE, 0) == maxIndex,
LOCKSCREEN_CLOCK_LAYOUT + maxIndex,
LayoutInflater.from(context).inflate(
LayoutInflater.from(appContext).inflate(
resources.getIdentifier(
LOCKSCREEN_CLOCK_LAYOUT + maxIndex,
"layout",
Expand Down

0 comments on commit 8d6558b

Please sign in to comment.