From 114920b7443eea5262b7af08c63e29b716e4a9d7 Mon Sep 17 00:00:00 2001 From: h4h13 Date: Sun, 29 Sep 2019 14:31:13 +0530 Subject: [PATCH] Fix back buttons on license activity --- .../name/monkey/retromusic/activities/LicenseActivity.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/code/name/monkey/retromusic/activities/LicenseActivity.java b/app/src/main/java/code/name/monkey/retromusic/activities/LicenseActivity.java index 8a29ee0a..022d88b3 100644 --- a/app/src/main/java/code/name/monkey/retromusic/activities/LicenseActivity.java +++ b/app/src/main/java/code/name/monkey/retromusic/activities/LicenseActivity.java @@ -20,6 +20,7 @@ import android.view.MenuItem; import android.webkit.WebView; import androidx.annotation.NonNull; +import androidx.appcompat.widget.Toolbar; import org.jetbrains.annotations.Nullable; @@ -63,8 +64,9 @@ public class LicenseActivity extends AbsBaseActivity { setNavigationBarColorPrimary(); setTaskDescriptionColorAuto(); setLightNavigationBar(true); - - ToolbarContentTintHelper.colorBackButton(findViewById(R.id.toolbar), ATHUtil.INSTANCE.resolveColor(this, R.attr.colorOnSurface)); + Toolbar toolbar = findViewById(R.id.toolbar); + setSupportActionBar(toolbar); + ToolbarContentTintHelper.colorBackButton(toolbar, ATHUtil.INSTANCE.resolveColor(this, R.attr.colorOnSurface)); WebView webView = findViewById(R.id.license); try { StringBuilder buf = new StringBuilder();