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

Commit

Permalink
Fixed cancel import file select
Browse files Browse the repository at this point in the history
Fixes #837
  • Loading branch information
M66B committed Nov 27, 2013
1 parent 259cfb0 commit 4d20b21
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 @@ -6,6 +6,7 @@ Changelog
* Caching of application information for better response times
* Restriction of draw over / on top ([issue](https://github.com/M66B/XPrivacy/issues/830))
* Modified tri-state check box implementation ([issue](https://github.com/M66B/XPrivacy/issues/833))
* Fixed cancel import file select ([issue](https://github.com/M66B/XPrivacy/issues/837))
* Updated Arabic translation
* Updated Dutch translation
* Updated Polish translation
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 @@ -382,11 +382,12 @@ public void run() {
} else if (requestCode == ACTIVITY_IMPORT) {
// Imported: clean-up UI
sharingDone();
// recreate UI
ActivityMain.this.recreate();
} else if (requestCode == ACTIVITY_IMPORT_SELECT) {
// Result for import file choice
if (data != null)
if (resultCode == RESULT_CANCELED)
sharingDone();
else if (data != null)
try {
String fileName = data.getData().getPath();
Intent intent = new Intent("biz.bokhorst.xprivacy.action.IMPORT");
Expand All @@ -398,7 +399,6 @@ public void run() {
} else if (requestCode == ACTIVITY_FETCH) {
// Fetched: clean-up UI
sharingDone();
// recreate UI
ActivityMain.this.recreate();
}
}
Expand Down

0 comments on commit 4d20b21

Please sign in to comment.