Remove unnecessary casts on calls to findViewById

Just frameworks/ this time. More paths to come.

Bug: 24137209
Test: make -j32
Change-Id: Iff27abd26fa43296ac2fff8f534fc6742d2ae80c
This commit is contained in:
Alan Viverette
2017-04-05 10:00:01 -04:00
parent 5879aa4b03
commit 51efddbd3b
191 changed files with 522 additions and 522 deletions

View File

@@ -158,7 +158,7 @@ public class NetworkActivity extends Activity {
setContentView(R.layout.main);
// The specified network connection is not available. Displays error message.
WebView myWebView = (WebView) findViewById(R.id.webview);
WebView myWebView = findViewById(R.id.webview);
myWebView.loadData(getResources().getString(R.string.connection_error),
"text/html", null);
}
@@ -205,7 +205,7 @@ public class NetworkActivity extends Activity {
protected void onPostExecute(String result) {
setContentView(R.layout.main);
// Displays the HTML string in the UI via a WebView
WebView myWebView = (WebView) findViewById(R.id.webview);
WebView myWebView = findViewById(R.id.webview);
myWebView.loadData(result, "text/html", null);
}
}