Skip to content

Commit bdb38c1

Browse files
Chih-Chung ChangAndroid (Google) Code Review
authored andcommitted
Merge "Fix 5389072: NPE in MediaController.updateFloatingWindowLayout()."
2 parents 43e7972 + 02dd17d commit bdb38c1

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)