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

Commit 3aeffe5e authored by Suprabh Shukla's avatar Suprabh Shukla Committed by Android (Google) Code Review
Browse files

Merge "Always returning the updated preference summary"

parents 3c292444 7e59ec49
Loading
Loading
Loading
Loading
+3 −7
Original line number Diff line number Diff line
@@ -89,13 +89,9 @@ public class ExternalSourcesDetails extends AppInfoWithHeader
                return context.getString(R.string.disabled);
        }

        final InstallAppsState appsState;
        if (entry.extraInfo instanceof InstallAppsState) {
            appsState = (InstallAppsState) entry.extraInfo;
        } else {
            appsState = new AppStateInstallAppsBridge(context, null, null)
        final InstallAppsState appsState = new AppStateInstallAppsBridge(context, null, null)
                .createInstallAppsStateFor(entry.info.packageName, entry.info.uid);
        }

        return context.getString(appsState.canInstallApps()
                ? R.string.app_permission_summary_allowed
                : R.string.app_permission_summary_not_allowed);