Skip to content

Commit

Permalink
QUICKFIX Builder Crash When Null
Browse files Browse the repository at this point in the history
*Fix NPE when builder is null and dialogue is created.
  • Loading branch information
rayliverified committed Aug 21, 2017
1 parent 74b000d commit 5f1c097
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
2 changes: 0 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
repositories {
jcenter()
Expand Down
2 changes: 1 addition & 1 deletion customalert/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apply plugin: 'com.android.library'
apply plugin: 'com.github.dcendents.android-maven'

group='com.github.searchy2'
version = '1.5'
version = '1.6'

android {
compileSdkVersion 25
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,16 @@ public void onCreate(@Nullable Bundle savedInstanceState) {
}
setStyle(DialogFragment.STYLE_NO_TITLE, R.style.CustomDialog);
setRetainInstance(true);
if (builder.getCancelable() == false)
{
this.setCancelable(false);
}
else
if (builder != null)
{
this.setCancelable(true);
if (!builder.getCancelable())
{
this.setCancelable(false);
}
else
{
this.setCancelable(true);
}
}
super.onCreate(savedInstanceState);
}
Expand Down

0 comments on commit 5f1c097

Please sign in to comment.