From 5c144a607b93366d27021e6d78f62eef37fd0084 Mon Sep 17 00:00:00 2001 From: tibbi Date: Tue, 22 Mar 2016 20:49:49 +0100 Subject: [PATCH] add some brackets --- .../gallery/activities/MainActivity.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/com/simplemobiletools/gallery/activities/MainActivity.java b/app/src/main/java/com/simplemobiletools/gallery/activities/MainActivity.java index 7fcb39e69..5546f7a8c 100644 --- a/app/src/main/java/com/simplemobiletools/gallery/activities/MainActivity.java +++ b/app/src/main/java/com/simplemobiletools/gallery/activities/MainActivity.java @@ -270,13 +270,15 @@ public class MainActivity extends AppCompatActivity @Override public void onItemCheckedStateChanged(ActionMode mode, int position, long id, boolean checked) { - if (checked) + if (checked) { selectedItemsCnt++; - else + } else { selectedItemsCnt--; + } - if (selectedItemsCnt > 0) + if (selectedItemsCnt > 0) { mode.setTitle(String.valueOf(selectedItemsCnt)); + } mode.invalidate(); }