lineage-sdk: Fix moveTaskToFront() call in ActionUtils

* moveTaskToFront() now has 2 nullable parameters at
  the beginning:
    - IApplicationThread appThread
    - String callingPackage

Change-Id: I761784bdb3918021a0848e8ee31baa0818540bb1
This commit is contained in:
LuK1337
2019-09-06 12:30:21 +02:00
committed by Sam Mortimer
parent e8814c5f0b
commit f7d8e15b75

View File

@@ -1,3 +1,19 @@
/*
* Copyright (C) 2018-2019 The LineageOS Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.lineageos.internal.util;
import android.app.ActivityManager;
@@ -83,7 +99,8 @@ public class ActionUtils {
org.lineageos.platform.internal.R.anim.last_app_out);
if (DEBUG) Log.d(TAG, "switching to " + packageName);
am.moveTaskToFront(lastTask.id, ActivityManager.MOVE_TASK_NO_USER_ACTION, opts.toBundle());
am.moveTaskToFront(null, null, lastTask.id,
ActivityManager.MOVE_TASK_NO_USER_ACTION, opts.toBundle());
return true;
}