From f0de22315550bb9390537e20b856fc3d94822b5b Mon Sep 17 00:00:00 2001 From: tibbi Date: Thu, 3 Mar 2016 20:36:43 +0100 Subject: [PATCH] do not show 0 if none image is selected --- .../simplemobiletools/gallery/activities/PhotosActivity.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/com/simplemobiletools/gallery/activities/PhotosActivity.java b/app/src/main/java/com/simplemobiletools/gallery/activities/PhotosActivity.java index d06dbbb91..e04579f95 100644 --- a/app/src/main/java/com/simplemobiletools/gallery/activities/PhotosActivity.java +++ b/app/src/main/java/com/simplemobiletools/gallery/activities/PhotosActivity.java @@ -214,7 +214,9 @@ public class PhotosActivity extends AppCompatActivity else selectedItemsCnt--; - mode.setTitle(String.valueOf(selectedItemsCnt)); + if (selectedItemsCnt > 0) + mode.setTitle(String.valueOf(selectedItemsCnt)); + mode.invalidate(); }