Bug 1324656 - Replaced FILL_PARENT with MATCH_PARENT in VideoPlayer.java. r=walkingice0204.
authorgeorge <f2013112@goa.bits-pilani.ac.in>
Wed, 21 Dec 2016 09:35:23 +0530
changeset 374272 cbb20776dff9db0173ebeb2eb562e36fde173fdf
parent 374271 b0cc4f45e1cd166ecf2640338e47f8613d2121b0
child 374273 fa14643296e897d8d7c86e7b69771cfc74ff92ea
push id1419
push userjlund@mozilla.com
push dateMon, 10 Apr 2017 20:44:07 +0000
treeherdermozilla-release@5e6801b73ef6 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerswalkingice0204
bugs1324656
milestone53.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1324656 - Replaced FILL_PARENT with MATCH_PARENT in VideoPlayer.java. r=walkingice0204. Changed VideoPlayer.java Replaced FILL_PARENT with MATCH_PARENT on line 194 Fixes bug 1324656
mobile/android/base/java/org/mozilla/gecko/media/VideoPlayer.java
--- a/mobile/android/base/java/org/mozilla/gecko/media/VideoPlayer.java
+++ b/mobile/android/base/java/org/mozilla/gecko/media/VideoPlayer.java
@@ -186,17 +186,17 @@ public class VideoPlayer extends FrameLa
             //
             // The media buttons are in a horizontal linear layout which is itself packed into
             // a vertical layout. The vertical layout is the only child of the FrameLayout which
             // MediaController inherits from.
             LinearLayout child = (LinearLayout) getChildAt(0);
             LinearLayout buttons = (LinearLayout) child.getChildAt(0);
 
             LinearLayout.LayoutParams params = new LinearLayout.LayoutParams(LayoutParams.WRAP_CONTENT,
-                                                                             LayoutParams.FILL_PARENT);
+                                                                             LayoutParams.MATCH_PARENT);
             params.gravity = Gravity.CENTER_VERTICAL;
 
             if (mButton.getParent() != null) {
                 ((ViewGroup)mButton.getParent()).removeView(mButton);
             }
 
             buttons.addView(mButton, params);
         }