Hides unavailable video export capabilities

hh
Laurent 6 years ago
parent 4e5cd493c2
commit c0ba02220d
  1. 10
      app/src/main/java/net/pokeranalytics/android/ui/modules/handhistory/HandHistoryFragment.kt
  2. 11
      app/src/main/res/layout/row_hhsettings_player_setup_read.xml

@ -643,16 +643,16 @@ class HandHistoryFragment : RealmFragment(), RowRepresentableDelegate, KeyboardL
val builder: AlertDialog.Builder = AlertDialog.Builder(context) val builder: AlertDialog.Builder = AlertDialog.Builder(context)
builder.setTitle(R.string.export) builder.setTitle(R.string.export)
builder.setItems(arrayOf<CharSequence>( builder.setItems(arrayOf<CharSequence>(
getString(R.string.video),
"GIF",
getString(R.string.text) getString(R.string.text)
// getString(R.string.video),
// "GIF"
)) { _, index -> )) { _, index ->
// The 'which' argument contains the index position // The 'which' argument contains the index position
// of the selected item // of the selected item
when (index) { when (index) {
0 -> this.videoExport() 0 -> this.textExport()
1 -> this.gifExport() 1 -> this.videoExport()
2 -> this.textExport() 2 -> this.gifExport()
} }
} }
builder.create().show() builder.create().show()

@ -26,17 +26,6 @@
android:layout_height="50dp" android:layout_height="50dp"
android:layout_width="144dp" /> android:layout_width="144dp" />
<!-- <LinearLayout-->
<!-- android:id="@+id/ps_hand_layout"-->
<!-- android:layout_width="144dp"-->
<!-- android:layout_height="50dp"-->
<!-- android:layout_marginStart="8dp"-->
<!-- android:background="@drawable/rounded_board_background"-->
<!-- android:gravity="center"-->
<!-- android:orientation="horizontal"-->
<!-- android:paddingStart="4dp"-->
<!-- android:paddingEnd="0dp" />-->
<androidx.appcompat.widget.AppCompatTextView <androidx.appcompat.widget.AppCompatTextView
android:id="@+id/stack_text_view" android:id="@+id/stack_text_view"
style="@style/PokerAnalyticsTheme.TextView.RowTitle" style="@style/PokerAnalyticsTheme.TextView.RowTitle"

Loading…
Cancel
Save