0

I am using snackbar to display if internet is not available. But the snackbar closes after a few seconds. I dont understand why this is happening. I want it to be displayed for indefinite period of time.

Snackbar
            .make(coordinatorLayout, "Connect to Internet.", Snackbar.LENGTH_INDEFINITE)
            .setAction("RETRY", new View.OnClickListener() {
                @Override
                public void onClick(View view) {
                    makecall();
                }
            }).show();
Mayank Gera
  • 101
  • 1
  • 1
  • 6

1 Answers1

0

Similar issues have been resolved here and here, you may want to check them.

Mag_Amine
  • 135
  • 1
  • 9