Skip to content
This repository was archived by the owner on Jul 25, 2024. It is now read-only.

Commit b1e9c5e

Browse files
committed
Change drawer things over to start|end from left|right
1 parent 95116f1 commit b1e9c5e

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

app/src/main/java/com/zulip/android/ZulipActivity.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
import android.support.v4.app.FragmentActivity;
3030
import android.support.v4.app.FragmentManager;
3131
import android.support.v4.app.FragmentTransaction;
32+
import android.support.v4.view.GravityCompat;
3233
import android.support.v4.widget.DrawerLayout;
3334
import android.support.v4.widget.SimpleCursorAdapter;
3435
import android.util.Log;
@@ -476,7 +477,7 @@ public boolean onOptionsItemSelected(MenuItem item) {
476477
// true, then it has handled the app icon touch event
477478
if (drawerToggle.onOptionsItemSelected(item)) {
478479
// Close the right drawer if we opened the left one
479-
drawerLayout.closeDrawer(Gravity.RIGHT);
480+
drawerLayout.closeDrawer(GravityCompat.END);
480481
return true;
481482
}
482483

app/src/main/res/layout/main.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,15 @@
1818
android:id="@+id/streams_drawer"
1919
android:layout_width="340dp"
2020
android:layout_height="match_parent"
21-
android:layout_gravity="left"
21+
android:layout_gravity="start"
2222
android:background="#FFF"
2323
android:choiceMode="singleChoice" />
2424

2525
<ListView
2626
android:id="@+id/people_drawer"
2727
android:layout_width="240dp"
2828
android:layout_height="match_parent"
29-
android:layout_gravity="right"
29+
android:layout_gravity="end"
3030
android:background="#FFF"
3131
android:choiceMode="singleChoice" />
3232

0 commit comments

Comments
 (0)