Visual bugfixes: first time screen now shows status bar icons in dark mode, long names now don't cut off anymore in toolbar, status bar colour corrected on some devices. First time screen hides dark mode toggle and defaults to "conform to system setting" on Android 10 and above

This commit is contained in:
Deniz Düzgören
2019-09-11 20:59:55 +02:00
parent 48ec7f8829
commit 0398b846e5
12 changed files with 160 additions and 256 deletions
+43 -78
View File
@@ -19,14 +19,6 @@
android:layout_height="wrap_content"
android:layoutAnimation="@anim/layout_animation_fall_down">
<!-- <LinearLayout-->
<!-- android:layout_width="0dp"-->
<!-- android:layout_height="0dp"-->
<!-- android:focusable="true"-->
<!-- android:focusableInTouchMode="true"-->
<!-- app:layout_constraintStart_toStartOf="parent"-->
<!-- app:layout_constraintTop_toTopOf="parent" />-->
<TextView
android:id="@+id/txtWelcome"
android:layout_width="wrap_content"
@@ -223,83 +215,56 @@
app:layout_constraintStart_toStartOf="@+id/txtLayoutClasses"
app:layout_constraintTop_toBottomOf="@+id/txtLayoutCourses" />
<CheckBox
android:id="@+id/cbGreetings"
<LinearLayout android:id="@+id/checkBoxLinearLayout"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:text="@string/enableGreeting"
android:textAlignment="viewStart"
android:textColor="@color/colorText"
android:textSize="14sp"
android:orientation="vertical"
android:paddingStart="16dp"
android:paddingEnd="16dp"
android:layout_marginTop="8dp"
app:layout_constraintEnd_toEndOf="@+id/txtLayoutClasses"
app:layout_constraintStart_toStartOf="@+id/txtLayoutClasses"
app:layout_constraintTop_toBottomOf="@+id/txtMore" />
<CheckBox
android:id="@+id/cbDark"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:text="@string/enableDarkMode"
android:textAlignment="viewStart"
android:textColor="@color/colorText"
android:textSize="14sp"
app:layout_constraintEnd_toEndOf="@+id/txtLayoutClasses"
app:layout_constraintStart_toStartOf="@+id/txtLayoutClasses"
app:layout_constraintTop_toBottomOf="@+id/cbGreetings" />
<CheckBox
android:id="@+id/cbNotif"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:text="@string/notificationsAndSync"
android:textAlignment="viewStart"
android:textColor="@color/colorText"
android:textSize="14sp"
app:layout_constraintEnd_toEndOf="@+id/txtLayoutClasses"
app:layout_constraintStart_toStartOf="@+id/txtLayoutClasses"
app:layout_constraintTop_toBottomOf="@+id/cbDark" />
<CheckBox
android:id="@+id/cbPersonalised"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:text="@string/personalised"
android:textAlignment="viewStart"
android:textColor="@color/colorText"
android:textSize="14sp"
android:layout_marginBottom="64dp"
app:layout_constraintTop_toBottomOf="@+id/txtMore"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="@+id/txtLayoutClasses"
app:layout_constraintStart_toStartOf="@+id/txtLayoutClasses"
app:layout_constraintTop_toBottomOf="@+id/cbNotif" />
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toEndOf="parent">
<!-- <TextView-->
<!-- android:id="@+id/txtOr"-->
<!-- android:layout_width="0dp"-->
<!-- android:layout_height="wrap_content"-->
<!-- android:text="@string/or"-->
<!-- app:layout_constraintTop_toBottomOf="@+id/cbPersonalised"-->
<!-- app:layout_constraintEnd_toEndOf="@+id/txtLayoutClasses"-->
<!-- app:layout_constraintStart_toStartOf="@+id/txtLayoutClasses"-->
<!-- android:gravity="start"-->
<!-- android:layout_marginTop="16dp"-->
<!-- android:textColor="@color/colorText"/>-->
<CheckBox
android:id="@+id/cbGreetings"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/enableGreeting"
android:textAlignment="viewStart"
android:textColor="@color/colorText"
android:textSize="14sp"/>
<!-- <com.google.android.material.button.MaterialButton style="@style/Widget.MaterialComponents.Button.OutlinedButton"-->
<!-- android:id="@+id/btnRestoreFromFile"-->
<!-- android:layout_width="0dp"-->
<!-- android:layout_height="wrap_content"-->
<!-- app:strokeColor="@color/colorAccent"-->
<!-- app:strokeWidth="2dp"-->
<!-- android:textColor="@color/colorAccent"-->
<!-- android:text="@string/restoreFromFile"-->
<!-- android:layout_marginBottom="64dp"-->
<!-- android:layout_marginTop="8dp"-->
<!-- app:layout_constraintBottom_toBottomOf="parent"-->
<!-- app:layout_constraintTop_toBottomOf="@+id/txtOr"-->
<!-- app:layout_constraintEnd_toEndOf="@+id/txtLayoutClasses"-->
<!-- app:layout_constraintStart_toStartOf="@+id/txtLayoutClasses"/>-->
<CheckBox
android:id="@+id/cbDark"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/enableDarkMode"
android:textAlignment="viewStart"
android:textColor="@color/colorText"
android:textSize="14sp"/>
<CheckBox
android:id="@+id/cbNotif"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/notificationsAndSync"
android:textAlignment="viewStart"
android:textColor="@color/colorText"
android:textSize="14sp"/>
<CheckBox
android:id="@+id/cbPersonalised"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/personalised"
android:textAlignment="viewStart"
android:textColor="@color/colorText"
android:textSize="14sp"/>
</LinearLayout>
</androidx.constraintlayout.widget.ConstraintLayout>
+19 -15
View File
@@ -16,15 +16,29 @@
<androidx.appcompat.widget.Toolbar
android:id="@+id/toolbar"
android:layout_width="match_parent"
android:layout_height="84dp"
android:layout_height="wrap_content"
app:titleTextColor="@color/colorAccent"
app:contentInsetStart="0dp"
android:elevation="0dp"
app:layout_scrollFlags="scroll|enterAlwaysCollapsed">
<!-- 84dp-->
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
android:layout_height="wrap_content">
<TextView
android:id="@+id/text_greeting"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginStart="16dp"
android:layout_marginTop="8dp"
android:textColor="@color/colorAccent"
android:textSize="18sp"
android:fontFamily="@font/manrope_semibold"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintStart_toStartOf="parent"/>
<TextView
android:id="@+id/toolbarTxt"
@@ -38,22 +52,12 @@
android:singleLine="true"
android:layout_marginStart="16dp"
android:layout_marginEnd="16dp"
android:layout_marginTop="4dp"
android:layout_marginBottom="4dp"
app:layout_constraintTop_toBottomOf="@+id/text_greeting"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"/>
<TextView
android:id="@+id/text_greeting"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:layout_constraintBottom_toTopOf="@+id/toolbarTxt"
app:layout_constraintStart_toStartOf="parent"
android:layout_marginStart="16dp"
android:layout_marginBottom="4dp"
android:textColor="@color/colorAccent"
android:textSize="18sp"
android:fontFamily="@font/manrope_semibold"/>
app:layout_constraintEnd_toEndOf="parent"/>
</androidx.constraintlayout.widget.ConstraintLayout>
-2
View File
@@ -63,8 +63,6 @@
<string name="diagnosticsMenu">Diagnosemenü</string>
<string name="notificationsAndSync">Kursbenachrichtigungen aktivieren</string>
<string name="noSubstitutionsForYou">Kein Entfall für dich</string>
<string name="chineseDevicesHelp">Einige chinesische Hersteller, wie Huawei/Honor und Xiaomi, unterdrücken Hintergrund-Services, weshalb Benachrichtungen und Hintergrund-Synchronisation nicht funktionieren.\n\nIch habe feststellen müssen, dass es keine einfache Lösung dafür gibt, die ich einbauen könnte.\n\nStattdessen kannst du jedoch versuchen, App-Optimierungen für diese App zu deaktivieren:\n\nSchließe die App und öffne \"Einstellungen\" -> \"Apps\" -> \"AvH-Plan\" -> \"Akku\" -> \"App-Start\" -> \"Automatisch verwalten\" deaktivieren, \"Im Hintergrund ausführen\" aktivieren.\n\nDies kann unter Umständen keinen Einfluss haben.</string>
<string name="chineseDevicesTitle">Informationen bezüglich deines Gerätes</string>
<string name="customiseColoursTitle">Benutzerdefinierte Farben</string>
<string name="customiseColoursIndividually">Farben für jedes Fach einstellen</string>
<string name="courseDeu">Deutsch (+ DAZ)</string>
-3
View File
@@ -73,9 +73,6 @@
<string name="invalidCode">Invalid code</string>
<string name="noSubstitutionsForYou">No substitutions for you</string>
<string name="chineseDevicesTitle">Information regarding your device</string>
<string name="chineseDevicesHelp">Some Chinese manufacturers, such as Huawei/Honor and Xiaomi, heavily suppress background services, which results in notifications and background synchronisation not working.\n\nFrom my current research, I have determined that there\'s no easy workaround I can implement.\n\nYou can, however, try to disable power optimisation for this app in the settings:\n\nClose the app and open \"Settings\" -> \"Apps\" -> \"AvH Plan\" -> \"Battery\" -> \"Launch\" -> disable \"Manage automatically\", enable \"Run in background\"\n\nThis is not guaranteed to work.</string>
<string name="customiseColoursTitle">Customise colours</string>
<string name="customiseColoursIndividually">Customise every subject individually</string>