mirror of
https://github.com/SimpleMobileTools/Simple-Gallery.git
synced 2024-12-22 13:34:49 +01:00
add some brackets
This commit is contained in:
parent
9dfe89ba6b
commit
5c144a607b
@ -270,13 +270,15 @@ public class MainActivity extends AppCompatActivity
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onItemCheckedStateChanged(ActionMode mode, int position, long id, boolean checked) {
|
public void onItemCheckedStateChanged(ActionMode mode, int position, long id, boolean checked) {
|
||||||
if (checked)
|
if (checked) {
|
||||||
selectedItemsCnt++;
|
selectedItemsCnt++;
|
||||||
else
|
} else {
|
||||||
selectedItemsCnt--;
|
selectedItemsCnt--;
|
||||||
|
}
|
||||||
|
|
||||||
if (selectedItemsCnt > 0)
|
if (selectedItemsCnt > 0) {
|
||||||
mode.setTitle(String.valueOf(selectedItemsCnt));
|
mode.setTitle(String.valueOf(selectedItemsCnt));
|
||||||
|
}
|
||||||
|
|
||||||
mode.invalidate();
|
mode.invalidate();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user