Browse Source

Add an Android Auto refactor explanation in the what's new dialog

merge-requests/2314/head
Nicolas Pomepuy 7 months ago
parent
commit
75529b0425
  1. 1
      application/resources/src/main/res/values/strings.xml
  2. 71
      application/vlc-android/res/layout/dialog_whats_new.xml
  3. 6
      application/vlc-android/src/org/videolan/vlc/gui/dialogs/WhatsNewDialog.kt

1
application/resources/src/main/res/values/strings.xml

@ -683,6 +683,7 @@
<string name="whats_new_title">What\'s new in VLC for Android %s</string>
<string name="whats_new_37_equalizer_text">The equalizer has been reworked from scratch. It\'s easier to use, lets you disable the default presets and allows you to backup, restore and share your presets.</string>
<string name="whats_new_37_import_export">We improved the backup and restore settings feature. It now lets you backup more settings, including the equalizer presets.</string>
<string name="whats_new_37_android_auto">Due to some new store constraints, the Android Auto settings have all been moved to the mobile application. It becomes the new place to change your automotive experience.</string>
<string name="show_in_settings">Show in settings</string>
<!-- update-->

71
application/vlc-android/res/layout/dialog_whats_new.xml

@ -203,6 +203,75 @@
</com.google.android.material.card.MaterialCardView>
<com.google.android.material.card.MaterialCardView
android:id="@+id/autoCardView"
style="@style/VLCCardView.NoShadow"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="16dp"
android:layout_marginTop="24dp"
android:layout_marginEnd="16dp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/materialCardView">
<androidx.appcompat.widget.LinearLayoutCompat
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:padding="8dp">
<androidx.appcompat.widget.LinearLayoutCompat
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:padding="8dp"
android:orientation="horizontal">
<ImageView
android:layout_width="24dp"
android:layout_height="24dp"
app:tint="?attr/font_default"
app:srcCompat="@drawable/ic_pref_android_auto" />
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="8dp"
android:layout_marginEnd="8dp"
android:fontFamily="sans-serif-medium"
android:padding="0dp"
android:text="@string/android_auto"
android:textColor="?attr/font_default"
android:textSize="16sp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.0"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/textView33" />
</androidx.appcompat.widget.LinearLayoutCompat>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="16dp"
android:padding="8dp"
android:text="@string/whats_new_37_android_auto"
android:textColor="?android:attr/textColorSecondary" />
<Button
android:id="@+id/show_in_settings3"
style="@style/Widget.MaterialComponents.Button.TextButton.Dialog"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="end"
android:layout_marginTop="8dp"
android:text="@string/show_in_settings" />
</androidx.appcompat.widget.LinearLayoutCompat>
</com.google.android.material.card.MaterialCardView>
<CheckBox
android:id="@+id/never_again"
android:layout_width="0dp"
@ -215,7 +284,7 @@
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/materialCardView" />
app:layout_constraintTop_toBottomOf="@+id/autoCardView" />
</androidx.constraintlayout.widget.ConstraintLayout>

6
application/vlc-android/src/org/videolan/vlc/gui/dialogs/WhatsNewDialog.kt

@ -69,6 +69,12 @@ class WhatsNewDialog : VLCBottomSheetDialogFragment() {
dismiss()
}
}
binding.showInSettings3.setOnClickListener {
lifecycleScope.launch {
PreferencesActivity.launchWithPref(requireActivity(), "playback_speed_audio_global")
dismiss()
}
}
binding.neverAgain.setOnCheckedChangeListener { _, isChecked ->
Settings.getInstance(requireActivity()).putSingle(KEY_SHOW_WHATS_NEW, !isChecked)
}

Loading…
Cancel
Save