reuse findViewById result to avoid lint error

This commit is contained in:
Daniel Micay 2020-05-17 06:37:27 -04:00
parent 98f4dd1923
commit b5e9dcc78b
1 changed files with 1 additions and 1 deletions

View File

@ -283,7 +283,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(findViewById(R.id.webview), "", Snackbar.LENGTH_LONG);
snackbar = Snackbar.make(mWebView, "", Snackbar.LENGTH_LONG);
final Intent intent = getIntent();
if (Intent.ACTION_VIEW.equals(intent.getAction())) {