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)
builder.setTitle(R.string.export)
builder.setItems(arrayOf<CharSequence>(
getString(R.string.video),
"GIF",
getString(R.string.text)
// getString(R.string.video),
// "GIF"
)) { _, index ->
// The 'which' argument contains the index position
// of the selected item
when (index) {
0 -> this.videoExport()
1 -> this.gifExport()
2 -> this.textExport()
0 -> this.textExport()
1 -> this.videoExport()
2 -> this.gifExport()
}
}
builder.create().show()

@ -26,17 +26,6 @@
android:layout_height="50dp"
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
android:id="@+id/stack_text_view"
style="@style/PokerAnalyticsTheme.TextView.RowTitle"

Loading…
Cancel
Save