Removed redundant casting

This commit is contained in:
Pierre HUBERT 2018-08-01 11:44:26 +02:00
parent f856cc471f
commit 0e74358dcf
2 changed files with 3 additions and 3 deletions

View File

@ -30,7 +30,7 @@ public class PDFActivity extends AppCompatActivity {
setContentView(R.layout.activity_pdf); setContentView(R.layout.activity_pdf);
//Get and setup WebView //Get and setup WebView
mWebView = (WebView) findViewById(R.id.webview); mWebView = findViewById(R.id.webview);
mWebView.getSettings().setJavaScriptEnabled(true); mWebView.getSettings().setJavaScriptEnabled(true);
mWebView.getSettings().setAllowFileAccess(false); mWebView.getSettings().setAllowFileAccess(false);
mWebView.getSettings().setAllowFileAccessFromFileURLs(false); mWebView.getSettings().setAllowFileAccessFromFileURLs(false);

View File

@ -65,8 +65,8 @@ public class SearchUserActivity extends AppCompatActivity
getUsersHelper = new GetUsersHelper(this, DatabaseHelper.getInstance(this)); getUsersHelper = new GetUsersHelper(this, DatabaseHelper.getInstance(this));
//Get view //Get view
searchField = (EditText) findViewById(R.id.activity_search_user_field); searchField = findViewById(R.id.activity_search_user_field);
resultListView = (ListView) findViewById(R.id.activity_search_user_results); resultListView = findViewById(R.id.activity_search_user_results);
//Set on key listener //Set on key listener
searchField.addTextChangedListener(this); searchField.addTextChangedListener(this);