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

Commit

Permalink
Show on demand dialog for all users
Browse files Browse the repository at this point in the history
Refs #1261
  • Loading branch information
M66B committed Feb 6, 2014
1 parent 847939f commit a1e5ccf
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/biz/bokhorst/xprivacy/PrivacyService.java
Original file line number Diff line number Diff line change
Expand Up @@ -1032,9 +1032,7 @@ public void run() {
AlertDialog.Builder builder = getOnDemandDialogBuilder(restriction, hook, appInfo,
dangerous, result, context, latch);
AlertDialog alertDialog = builder.create();
alertDialog.getWindow().setType(
userId == 0 ? WindowManager.LayoutParams.TYPE_SYSTEM_ALERT
: WindowManager.LayoutParams.TYPE_SYSTEM_DIALOG);
alertDialog.getWindow().setType(WindowManager.LayoutParams.TYPE_SYSTEM_DIALOG);
alertDialog.setCancelable(false);
alertDialog.setCanceledOnTouchOutside(false);
alertDialog.show();
Expand Down

0 comments on commit a1e5ccf

Please sign in to comment.