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

Commit

Permalink
Do not import version number
Browse files Browse the repository at this point in the history
Fixes #1721
  • Loading branch information
M66B committed Jun 16, 2014
1 parent c25b18e commit b7d8666
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ Changelog
* Fixed applying template restricting dangerous functions ([issue](/../../issues/1728))
* Applying template with on demand restricting will enabled on demand restricting setting ([issue](/../../issues/1727))
* Fixed *inet*, *media* and *sdcard* always on demand restricting ([issue](/../../issues/1722))
* Do not import version number ([issue](/../../issues/1721))

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

Expand Down
9 changes: 9 additions & 0 deletions src/biz/bokhorst/xprivacy/ActivityShare.java
Original file line number Diff line number Diff line change
Expand Up @@ -1050,6 +1050,15 @@ public void startElement(String uri, String localName, String qName, Attributes
String name = attributes.getValue("Name");
String value = attributes.getValue("Value");

// Failsafe
if (name == null)
return;

// Do not import version number
if (name.equals(PrivacyManager.cSettingVersion))
return;

// Decode legacy type
if (name.startsWith("Account.") || name.startsWith("Application.") || name.startsWith("Contact.")
|| name.startsWith("Template.") || name.startsWith("Whitelist.")) {
name = name.replace("Whitelist.", "");
Expand Down

0 comments on commit b7d8666

Please sign in to comment.