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

Nicolas Pomepuy git at videolan.org
Thu Sep 4 06:58:34 UTC 2025


vlc-android | branch: master | Nicolas Pomepuy <nicolas at videolabs.io> | Tue Sep  2 13:15:07 2025 +0200| [75529b042534026d918234590f8cb82cccdd5d16] | committer: Nicolas Pomepuy

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

> https://code.videolan.org/videolan/vlc-android/commit/75529b042534026d918234590f8cb82cccdd5d16
---

 .../resources/src/main/res/values/strings.xml      |  1 +
 .../vlc-android/res/layout/dialog_whats_new.xml    | 71 +++++++++++++++++++++-
 .../org/videolan/vlc/gui/dialogs/WhatsNewDialog.kt |  6 ++
 3 files changed, 77 insertions(+), 1 deletion(-)

diff --git a/application/resources/src/main/res/values/strings.xml b/application/resources/src/main/res/values/strings.xml
index 69b17161c9..f939f8bfd2 100644
--- a/application/resources/src/main/res/values/strings.xml
+++ b/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-->
diff --git a/application/vlc-android/res/layout/dialog_whats_new.xml b/application/vlc-android/res/layout/dialog_whats_new.xml
index c03e1b9ca1..cb9f3590a6 100644
--- a/application/vlc-android/res/layout/dialog_whats_new.xml
+++ b/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>
diff --git a/application/vlc-android/src/org/videolan/vlc/gui/dialogs/WhatsNewDialog.kt b/application/vlc-android/src/org/videolan/vlc/gui/dialogs/WhatsNewDialog.kt
index 41c2bb69c6..9a0cab505f 100644
--- a/application/vlc-android/src/org/videolan/vlc/gui/dialogs/WhatsNewDialog.kt
+++ b/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)
         }



More information about the Android mailing list