@@ -70,7 +70,7 @@ public void onDetach() {
7070 }
7171
7272 @ Override
73- public View onCreateView (LayoutInflater inflater , ViewGroup container ,
73+ public View onCreateView (@ NonNull LayoutInflater inflater , ViewGroup container ,
7474 Bundle savedInstanceState ) {
7575 getDialog ().requestWindowFeature (Window .FEATURE_NO_TITLE );
7676 getDialog ().setCancelable (false );
@@ -86,7 +86,7 @@ public View onCreateView(LayoutInflater inflater, ViewGroup container,
8686 @ Override
8787 public void onViewCreated (@ NonNull View view , @ Nullable Bundle savedInstanceState ) {
8888 super .onViewCreated (view , savedInstanceState );
89- // setCancelable(false);
89+ setCancelable (false );
9090
9191 tvNextTime .setOnClickListener (new View .OnClickListener () {
9292 @ Override
@@ -101,8 +101,10 @@ public void onClick(View v) {
101101 tvGoToStore .setOnClickListener (new View .OnClickListener () {
102102 @ Override
103103 public void onClick (View v ) {
104- IntentUtils .openAppInPlayStore (getContext (),
105- BaseLibraryConfiguration .getInstance ().APPLICATION_ID );
104+ if (getContext ()!=null ){
105+ IntentUtils .openAppInPlayStore (getContext (),
106+ BaseLibraryConfiguration .getInstance ().APPLICATION_ID );
107+ }
106108 if (callback != null ) {
107109 callback .goToStore ();
108110 }
0 commit comments