1
0
Fork 0
mirror of https://github.com/TeamNewPipe/NewPipe.git synced 2025-10-03 17:59:41 +02:00

Nav drawer now moves behind the status bar

This commit is contained in:
Somethingweirdhere 2018-06-13 22:35:20 +02:00 committed by Christian Schabesberger
parent 8e3ad69adb
commit 409bebd5bc
4 changed files with 70 additions and 70 deletions

View file

@ -269,8 +269,11 @@ public class MainActivity extends AppCompatActivity {
}
private void setupDrawerHeader() {
headerServiceView = findViewById(R.id.drawer_header_service_view);
Button action = findViewById(R.id.drawer_header_action_button);
NavigationView navigationView = findViewById(R.id.navigation);
View hView = navigationView.getHeaderView(0);
headerServiceView = hView.findViewById(R.id.drawer_header_service_view);
Button action = hView.findViewById(R.id.drawer_header_action_button);
action.setOnClickListener(view -> {
Intent intent = new Intent(Intent.ACTION_VIEW);
intent.setData(Uri.parse("https://newpipe.schabi.org/blog/"));