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

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

feat: Check for null case

parent bb393c89
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -98,9 +98,9 @@ fun getUninstallTarget(launcher: Launcher, item: ItemInfo?): ComponentName? {
    }

    if (intent != null) {
        val info: LauncherActivityInfo =
        val info: LauncherActivityInfo? =
            launcher.getSystemService(LauncherApps::class.java).resolveActivity(intent, user)
        if (info.applicationInfo.flags and ApplicationInfo.FLAG_SYSTEM == 0) {
        if (info != null && info.applicationInfo.flags and ApplicationInfo.FLAG_SYSTEM == 0) {
            return info.componentName
        }
    }