From 1aec1d6cd9dc597ef0347f7618bf377eaee0c4aa Mon Sep 17 00:00:00 2001 From: Ezerous Date: Thu, 19 Jan 2017 22:47:06 +0200 Subject: [PATCH] DownloadsActivity Toolbar fix --- app/src/main/AndroidManifest.xml | 8 +++++++- .../mthmmy/activities/downloads/DownloadsActivity.java | 10 +++++----- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index b1e421d3..24b701c1 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -63,7 +63,13 @@ android:name="android.support.PARENT_ACTIVITY" android:value=".activities.main.MainActivity"/> - + + diff --git a/app/src/main/java/gr/thmmy/mthmmy/activities/downloads/DownloadsActivity.java b/app/src/main/java/gr/thmmy/mthmmy/activities/downloads/DownloadsActivity.java index 60d83b44..ced0db58 100644 --- a/app/src/main/java/gr/thmmy/mthmmy/activities/downloads/DownloadsActivity.java +++ b/app/src/main/java/gr/thmmy/mthmmy/activities/downloads/DownloadsActivity.java @@ -81,15 +81,15 @@ public class DownloadsActivity extends BaseActivity implements DownloadsAdapter. } } else downloadsUrl = downloadsIndexUrl; + //Initialize toolbar toolbar = (Toolbar) findViewById(R.id.toolbar); toolbar.setTitle(downloadsTitle); - /*setSupportActionBar(toolbar); - if (getSupportActionBar() != null) { - getSupportActionBar().setDisplayHomeAsUpEnabled(true); - getSupportActionBar().setDisplayShowHomeEnabled(true); - }*/ + setSupportActionBar(toolbar); + getSupportActionBar().setDisplayHomeAsUpEnabled(true); + getSupportActionBar().setDisplayShowHomeEnabled(true); createDrawer(); +// drawer.setSelection(DOWNLOADS_ID); progressBar = (MaterialProgressBar) findViewById(R.id.progressBar);