Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a965fffb authored by Mohammed Althaf T's avatar Mohammed Althaf T 😊
Browse files

feat: Fix null exception on apk update

parent 82633161
Loading
Loading
Loading
Loading
+13 −10
Original line number Diff line number Diff line
@@ -35,6 +35,8 @@ class MultiModeController(val context: Context, val monitor: LauncherAppMonitor)
    private val mAppMonitorCallback: LauncherAppMonitorCallback =
        object : LauncherAppMonitorCallback {
            override fun onLoadAllAppsEnd(apps: ArrayList<AppInfo?>?) {
                val launcherModel = monitor.launcher?.model
                if (launcherModel != null) {
                    MODEL_EXECUTOR.submit(
                        VerifyIdleAppTask(
                            context,
@@ -42,15 +44,16 @@ class MultiModeController(val context: Context, val monitor: LauncherAppMonitor)
                            null,
                            null,
                            false,
                        monitor.launcher.model.mBgDataModel
                            launcherModel.mBgDataModel
                        )
                    )
                }
            }

            override fun onAppSharedPreferenceChanged(key: String?) {
                when (key) {
                    BlissPrefs.PREF_SINGLE_LAYER_MODE -> {
                        monitor.launcher.model.forceReload()
                        monitor.launcher?.model?.forceReload()
                    }
                    BlissPrefs.PREF_NOTIF_COUNT -> idp.onConfigChanged(context)
                    else -> Unit