From 08434128b12ca74aadbca3ea71ec537e446282b0 Mon Sep 17 00:00:00 2001 From: Tanguy Herbron Date: Sat, 21 Jul 2018 21:49:41 +0200 Subject: [PATCH] Fix status bar flash when starting the app --- app/src/main/AndroidManifest.xml | 3 ++- .../Activities/HomeActivityFragments/Summary.java | 2 +- .../res/layout/activity_record_transaction.xml | 6 ++++++ app/src/main/res/values/styles.xml | 14 +++++--------- 4 files changed, 14 insertions(+), 11 deletions(-) diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 6ad679a..1b4bdb1 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -42,7 +42,8 @@ + android:screenOrientation="portrait" + android:theme="@style/RecordTransactionTheme"> diff --git a/app/src/main/java/com/herbron/moodl/Activities/HomeActivityFragments/Summary.java b/app/src/main/java/com/herbron/moodl/Activities/HomeActivityFragments/Summary.java index d7c71c5..cf8f721 100644 --- a/app/src/main/java/com/herbron/moodl/Activities/HomeActivityFragments/Summary.java +++ b/app/src/main/java/com/herbron/moodl/Activities/HomeActivityFragments/Summary.java @@ -251,7 +251,7 @@ public class Summary extends Fragment implements BalanceSwitchManagerInterface, private void generateSplashScreen() { - loadingDialog = new Dialog(getActivity(), android.R.style.Theme_Black); + loadingDialog = new Dialog(getActivity(), android.R.style.Theme_Black_NoTitleBar_Fullscreen); Random random = new Random(); diff --git a/app/src/main/res/layout/activity_record_transaction.xml b/app/src/main/res/layout/activity_record_transaction.xml index e49ea04..28fc376 100644 --- a/app/src/main/res/layout/activity_record_transaction.xml +++ b/app/src/main/res/layout/activity_record_transaction.xml @@ -5,6 +5,12 @@ android:layout_height="match_parent" tools:context="com.herbron.moodl.Activities.RecordTransactionActivity"> + + + + @color/colorAccent @color/separationColor @color/decrease + - - - +