From 37a803b3a68ee2911bd82981de3a181147bf03e3 Mon Sep 17 00:00:00 2001 From: Robin Koedood Date: Tue, 12 Jan 2021 14:54:31 +0100 Subject: [PATCH] HELP popup en setting recreate nu na een switch ding switchen q8) --- .../com/a1/nextlocation/fragments/SettingsFragment.java | 4 +++- app/src/main/res/layout/help_popup.xml | 9 ++++++--- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/app/src/main/java/com/a1/nextlocation/fragments/SettingsFragment.java b/app/src/main/java/com/a1/nextlocation/fragments/SettingsFragment.java index ecc623d..26e25b0 100644 --- a/app/src/main/java/com/a1/nextlocation/fragments/SettingsFragment.java +++ b/app/src/main/java/com/a1/nextlocation/fragments/SettingsFragment.java @@ -99,10 +99,12 @@ public class SettingsFragment extends Fragment { if(fontSwitch.isChecked()) { requireActivity().setTheme(R.style.Theme_NextLocationBig); + getActivity().recreate(); } if(!fontSwitch.isChecked()) { - requireActivity().setTheme(R.style.Theme_NextLocation);; + requireActivity().setTheme(R.style.Theme_NextLocation); + getActivity().recreate(); } editor.putBoolean("fontSwitch",fontSwitch.isChecked()); editor.apply(); diff --git a/app/src/main/res/layout/help_popup.xml b/app/src/main/res/layout/help_popup.xml index 0e33fb5..144a348 100644 --- a/app/src/main/res/layout/help_popup.xml +++ b/app/src/main/res/layout/help_popup.xml @@ -24,10 +24,13 @@ + app:layout_constraintTop_toBottomOf="@id/helpPopTitle" + app:layout_constraintBottom_toTopOf="@id/help_ok_button" + >