move snackbar to root view

This commit is contained in:
Daniel Micay 2022-05-06 10:12:07 -04:00
parent 1a3e816cfc
commit 6a7982ce80

View File

@ -363,7 +363,7 @@ public class PdfViewer extends AppCompatActivity implements LoaderManager.Loader
// loader manager impl so that the result will be delivered.
LoaderManager.getInstance(this);
snackbar = Snackbar.make(binding.webview, "", Snackbar.LENGTH_LONG);
snackbar = Snackbar.make(binding.getRoot(), "", Snackbar.LENGTH_LONG);
final Intent intent = getIntent();
if (Intent.ACTION_VIEW.equals(intent.getAction())) {