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

Commit 386c94fd authored by Jason Monk's avatar Jason Monk
Browse files

Add missing lock task API

It seems that currently there is no un-hidden way to determine if
the device is in lock task.  This fixes that.

Change-Id: Ib5082b84de8073d261777b955fddff55367e5662
parent 5c6a8e32
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -3510,6 +3510,7 @@ package android.app {
    method public android.app.PendingIntent getRunningServiceControlPanel(android.content.ComponentName) throws java.lang.SecurityException;
    method public android.app.PendingIntent getRunningServiceControlPanel(android.content.ComponentName) throws java.lang.SecurityException;
    method public java.util.List<android.app.ActivityManager.RunningServiceInfo> getRunningServices(int) throws java.lang.SecurityException;
    method public java.util.List<android.app.ActivityManager.RunningServiceInfo> getRunningServices(int) throws java.lang.SecurityException;
    method public deprecated java.util.List<android.app.ActivityManager.RunningTaskInfo> getRunningTasks(int) throws java.lang.SecurityException;
    method public deprecated java.util.List<android.app.ActivityManager.RunningTaskInfo> getRunningTasks(int) throws java.lang.SecurityException;
    method public boolean isInLockTaskMode();
    method public boolean isLowRamDevice();
    method public boolean isLowRamDevice();
    method public static boolean isRunningInTestHarness();
    method public static boolean isRunningInTestHarness();
    method public static boolean isUserAMonkey();
    method public static boolean isUserAMonkey();
+4 −1
Original line number Original line Diff line number Diff line
@@ -2456,7 +2456,10 @@ public class ActivityManager {
    }
    }


    /**
    /**
     * @hide
     * Return whether currently in lock task mode.  When in this mode
     * no new tasks can be created or switched to.
     *
     * @see Activity#startLockTask()
     */
     */
    public boolean isInLockTaskMode() {
    public boolean isInLockTaskMode() {
        try {
        try {