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

Commit b535c140 authored by tibbi's avatar tibbi
Browse files

make sure the proper launcher is enabled and visible on a particular app upgrade

parent 0c843637
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -7,7 +7,7 @@ buildscript {
        propMinSdkVersion = 16
        propTargetSdkVersion = propCompileSdkVersion
        propVersionCode = 1
        propVersionName = '4.4.17'
        propVersionName = '4.4.19'
        kotlin_version = '1.2.51'
        support_libs = '27.1.1'
    }
+6 −0
Original line number Diff line number Diff line
@@ -96,6 +96,12 @@ fun Activity.appLaunched(appId: String) {

            val defaultClassName = "${baseConfig.appId.removeSuffix(".debug")}.activities.SplashActivity"
            packageManager.setComponentEnabledSetting(ComponentName(baseConfig.appId, defaultClassName), PackageManager.COMPONENT_ENABLED_STATE_DEFAULT, PackageManager.DONT_KILL_APP)

            getAppIconColors().forEachIndexed { index, color ->
                if (baseConfig.appIconColor == color) {
                    toggleAppIconColor(appId, index, color, true)
                }
            }
        }
    }
    baseConfig.appRunCount++