Refactor usages of Picture In Picture and Multi Window (4/4)

Bug: 27365860
Change-Id: I488fbc9fc8035fa06e6a68c117a58cc35749cc7c
diff --git a/samples/SupportLeanbackDemos/src/com/example/android/leanback/PlaybackOverlayActivity.java b/samples/SupportLeanbackDemos/src/com/example/android/leanback/PlaybackOverlayActivity.java
index a0ea5fd..764b169 100644
--- a/samples/SupportLeanbackDemos/src/com/example/android/leanback/PlaybackOverlayActivity.java
+++ b/samples/SupportLeanbackDemos/src/com/example/android/leanback/PlaybackOverlayActivity.java
@@ -31,9 +31,9 @@
     }
 
     @Override
-    public void onPictureInPictureChanged(boolean inPictureInPicture) {
+    public void onPictureInPictureModeChanged(boolean isInPictureInPictureMode) {
         for (PictureInPictureListener listener : mListeners) {
-            listener.onPictureInPictureChanged(inPictureInPicture);
+            listener.onPictureInPictureModeChanged(isInPictureInPictureMode);
         }
     }
 
@@ -46,6 +46,6 @@
     }
 
     public interface PictureInPictureListener {
-        void onPictureInPictureChanged(boolean inPictureInPicture);
+        void onPictureInPictureModeChanged(boolean isInPictureInPictureMode);
     }
 }
diff --git a/samples/SupportLeanbackDemos/src/com/example/android/leanback/PlaybackOverlayFragment.java b/samples/SupportLeanbackDemos/src/com/example/android/leanback/PlaybackOverlayFragment.java
index 849189e..c918774 100644
--- a/samples/SupportLeanbackDemos/src/com/example/android/leanback/PlaybackOverlayFragment.java
+++ b/samples/SupportLeanbackDemos/src/com/example/android/leanback/PlaybackOverlayFragment.java
@@ -127,7 +127,7 @@
             @Override
             public void onActionClicked(Action action) {
                 if (action.getId() == R.id.lb_control_picture_in_picture) {
-                    getActivity().enterPictureInPicture();
+                    getActivity().enterPictureInPictureMode();
                     return;
                 }
                 super.onActionClicked(action);
@@ -182,8 +182,8 @@
     }
 
     @Override
-    public void onPictureInPictureChanged(boolean inPictureInPicture) {
-        if (inPictureInPicture) {
+    public void onPictureInPictureModeChanged(boolean isInPictureInPictureMode) {
+        if (isInPictureInPictureMode) {
             // Hide the controls in picture-in-picture mode.
             setFadingEnabled(true);
             fadeOut();
diff --git a/samples/SupportLeanbackDemos/src/com/example/android/leanback/PlaybackOverlaySupportActivity.java b/samples/SupportLeanbackDemos/src/com/example/android/leanback/PlaybackOverlaySupportActivity.java
index 75e3c1b..f965b37 100644
--- a/samples/SupportLeanbackDemos/src/com/example/android/leanback/PlaybackOverlaySupportActivity.java
+++ b/samples/SupportLeanbackDemos/src/com/example/android/leanback/PlaybackOverlaySupportActivity.java
@@ -33,9 +33,9 @@
     }
 
     @Override
-    public void onPictureInPictureChanged(boolean inPictureInPicture) {
+    public void onPictureInPictureModeChanged(boolean isInPictureInPictureMode) {
         for (PictureInPictureListener listener : mListeners) {
-            listener.onPictureInPictureChanged(inPictureInPicture);
+            listener.onPictureInPictureModeChanged(isInPictureInPictureMode);
         }
     }
 
@@ -48,6 +48,6 @@
     }
 
     public interface PictureInPictureListener {
-        void onPictureInPictureChanged(boolean inPictureInPicture);
+        void onPictureInPictureModeChanged(boolean isInPictureInPicture);
     }
 }
diff --git a/samples/SupportLeanbackDemos/src/com/example/android/leanback/PlaybackOverlaySupportFragment.java b/samples/SupportLeanbackDemos/src/com/example/android/leanback/PlaybackOverlaySupportFragment.java
index cbe61ae..e8ea8f5 100644
--- a/samples/SupportLeanbackDemos/src/com/example/android/leanback/PlaybackOverlaySupportFragment.java
+++ b/samples/SupportLeanbackDemos/src/com/example/android/leanback/PlaybackOverlaySupportFragment.java
@@ -129,7 +129,7 @@
             @Override
             public void onActionClicked(Action action) {
                 if (action.getId() == R.id.lb_control_picture_in_picture) {
-                    getActivity().enterPictureInPicture();
+                    getActivity().enterPictureInPictureMode();
                     return;
                 }
                 super.onActionClicked(action);
@@ -184,8 +184,8 @@
     }
 
     @Override
-    public void onPictureInPictureChanged(boolean inPictureInPicture) {
-        if (inPictureInPicture) {
+    public void onPictureInPictureModeChanged(boolean isInPictureInPictureMode) {
+        if (isInPictureInPictureMode) {
             // Hide the controls in picture-in-picture mode.
             setFadingEnabled(true);
             fadeOut();