Skip to content

Commit 02dd17d

Browse files
author
Chih-Chung Chang
committed
Fix 5389072: NPE in MediaController.updateFloatingWindowLayout().
There was another constructor which we didn't add the call to initialize the layout. Change-Id: I1519c9afd7d6333736fe19d256f55a2f4cdc60c3
1 parent a53d19d commit 02dd17d

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

core/java/android/widget/MediaController.java

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -113,15 +113,12 @@ public MediaController(Context context, boolean useFastForward) {
113113
super(context);
114114
mContext = context;
115115
mUseFastForward = useFastForward;
116+
initFloatingWindowLayout();
116117
initFloatingWindow();
117118
}
118119

119120
public MediaController(Context context) {
120-
super(context);
121-
mContext = context;
122-
mUseFastForward = true;
123-
initFloatingWindow();
124-
initFloatingWindowLayout();
121+
this(context, true);
125122
}
126123

127124
private void initFloatingWindow() {

0 commit comments

Comments
 (0)