mirror of
https://github.com/pierre42100/ComunicAndroid
synced 2024-11-23 13:59:29 +00:00
Removed redundant casting
This commit is contained in:
parent
f856cc471f
commit
0e74358dcf
@ -30,7 +30,7 @@ public class PDFActivity extends AppCompatActivity {
|
||||
setContentView(R.layout.activity_pdf);
|
||||
|
||||
//Get and setup WebView
|
||||
mWebView = (WebView) findViewById(R.id.webview);
|
||||
mWebView = findViewById(R.id.webview);
|
||||
mWebView.getSettings().setJavaScriptEnabled(true);
|
||||
mWebView.getSettings().setAllowFileAccess(false);
|
||||
mWebView.getSettings().setAllowFileAccessFromFileURLs(false);
|
||||
|
@ -65,8 +65,8 @@ public class SearchUserActivity extends AppCompatActivity
|
||||
getUsersHelper = new GetUsersHelper(this, DatabaseHelper.getInstance(this));
|
||||
|
||||
//Get view
|
||||
searchField = (EditText) findViewById(R.id.activity_search_user_field);
|
||||
resultListView = (ListView) findViewById(R.id.activity_search_user_results);
|
||||
searchField = findViewById(R.id.activity_search_user_field);
|
||||
resultListView = findViewById(R.id.activity_search_user_results);
|
||||
|
||||
//Set on key listener
|
||||
searchField.addTextChangedListener(this);
|
||||
|
Loading…
Reference in New Issue
Block a user