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

Commit 6470647d authored by Robin Lee's avatar Robin Lee
Browse files

Fix AutoRevokePermissions non-mobile launch NPE

Bug: 158098457
Test: atest android.os.cts.AutoRevoke
Change-Id: I606d4f7bf0592e083bce79548f7addad376c890c
parent bd9b0e42
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -26,6 +26,13 @@
            android:background="@color/lb_preference_decor_list_background"
            android:layout_gravity="end">

        <FrameLayout
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:visibility="gone">
            <include layout="@layout/progress_header" />
        </FrameLayout>

        <FrameLayout
                android:id="@+id/prefs_container"
                android:layout_width="match_parent"
+1 −0
Original line number Diff line number Diff line
@@ -612,6 +612,7 @@ class AutoRevokeService : JobService() {
            .setColor(getColor(android.R.color.system_notification_accent_color))
            .setAutoCancel(true)
            .setContentIntent(pendingIntent)
            .extend(Notification.TvExtender())
        Utils.getSettingsLabelForNotifications(applicationContext.packageManager)?.let {
            settingsLabel ->
            val extras = Bundle()
+1 −0
Original line number Diff line number Diff line
@@ -261,6 +261,7 @@ public final class ManagePermissionsActivity extends FragmentActivity {
                        || DeviceUtils.isTelevision(this)) {
                    androidXFragment = com.android.permissioncontroller.permission.ui.handheld
                            .AutoRevokeFragment.newInstance();
                    androidXFragment.setArguments(AutoRevokeFragment.createArgs(sessionId));
                } else {
                    setNavGraph(AutoRevokeFragment.createArgs(sessionId), R.id.auto_revoke);
                    return;