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

Commit

Permalink
Blacklisting needs to be enabled explicitly
Browse files Browse the repository at this point in the history
Refs #1781
  • Loading branch information
M66B committed Jul 5, 2014
1 parent 2bfe2be commit 17ef19a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/biz/bokhorst/xprivacy/SettingsDialog.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package biz.bokhorst.xprivacy;

import java.io.File;
import java.security.InvalidParameterException;
import java.util.List;

Expand All @@ -8,6 +9,7 @@
import android.content.Intent;
import android.location.Address;
import android.location.Geocoder;
import android.os.Environment;
import android.os.Process;
import android.text.TextUtils;
import android.view.View;
Expand Down Expand Up @@ -302,7 +304,8 @@ public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {
} else
cbOnDemand.setVisibility(View.GONE);

if (uid == userId)
String blFileName = Environment.getExternalStorageDirectory().getPath() + "/.xprivacy/blacklist";
if (uid == userId || !new File(blFileName).exists())
cbBlacklist.setVisibility(View.GONE);
else
cbBlacklist.setChecked(blacklist);
Expand Down

0 comments on commit 17ef19a

Please sign in to comment.