Skip to content

Commit

Permalink
fix check versions dialog cancelable false
Browse files Browse the repository at this point in the history
  • Loading branch information
2math committed Aug 28, 2019
1 parent e2b810b commit 0dd3927
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public void onDetach() {
}

@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
public View onCreateView(@NonNull LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
getDialog().requestWindowFeature(Window.FEATURE_NO_TITLE);
getDialog().setCancelable(false);
Expand All @@ -86,7 +86,7 @@ public View onCreateView(LayoutInflater inflater, ViewGroup container,
@Override
public void onViewCreated(@NonNull View view, @Nullable Bundle savedInstanceState) {
super.onViewCreated(view, savedInstanceState);
// setCancelable(false);
setCancelable(false);

tvNextTime.setOnClickListener(new View.OnClickListener() {
@Override
Expand All @@ -101,8 +101,10 @@ public void onClick(View v) {
tvGoToStore.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
IntentUtils.openAppInPlayStore(getContext(),
BaseLibraryConfiguration.getInstance().APPLICATION_ID);
if(getContext()!=null){
IntentUtils.openAppInPlayStore(getContext(),
BaseLibraryConfiguration.getInstance().APPLICATION_ID);
}
if (callback != null) {
callback.goToStore();
}
Expand Down

0 comments on commit 0dd3927

Please sign in to comment.