Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b1ef1869 authored by Kedi Xu's avatar Kedi Xu
Browse files

SnapdragonGallery: don't show navigation icon when drawer locked

Set navigation icon to null when the drawer is locked

Change-Id: Iaff13551286261a7f390163681a6f8779d934501
CRs-Fixed: 1051982
parent 933ff5d0
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -282,8 +282,10 @@ public final class GalleryActivity extends AbstractGalleryActivity implements On
        if (mDrawerLayout != null) {
            if (setDrawerVisibility && mDrawerLayoutSupported) {
                mDrawerLayout.setDrawerLockMode(DrawerLayout.LOCK_MODE_UNLOCKED);
                mToolbar.setNavigationIcon(R.drawable.drawer);
            } else {
                mDrawerLayout.setDrawerLockMode(DrawerLayout.LOCK_MODE_LOCKED_CLOSED);
                mToolbar.setNavigationIcon(null);
            }
        }
    }
@@ -419,6 +421,7 @@ public final class GalleryActivity extends AbstractGalleryActivity implements On
            startTimelinePage();
            mToolbar.setTitle(R.string.albums_title);
        }
        toggleNavDrawer(mDrawerLayoutSupported);
    }

    public void startAlbumPage() {