From 28dab3cf0ffac99414f57cc54facd2755227101b Mon Sep 17 00:00:00 2001 From: Ammar Githam Date: Tue, 1 Dec 2020 22:21:18 +0900 Subject: [PATCH] Explicitly set navigation bar color for PostViewV2Fragment. Fixes https://github.com/austinhuang0131/barinsta/issues/326 --- .../awais/instagrabber/fragments/PostViewV2Fragment.java | 2 +- app/src/main/res/values/styles.xml | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/awais/instagrabber/fragments/PostViewV2Fragment.java b/app/src/main/java/awais/instagrabber/fragments/PostViewV2Fragment.java index 5564d0e1..4b77b6e3 100644 --- a/app/src/main/java/awais/instagrabber/fragments/PostViewV2Fragment.java +++ b/app/src/main/java/awais/instagrabber/fragments/PostViewV2Fragment.java @@ -220,7 +220,7 @@ public class PostViewV2Fragment extends SharedElementTransitionDialogFragment { @Override public void onCreate(@Nullable final Bundle savedInstanceState) { super.onCreate(savedInstanceState); - setStyle(DialogFragment.STYLE_NO_FRAME, android.R.style.Theme_Translucent); + setStyle(DialogFragment.STYLE_NO_FRAME, R.style.PostViewV2Style); fragmentActivity = (MainActivity) getActivity(); mediaService = MediaService.getInstance(); final Bundle arguments = getArguments(); diff --git a/app/src/main/res/values/styles.xml b/app/src/main/res/values/styles.xml index 4d13ae90..af5cb78b 100755 --- a/app/src/main/res/values/styles.xml +++ b/app/src/main/res/values/styles.xml @@ -1,5 +1,5 @@ - + +