Skip to content

Commit

Permalink
Fix crashes where R.id.navigation_view wasn't found
Browse files Browse the repository at this point in the history
  • Loading branch information
veyndan committed Jul 3, 2017
1 parent b83c32f commit 6c47fa3
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 23 deletions.
20 changes: 8 additions & 12 deletions app/src/main/res/layout/activity_multiple_uploads.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<android.support.v4.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/drawer_layout"
android:layout_width="match_parent"
android:layout_height="match_parent">
Expand All @@ -22,17 +23,12 @@
android:orientation="vertical"></FrameLayout>
</RelativeLayout>

<RelativeLayout
android:id="@+id/drawer_pane"
android:layout_width="320dp"
android:layout_height="match_parent"
<android.support.design.widget.NavigationView
android:id="@+id/navigation_view"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_gravity="start"
android:background="@android:color/white">

<FrameLayout
android:id="@+id/drawer_fragment"
android:layout_width="match_parent"
android:layout_height="match_parent" />
</RelativeLayout>
app:headerLayout="@layout/drawer_header"
app:menu="@menu/drawer" />

</android.support.v4.widget.DrawerLayout>
</android.support.v4.widget.DrawerLayout>
17 changes: 6 additions & 11 deletions app/src/main/res/layout/activity_share.xml
Original file line number Diff line number Diff line change
Expand Up @@ -36,17 +36,12 @@
</FrameLayout>
</RelativeLayout>

<RelativeLayout
android:id="@+id/drawer_pane"
android:layout_width="320dp"
<android.support.design.widget.NavigationView
android:id="@+id/navigation_view"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_gravity="start"
android:background="@android:color/white">

<FrameLayout
android:id="@+id/drawer_fragment"
android:layout_width="match_parent"
android:layout_height="match_parent" />
</RelativeLayout>
app:headerLayout="@layout/drawer_header"
app:menu="@menu/drawer" />

</android.support.v4.widget.DrawerLayout>
</android.support.v4.widget.DrawerLayout>

0 comments on commit 6c47fa3

Please sign in to comment.