mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-18 02:08:20 +00:00
Merge "Make mutable PendingIntent explicit" into tm-qpr-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
3cd6cbe6b4
@@ -46,7 +46,8 @@ public class DigitalWellBeingToastTest extends AbstractQuickStepTest {
|
||||
runWithShellPermission(() ->
|
||||
usageStatsManager.registerAppUsageLimitObserver(observerId, packages,
|
||||
Duration.ofSeconds(600), Duration.ofSeconds(300),
|
||||
PendingIntent.getActivity(mTargetContext, -1, new Intent(),
|
||||
PendingIntent.getActivity(mTargetContext, -1, new Intent()
|
||||
.setPackage(mTargetContext.getPackageName()),
|
||||
PendingIntent.FLAG_MUTABLE)));
|
||||
|
||||
mLauncher.goHome();
|
||||
|
||||
@@ -147,7 +147,8 @@ public class RequestPinItemTest extends AbstractLauncherUiTest {
|
||||
|
||||
// Set callback
|
||||
PendingIntent callback = PendingIntent.getBroadcast(mTargetContext, 0,
|
||||
new Intent(mCallbackAction), FLAG_ONE_SHOT | FLAG_MUTABLE);
|
||||
new Intent(mCallbackAction).setPackage(mTargetContext.getPackageName()),
|
||||
FLAG_ONE_SHOT | FLAG_MUTABLE);
|
||||
mTargetContext.sendBroadcast(RequestPinItemActivity.getCommandIntent(
|
||||
RequestPinItemActivity.class, "setCallback").putExtra(
|
||||
RequestPinItemActivity.EXTRA_PARAM + "0", callback));
|
||||
|
||||
Reference in New Issue
Block a user