Skip to content

Commit

Permalink
Fixed dismiss on outside tap.
Browse files Browse the repository at this point in the history
  • Loading branch information
hishd committed Mar 18, 2021
1 parent ddb5608 commit 10ad75c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ public class AnimDialog extends Dialog {
public AnimDialog(Context context) {
super(context);
this.context = context;
this.setCanceledOnTouchOutside(false);
}

public AnimDialog setBackgroundColor(int color) {
Expand Down
1 change: 0 additions & 1 deletion animdialog/src/main/res/layout/layout_animated_single.xml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@
android:layout_height="wrap_content"
android:layout_below="@id/txtTitle"
android:layout_marginTop="@dimen/_10sdp"
android:maxLines="10"
android:paddingStart="@dimen/_10sdp"
android:paddingEnd="@dimen/_10sdp"
android:text="This is the content of the dialog" />
Expand Down

0 comments on commit 10ad75c

Please sign in to comment.