From 0e74358dcf3e540633e82106c86f20661bc464a8 Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Wed, 1 Aug 2018 11:44:26 +0200 Subject: [PATCH] Removed redundant casting --- .../android/comunic/client/ui/activities/PDFActivity.java | 2 +- .../comunic/client/ui/activities/SearchUserActivity.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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);