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

Commit 374044ff authored by Eugene Susla's avatar Eugene Susla Committed by android-build-merger
Browse files

Merge "[Companion] Fix notification access dialog being in new task" into oc-dev

am: 2eacbac8

Change-Id: Ic1566785ba2efae73469729f70b43775af02e57c
parents 63e1d36b 2eacbac8
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -214,10 +214,12 @@ public final class CompanionDeviceManager {
            return;
        }
        try {
            mService.requestNotificationAccess(component).send();
            IntentSender intentSender = mService.requestNotificationAccess(component)
                    .getIntentSender();
            mContext.startIntentSender(intentSender, null, 0, 0, 0);
        } catch (RemoteException e) {
            throw e.rethrowFromSystemServer();
        } catch (PendingIntent.CanceledException e) {
        } catch (IntentSender.SendIntentException e) {
            throw new RuntimeException(e);
        }
    }