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

Commit

Permalink
Fixed selected accounts when imported from another device
Browse files Browse the repository at this point in the history
Refs #1699
  • Loading branch information
M66B committed Jun 3, 2014
1 parent 281a51a commit bb65d45
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ Changelog
* Show all usage data ([issue](/../../issues/1695))
* Show toggle on demand restricting on/off always ([issue](/../../issues/1697))
* Added option to merge template with existing restrictions ([issue](/../../issues/1700))
* Fixed selected accounts when imported from another device ([issue](/../../issues/1699))
* Updated Dutch translation
* Updated German translation
* Updated Lithuanian translation
Expand Down
2 changes: 2 additions & 0 deletions res/layout/settings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -87,13 +87,15 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="30dip"
android:background="?attr/color_dangerous"
android:text="@string/settings_syscomponents" />

<CheckBox
android:id="@+id/cbDangerous"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="30dip"
android:background="?attr/color_dangerous"
android:text="@string/settings_dangerous" />

<CheckBox
Expand Down
4 changes: 3 additions & 1 deletion src/biz/bokhorst/xprivacy/ActivityMain.java
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
import android.graphics.drawable.BitmapDrawable;
import android.net.Uri;
import android.os.AsyncTask;
import android.os.Build;
import android.os.Bundle;
import android.os.Environment;
import android.os.Handler;
Expand Down Expand Up @@ -169,8 +170,9 @@ protected void onCreate(Bundle savedInstanceState) {
Util.importProLicense(new File(getIntent().getData().getEncodedPath()));

// Delete legacy salt
String def = (Build.SERIAL == null ? "" : Build.SERIAL);
String salt = PrivacyManager.getSetting(userId, PrivacyManager.cSettingSalt, null, false);
if (salt != null && salt.equals(PrivacyManager.getSalt(userId)))
if (def.equals(salt))
PrivacyManager.setSetting(userId, PrivacyManager.cSettingSalt, null);

// Set layout
Expand Down

0 comments on commit bb65d45

Please sign in to comment.