Loading packages/SystemUI/src/com/android/systemui/recents/RecentsSystemUser.java +7 −2 Original line number Diff line number Diff line Loading @@ -30,6 +30,7 @@ import com.android.systemui.recents.events.EventBus; import com.android.systemui.recents.events.activity.DockedTopTaskEvent; import com.android.systemui.recents.events.activity.RecentsActivityStartingEvent; import com.android.systemui.recents.events.ui.RecentsDrawnEvent; import com.android.systemui.recents.misc.ForegroundThread; /** * An implementation of the system user's Recents interface to be called remotely by secondary Loading Loading @@ -78,12 +79,16 @@ public class RecentsSystemUser extends IRecentsSystemUserCallbacks.Stub { @Override public void updateRecentsVisibility(boolean visible) { ForegroundThread.getHandler().post(() -> { mImpl.onVisibilityChanged(mContext, visible); }); } @Override public void startScreenPinning(int taskId) { ForegroundThread.getHandler().post(() -> { mImpl.onStartScreenPinning(mContext, taskId); }); } @Override Loading packages/SystemUI/src/com/android/systemui/recents/ScreenPinningRequest.java +6 −1 Original line number Diff line number Diff line Loading @@ -72,7 +72,12 @@ public class ScreenPinningRequest implements View.OnClickListener { } public void showPrompt(int taskId, boolean allowCancel) { try { clearPrompt(); } catch (IllegalArgumentException e) { // If the call to show the prompt fails due to the request window not already being // attached, then just ignore the error since we will be re-adding it below. } this.taskId = taskId; Loading Loading
packages/SystemUI/src/com/android/systemui/recents/RecentsSystemUser.java +7 −2 Original line number Diff line number Diff line Loading @@ -30,6 +30,7 @@ import com.android.systemui.recents.events.EventBus; import com.android.systemui.recents.events.activity.DockedTopTaskEvent; import com.android.systemui.recents.events.activity.RecentsActivityStartingEvent; import com.android.systemui.recents.events.ui.RecentsDrawnEvent; import com.android.systemui.recents.misc.ForegroundThread; /** * An implementation of the system user's Recents interface to be called remotely by secondary Loading Loading @@ -78,12 +79,16 @@ public class RecentsSystemUser extends IRecentsSystemUserCallbacks.Stub { @Override public void updateRecentsVisibility(boolean visible) { ForegroundThread.getHandler().post(() -> { mImpl.onVisibilityChanged(mContext, visible); }); } @Override public void startScreenPinning(int taskId) { ForegroundThread.getHandler().post(() -> { mImpl.onStartScreenPinning(mContext, taskId); }); } @Override Loading
packages/SystemUI/src/com/android/systemui/recents/ScreenPinningRequest.java +6 −1 Original line number Diff line number Diff line Loading @@ -72,7 +72,12 @@ public class ScreenPinningRequest implements View.OnClickListener { } public void showPrompt(int taskId, boolean allowCancel) { try { clearPrompt(); } catch (IllegalArgumentException e) { // If the call to show the prompt fails due to the request window not already being // attached, then just ignore the error since we will be re-adding it below. } this.taskId = taskId; Loading