diff options
author | LuK1337 <priv.luk@gmail.com> | 2019-09-06 12:30:21 +0200 |
---|---|---|
committer | Sam Mortimer <sam@mortimer.me.uk> | 2019-09-09 07:33:54 +0200 |
commit | f7d8e15b75694fcbef310d7bd1f5339f3f38be19 (patch) | |
tree | 7bf5e01898096e37b8b678e4dcde608b10d43221 | |
parent | e8814c5f0b8f239f80fcaec3894ba9369854c17f (diff) | |
download | lineage-sdk-f7d8e15b75694fcbef310d7bd1f5339f3f38be19.tar.gz lineage-sdk-f7d8e15b75694fcbef310d7bd1f5339f3f38be19.tar.bz2 lineage-sdk-f7d8e15b75694fcbef310d7bd1f5339f3f38be19.zip |
lineage-sdk: Fix moveTaskToFront() call in ActionUtils
* moveTaskToFront() now has 2 nullable parameters at
the beginning:
- IApplicationThread appThread
- String callingPackage
Change-Id: I761784bdb3918021a0848e8ee31baa0818540bb1
-rw-r--r-- | sdk/src/java/org/lineageos/internal/util/ActionUtils.java | 19 |
1 files changed, 18 insertions, 1 deletions
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; } |