From f7d8e15b75694fcbef310d7bd1f5339f3f38be19 Mon Sep 17 00:00:00 2001 From: LuK1337 Date: Fri, 6 Sep 2019 12:30:21 +0200 Subject: [PATCH] lineage-sdk: Fix moveTaskToFront() call in ActionUtils * moveTaskToFront() now has 2 nullable parameters at the beginning: - IApplicationThread appThread - String callingPackage Change-Id: I761784bdb3918021a0848e8ee31baa0818540bb1 --- .../lineageos/internal/util/ActionUtils.java | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/sdk/src/java/org/lineageos/internal/util/ActionUtils.java b/sdk/src/java/org/lineageos/internal/util/ActionUtils.java index a58b9f37..c5fb48c5 100644 --- a/sdk/src/java/org/lineageos/internal/util/ActionUtils.java +++ b/sdk/src/java/org/lineageos/internal/util/ActionUtils.java @@ -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; }