Skip to content

Commit

Permalink
Minor update to close M66B#1318
Browse files Browse the repository at this point in the history
Exit select mode when the last selected app is unselected
  • Loading branch information
paour committed Feb 12, 2014
1 parent 13d5205 commit 98ce253
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/biz/bokhorst/xprivacy/ActivityMain.java
Original file line number Diff line number Diff line change
Expand Up @@ -1451,6 +1451,10 @@ public void onClick(final View view) {
if (mListAppSelected.contains(xAppInfo)) {
mListAppSelected.remove(xAppInfo);
holder.row.setBackgroundColor(Color.TRANSPARENT);

if (mListAppSelected.size() == 0) {
mSelecting = false;
}
} else {
mListAppSelected.add(xAppInfo);
holder.row.setBackgroundColor(mHighlightColor);
Expand Down

0 comments on commit 98ce253

Please sign in to comment.