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

Commit 2de7e39f authored by Jeff Sharkey's avatar Jeff Sharkey Committed by android-build-merger
Browse files

Merge "Kick movement preconditions onto handler thread." into mnc-dr-dev

am: e10faaa4

* commit 'e10faaa4':
  Kick movement preconditions onto handler thread.
parents 1c7fbe0e e10faaa4
Loading
Loading
Loading
Loading
+12 −7
Original line number Diff line number Diff line
@@ -15986,6 +15986,9 @@ public class PackageManagerService extends IPackageManager.Stub {
        mContext.enforceCallingOrSelfPermission(android.Manifest.permission.MOVE_PACKAGE, null);
        final int moveId = mNextMoveId.getAndIncrement();
        mHandler.post(new Runnable() {
            @Override
            public void run() {
                try {
                    movePackageInternal(packageName, volumeUuid, moveId);
                } catch (PackageManagerException e) {
@@ -15993,6 +15996,8 @@ public class PackageManagerService extends IPackageManager.Stub {
                    mMoveCallbacks.notifyStatusChanged(moveId,
                            PackageManager.MOVE_FAILED_INTERNAL_ERROR);
                }
            }
        });
        return moveId;
    }