Commit 7573cba1 authored by Yusuke Iwaki's avatar Yusuke Iwaki

modify opening SlidingPane when the navigation icon is tapped.

parent 592af512
......@@ -3,6 +3,7 @@ package chat.rocket.android.activity;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.widget.SlidingPaneLayout;
import android.support.v7.widget.Toolbar;
import android.view.View;
import chat.rocket.android.LaunchUtil;
import chat.rocket.android.R;
......@@ -48,6 +49,13 @@ public class MainActivity extends AbstractAuthedActivity {
}
}
});
Toolbar toolbar = (Toolbar) findViewById(R.id.activity_main_toolbar);
toolbar.setNavigationOnClickListener(view -> {
if (pane.isSlideable() && !pane.isOpen()) {
pane.openPane();
}
});
}
}
......
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