Skip to content

Commit

Permalink
issue-1563 - prevent dialog hiding when pressing home and returning
Browse files Browse the repository at this point in the history
  • Loading branch information
iniju committed Jan 28, 2013
1 parent a6e3f7a commit 61943f7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/com/ichi2/themes/StyledDialog.java
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ public StyledDialog(Context context) {
@Override
public void show() {
try {
setCanceledOnTouchOutside(false);
super.show();
} catch (BadTokenException e) {
Log.e(AnkiDroidApp.TAG, "Could not show dialog: " + e);
Expand Down
1 change: 1 addition & 0 deletions src/com/ichi2/themes/StyledOpenCollectionDialog.java
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ public StyledOpenCollectionDialog(Context context) {
@Override
public void show() {
try {
setCanceledOnTouchOutside(false);
super.show();
} catch (BadTokenException e) {
Log.e(AnkiDroidApp.TAG, "Could not show dialog: " + e);
Expand Down
1 change: 1 addition & 0 deletions src/com/ichi2/themes/StyledProgressDialog.java
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ public StyledProgressDialog(Context context) {
@Override
public void show() {
try {
setCanceledOnTouchOutside(false);
super.show();
} catch (BadTokenException e) {
Log.e(AnkiDroidApp.TAG, "Could not show dialog: " + e);
Expand Down

0 comments on commit 61943f7

Please sign in to comment.