File tree 2 files changed +15
-0
lines changed
src/main/java/org/quantumbadger/redreader
2 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -352,6 +352,13 @@ public void onNotAnImage() {
352
352
outerFrame ,
353
353
false ));
354
354
355
+ if (PrefsUtility .pref_appearance_left_handed ()) {
356
+ final FrameLayout .LayoutParams toolBarParams =
357
+ (FrameLayout .LayoutParams ) mFloatingToolbar .getLayoutParams ();
358
+ toolBarParams .gravity = Gravity .START | Gravity .BOTTOM ;
359
+ mFloatingToolbar .setLayoutParams (toolBarParams );
360
+ }
361
+
355
362
outerFrame .addView (mFloatingToolbar );
356
363
357
364
mFloatingToolbar .setVisibility (View .GONE );
Original file line number Diff line number Diff line change 21
21
import android .content .Context ;
22
22
import android .graphics .Color ;
23
23
import android .os .Bundle ;
24
+ import android .view .Gravity ;
24
25
import android .view .LayoutInflater ;
25
26
import android .view .Menu ;
26
27
import android .view .MenuItem ;
@@ -192,6 +193,13 @@ public CommentListingFragment(
192
193
mOverlayFrame ,
193
194
false );
194
195
196
+ if (PrefsUtility .pref_appearance_left_handed ()) {
197
+ final FrameLayout .LayoutParams toolBarParams =
198
+ (FrameLayout .LayoutParams ) mFloatingToolbar .getLayoutParams ();
199
+ toolBarParams .gravity = Gravity .START | Gravity .BOTTOM ;
200
+ mFloatingToolbar .setLayoutParams (toolBarParams );
201
+ }
202
+
195
203
// We need a container so that setVisible() doesn't mess with the Z-order
196
204
final FrameLayout floatingToolbarContainer = new FrameLayout (context );
197
205
You can’t perform that action at this time.
0 commit comments