diff --git a/app/src/main/java/org/communiquons/android/comunic/client/ui/activities/PDFActivity.java b/app/src/main/java/org/communiquons/android/comunic/client/ui/activities/PDFActivity.java index 58ee2a1..36d6148 100644 --- a/app/src/main/java/org/communiquons/android/comunic/client/ui/activities/PDFActivity.java +++ b/app/src/main/java/org/communiquons/android/comunic/client/ui/activities/PDFActivity.java @@ -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); diff --git a/app/src/main/java/org/communiquons/android/comunic/client/ui/activities/SearchUserActivity.java b/app/src/main/java/org/communiquons/android/comunic/client/ui/activities/SearchUserActivity.java index f37cce4..37ce966 100644 --- a/app/src/main/java/org/communiquons/android/comunic/client/ui/activities/SearchUserActivity.java +++ b/app/src/main/java/org/communiquons/android/comunic/client/ui/activities/SearchUserActivity.java @@ -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);