SupportLeanbackDemo: Fix generatev4.py
Bug: 27495998 Change-Id: If6d2bcc6f43aec7386ee141196d8fb5c8a525b3c
This commit is contained in:
@@ -299,6 +299,7 @@ write_java_head(outfile, "PlaybackOverlayFragment")
|
||||
for line in file:
|
||||
line = line.replace('PlaybackOverlayFragment', 'PlaybackOverlaySupportFragment')
|
||||
line = line.replace('PlaybackControlHelper', 'PlaybackControlSupportHelper')
|
||||
line = line.replace('PlaybackOverlayActivity', 'PlaybackOverlaySupportActivity')
|
||||
outfile.write(line)
|
||||
file.close()
|
||||
outfile.close()
|
||||
|
||||
@@ -179,8 +179,7 @@ public class PlaybackOverlaySupportFragment
|
||||
@Override
|
||||
public void onStop() {
|
||||
mGlue.enableProgressUpdating(false);
|
||||
((PlaybackOverlaySupportActivity) getActivity()).unregisterPictureInPictureListener(
|
||||
this);
|
||||
((PlaybackOverlaySupportActivity) getActivity()).unregisterPictureInPictureListener(this);
|
||||
super.onStop();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user