Browse Source

Add a way to show the what's new dialog again

transifex
Nicolas Pomepuy 3 years ago
parent
commit
6fdf9e2248
  1. 13
      application/vlc-android/res/layout/dialog_about_version.xml
  2. 5
      application/vlc-android/src/org/videolan/vlc/gui/dialogs/AboutVersionDialog.kt

13
application/vlc-android/res/layout/dialog_about_version.xml

@ -50,6 +50,17 @@
app:layout_constraintTop_toBottomOf="@+id/medias2"
tools:text="* Bug fixes\n*Crash fixes" />
<Button
android:id="@+id/moreButton"
style="@style/Widget.MaterialComponents.Button.TextButton.Dialog"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="8dp"
android:layout_marginEnd="16dp"
android:text="@string/more"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toBottomOf="@+id/changelog" />
<TextView
android:id="@+id/textView28"
android:layout_width="wrap_content"
@ -59,7 +70,7 @@
android:text="@string/revision"
android:textColor="?attr/font_light"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/changelog" />
app:layout_constraintTop_toBottomOf="@+id/moreButton" />
<TextView
android:id="@+id/textView29"

5
application/vlc-android/src/org/videolan/vlc/gui/dialogs/AboutVersionDialog.kt

@ -70,6 +70,11 @@ class AboutVersionDialog : VLCBottomSheetDialogFragment() {
binding.libvlcRevision.text = getString(R.string.build_libvlc_revision)
binding.libvlcVersion.text = BuildConfig.LIBVLC_VERSION
binding.compiledBy.text = getString(R.string.build_host)
binding.moreButton.setOnClickListener {
val whatsNewDialog = WhatsNewDialog()
whatsNewDialog.show(requireActivity().supportFragmentManager, "fragment_whats_new")
dismiss()
}
}

Loading…
Cancel
Save