Fix #2163: Hide subtitle message when uploading a single image (#2169)

* Hide subtitle message when uploading a single image (#2163)

* updateSubtitleVisibility: Javadoc and replace if with ternary operator

* updateSubtitleVisibility: change findViewById to BindView

* Remove null checks for views

Null check is not required while binding views with butterknife.
This commit is contained in:
Zhao Gang 2019-01-01 18:38:12 +08:00 committed by Vivek Maskara
parent 5c8a0cdd93
commit af291a5fcc
5 changed files with 18 additions and 2 deletions

View file

@ -38,7 +38,7 @@
android:textSize="@dimen/subtitle_text"
android:text="@string/upload_flow_all_images_in_set"
android:layout_below="@+id/categories_title"
tools:text="(For all images in set)" />
android:visibility="gone" />
<FrameLayout
android:layout_width="match_parent"

View file

@ -38,7 +38,7 @@
android:textSize="@dimen/subtitle_text"
android:text="@string/upload_flow_all_images_in_set"
android:layout_below="@+id/license_title"
tools:text="(For all images in set)" />
android:visibility="gone" />
<Spinner
android:id="@+id/license_list"