diff --git a/app/src/main/java/com/denizd/substitutionplan/fragments/SettingsFragment.kt b/app/src/main/java/com/denizd/substitutionplan/fragments/SettingsFragment.kt index 69c83f3..21b466a 100644 --- a/app/src/main/java/com/denizd/substitutionplan/fragments/SettingsFragment.kt +++ b/app/src/main/java/com/denizd/substitutionplan/fragments/SettingsFragment.kt @@ -93,6 +93,7 @@ internal class SettingsFragment : Fragment(R.layout.content_settings), View.OnCl helpCourses.setOnClickListener(this) helpClasses.setOnClickListener(this) btnCustomiseColours.setOnClickListener(this) + view.findViewById(R.id.btnNoNotif).setOnClickListener(this) view.findViewById(R.id.btnCustomiseRingtone).setOnClickListener(this) view.findViewById(R.id.btnWebsite).setOnClickListener(this) view.findViewById(R.id.btnLicences).setOnClickListener(this) @@ -153,6 +154,7 @@ internal class SettingsFragment : Fragment(R.layout.content_settings), View.OnCl R.string.enterGradeHelp )) R.id.btnCustomiseColours -> createColourDialog() + R.id.btnNoNotif -> createDialog(mContext.getString(R.string.notReceivingNotifications1), mContext.getString(R.string.notReceivingNotificationsHelp)) R.id.btnCustomiseRingtone -> createRingtoneDialog() R.id.btnWebsite -> { try { diff --git a/app/src/main/res/layout/content_settings.xml b/app/src/main/res/layout/content_settings.xml index a0f9e63..b53f9d6 100644 --- a/app/src/main/res/layout/content_settings.xml +++ b/app/src/main/res/layout/content_settings.xml @@ -50,19 +50,19 @@ + app:layout_constraintTop_toBottomOf="@+id/txtPersonalise"> + android:textSize="14sp" /> @@ -109,7 +109,7 @@ app:layout_constraintBottom_toBottomOf="@+id/txtJustnice" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="@+id/txtGreeting" - app:layout_constraintTop_toTopOf="@+id/txtGreeting"/> + app:layout_constraintTop_toTopOf="@+id/txtGreeting" /> + app:layout_constraintTop_toBottomOf="@+id/txtRestart" /> + app:layout_constraintTop_toBottomOf="@+id/txtNotifications" /> + + + + + + + app:layout_constraintTop_toBottomOf="@+id/txtNoNotif2" /> + app:layout_constraintTop_toBottomOf="@+id/txtCustomiseRingtone" /> + app:layout_constraintTop_toBottomOf="@+id/txtNoNotif2" /> diff --git a/app/src/main/res/values-de/strings.xml b/app/src/main/res/values-de/strings.xml index bd787e1..99e772d 100644 --- a/app/src/main/res/values-de/strings.xml +++ b/app/src/main/res/values-de/strings.xml @@ -138,4 +138,7 @@ Erfolg von Datei wiederherstellen du kannst auch… + Benachrichtigungen kommen nicht an? + Klick hier um zu sehen, warum + Bemerke, dass diese Tipps insbesondere auf Huawei/Honor-Geräten nicht funktionieren könnten. Du kannst sie trotzdem ausprobieren.\n\nAkkusparfunktionen können dazu führen, dass Benachrichtigungen nicht ankommen. Versuche, Akkusparmodi auf deren Standardeinstellung zu setzen.\n\nEinige Geräte beschränken Apps im Hintergrund. Suche in deinen Geräteeinstellungen unter Apps die Vertretungsplan-App und schaue dann nach einer Einstellung namens \"Hintergrund-Services beschränken\" (oder ähnlich) und stelle sicher, dass diese ausgestellt ist.\n\nBei Schwierigkeiten kann ich auch gerne helfen. \ No newline at end of file diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 4cdf5df..f273587 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -152,4 +152,7 @@ Success Restore from file you may also… + Not receiving notifications? + Click to see why + Note: on Huawei/Honor devices, there may not be a solution to this problem. You\'re welcome to try the tips provided.\n\nBattery saver functions often cause notifications to be delayed or not be received at all. Try setting any battery saving options to their default setting.\n\nSome devices restrict background usage of apps. Please go to your device app settings, select the app and check for a toggle named \"Restrict background usage\" (or similar) and verify that the setting is turned off.\n\nYou\'re also welcome to ask me for help.