Develop #5
@@ -99,10 +99,12 @@ public class SettingsFragment extends Fragment {
|
|||||||
if(fontSwitch.isChecked())
|
if(fontSwitch.isChecked())
|
||||||
{
|
{
|
||||||
requireActivity().setTheme(R.style.Theme_NextLocationBig);
|
requireActivity().setTheme(R.style.Theme_NextLocationBig);
|
||||||
|
getActivity().recreate();
|
||||||
}
|
}
|
||||||
if(!fontSwitch.isChecked())
|
if(!fontSwitch.isChecked())
|
||||||
{
|
{
|
||||||
requireActivity().setTheme(R.style.Theme_NextLocation);;
|
requireActivity().setTheme(R.style.Theme_NextLocation);
|
||||||
|
getActivity().recreate();
|
||||||
}
|
}
|
||||||
editor.putBoolean("fontSwitch",fontSwitch.isChecked());
|
editor.putBoolean("fontSwitch",fontSwitch.isChecked());
|
||||||
editor.apply();
|
editor.apply();
|
||||||
|
|||||||
@@ -24,10 +24,13 @@
|
|||||||
<ScrollView
|
<ScrollView
|
||||||
android:id="@+id/scrollView2"
|
android:id="@+id/scrollView2"
|
||||||
android:layout_width="300dp"
|
android:layout_width="300dp"
|
||||||
android:layout_height="450dp"
|
android:layout_height="400dp"
|
||||||
|
android:layout_marginHorizontal="10dp"
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
app:layout_constraintTop_toBottomOf="@id/helpPopTitle">
|
app:layout_constraintTop_toBottomOf="@id/helpPopTitle"
|
||||||
|
app:layout_constraintBottom_toTopOf="@id/help_ok_button"
|
||||||
|
>
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:layout_width="280dp"
|
android:layout_width="280dp"
|
||||||
@@ -54,7 +57,7 @@
|
|||||||
android:text="ok"
|
android:text="ok"
|
||||||
app:layout_constraintBottom_toBottomOf="parent"
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
|
app:layout_constraintTop_toBottomOf="@id/scrollView2"
|
||||||
app:layout_constraintStart_toStartOf="parent" />
|
app:layout_constraintStart_toStartOf="parent" />
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user