Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Hid arrow icon when there is just one image.
  • Loading branch information
vyankatesh24 committed Aug 11, 2018
1 parent 32b76ca commit 55218a6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,9 @@ protected void onCreate(Bundle savedInstanceState) {
mPhotoEditorView.getSource()
.setImageBitmap(BitmapFactory.decodeFile(mFilterUris.get(0)));
setImageCount();
mPreviousButton.setVisibility(View.INVISIBLE);
if (mDisplaySize == 1) {
mNextButton.setVisibility(View.INVISIBLE);
}
mFilterItems = getFiltersList(this);
mBrushItems = getBrushItems();
mImagepaths.addAll(mFilterUris);
Expand Down
3 changes: 2 additions & 1 deletion app/src/main/res/layout/activity_photo_editor.xml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@
android:layout_marginStart="20dp"
android:background="@drawable/ic_navigate_before_white_24dp"
android:backgroundTint="@color/colorPrimary"
android:contentDescription="@string/previous_image_content_desc" />
android:contentDescription="@string/previous_image_content_desc"
android:visibility="invisible"/>

<TextView
android:id="@+id/imagecount"
Expand Down

0 comments on commit 55218a6

Please sign in to comment.