mirror of
https://github.com/pierre42100/ComunicAndroid
synced 2024-11-23 22:09:30 +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);
|
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);
|
||||||
|
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user