Skip to content
This repository has been archived by the owner on Sep 6, 2019. It is now read-only.

Commit

Permalink
Fixed select/unselect all
Browse files Browse the repository at this point in the history
Closes #1390
  • Loading branch information
M66B committed Feb 19, 2014
1 parent 2fb58ca commit 140bdcf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ Changelog

* Fixed restriction caching (performance)
* Fixed allowing contacts for contact aggregation
* Fixed select/unselect all ([issue](/../../issues/1390))

[Open issues](https://github.com/M66B/XPrivacy/issues?state=open)

Expand Down
6 changes: 3 additions & 3 deletions src/biz/bokhorst/xprivacy/ActivityMain.java
Original file line number Diff line number Diff line change
Expand Up @@ -1144,15 +1144,15 @@ public int[] getSelectedOrVisibleUid(int flags) {

public void selectAllVisible() {
// Look through the visible apps to figure out what to do
boolean addThem = false;
mSelecting = false;
for (int i = 0; i < this.getCount(); i++) {
if (!mListAppSelected.contains(this.getItem(i))) {
addThem = true;
mSelecting = true;
break;
}
}

if (addThem) {
if (mSelecting) {
// Add the visible apps not already selected
for (int i = 0; i < this.getCount(); i++)
if (!mListAppSelected.contains(this.getItem(i)))
Expand Down

0 comments on commit 140bdcf

Please sign in to comment.