Loading packages/SystemUI/src/com/android/systemui/pip/phone/PipTouchHandler.java +18 −8 Original line number Diff line number Diff line Loading @@ -156,6 +156,10 @@ public class PipTouchHandler implements TunerService.Tunable { @Override public void onListenerRegistered(IPinnedStackController controller) { mPinnedStackController = controller; // Update the controller with the current tuner state setMinimizedState(mIsMinimized); setSnapToEdge(mEnableSnapToEdge); } @Override Loading Loading @@ -353,24 +357,30 @@ public class PipTouchHandler implements TunerService.Tunable { */ private void setSnapToEdge(boolean snapToEdge) { mSnapAlgorithm.setSnapToEdge(snapToEdge); if (mPinnedStackController != null) { try { mPinnedStackController.setSnapToEdge(snapToEdge); } catch (RemoteException e) { Log.e(TAG, "Could not set snap mode to edge", e); } } } /** * Sets the minimized state and notifies the controller. */ private void setMinimizedState(boolean isMinimized) { mIsMinimized = isMinimized; if (mPinnedStackController != null) { try { mPinnedStackController.setIsMinimized(isMinimized); } catch (RemoteException e) { Log.e(TAG, "Could not set minimized state", e); } } } /** * @return whether the given {@param pinnedStackBounds} indicates the PIP should be minimized. Loading Loading
packages/SystemUI/src/com/android/systemui/pip/phone/PipTouchHandler.java +18 −8 Original line number Diff line number Diff line Loading @@ -156,6 +156,10 @@ public class PipTouchHandler implements TunerService.Tunable { @Override public void onListenerRegistered(IPinnedStackController controller) { mPinnedStackController = controller; // Update the controller with the current tuner state setMinimizedState(mIsMinimized); setSnapToEdge(mEnableSnapToEdge); } @Override Loading Loading @@ -353,24 +357,30 @@ public class PipTouchHandler implements TunerService.Tunable { */ private void setSnapToEdge(boolean snapToEdge) { mSnapAlgorithm.setSnapToEdge(snapToEdge); if (mPinnedStackController != null) { try { mPinnedStackController.setSnapToEdge(snapToEdge); } catch (RemoteException e) { Log.e(TAG, "Could not set snap mode to edge", e); } } } /** * Sets the minimized state and notifies the controller. */ private void setMinimizedState(boolean isMinimized) { mIsMinimized = isMinimized; if (mPinnedStackController != null) { try { mPinnedStackController.setIsMinimized(isMinimized); } catch (RemoteException e) { Log.e(TAG, "Could not set minimized state", e); } } } /** * @return whether the given {@param pinnedStackBounds} indicates the PIP should be minimized. Loading