Commit 9506735b authored by Leonardo Aramaki's avatar Leonardo Aramaki
parent fcce8693
...@@ -95,6 +95,7 @@ public class MainActivity extends AbstractAuthedActivity implements MainContract ...@@ -95,6 +95,7 @@ public class MainActivity extends AbstractAuthedActivity implements MainContract
} }
private void setupToolbar() { private void setupToolbar() {
if (pane != null) {
pane.setPanelSlideListener(new SlidingPaneLayout.PanelSlideListener() { pane.setPanelSlideListener(new SlidingPaneLayout.PanelSlideListener() {
@Override @Override
public void onPanelSlide(View view, float v) { public void onPanelSlide(View view, float v) {
...@@ -119,13 +120,16 @@ public class MainActivity extends AbstractAuthedActivity implements MainContract ...@@ -119,13 +120,16 @@ public class MainActivity extends AbstractAuthedActivity implements MainContract
} }
} }
}); });
}
if (toolbar != null) {
toolbar.setNavigationOnClickListener(view -> { toolbar.setNavigationOnClickListener(view -> {
if (pane.isSlideable() && !pane.isOpen()) { if (pane.isSlideable() && !pane.isOpen()) {
pane.openPane(); pane.openPane();
} }
}); });
} }
}
private boolean closeSidebarIfNeeded() { private boolean closeSidebarIfNeeded() {
// REMARK: Tablet UI doesn't have SlidingPane! // REMARK: Tablet UI doesn't have SlidingPane!
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment