add some brackets
This commit is contained in:
parent
9dfe89ba6b
commit
5c144a607b
1 changed files with 5 additions and 3 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue