summaryrefslogtreecommitdiff
path: root/tests/RenderThreadTest/src/com/example/renderthread/MainActivity.java
diff options
context:
space:
mode:
authorAlan Viverette <alanv@google.com>2017-04-14 17:04:19 +0000
committerandroid-build-merger <android-build-merger@google.com>2017-04-14 17:04:19 +0000
commitefc602c30700112de9535ea4f85b497dd55df254 (patch)
tree6fbf659bc07b4a86b13cb6e9befec52b6d8b4406 /tests/RenderThreadTest/src/com/example/renderthread/MainActivity.java
parent2de6b0dab0ce67f0ed94560d2ba3fbc4ea106a22 (diff)
parent7c8ab2651b1f1c55f1df5eddba1bb3068299261f (diff)
Merge "Remove unnecessary casts on calls to findViewById" into oc-dev
am: 7c8ab2651b Change-Id: I82826b63a3d6bc527c696158bfab98fe438f9847
Diffstat (limited to 'tests/RenderThreadTest/src/com/example/renderthread/MainActivity.java')
-rw-r--r--tests/RenderThreadTest/src/com/example/renderthread/MainActivity.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/RenderThreadTest/src/com/example/renderthread/MainActivity.java b/tests/RenderThreadTest/src/com/example/renderthread/MainActivity.java
index ee4c8343d9e9..241206d8919b 100644
--- a/tests/RenderThreadTest/src/com/example/renderthread/MainActivity.java
+++ b/tests/RenderThreadTest/src/com/example/renderthread/MainActivity.java
@@ -43,7 +43,7 @@ public class MainActivity extends Activity implements OnItemClickListener {
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
- ListView lv = (ListView) findViewById(android.R.id.list);
+ ListView lv = findViewById(android.R.id.list);
lv.setDrawSelectorOnTop(true);
lv.setAdapter(new SimpleAdapter(this, SAMPLES,
R.layout.item_layout, new String[] { KEY_NAME },
@@ -55,7 +55,7 @@ public class MainActivity extends Activity implements OnItemClickListener {
@Override
protected void onResume() {
super.onResume();
- ListView lv = (ListView) findViewById(android.R.id.list);
+ ListView lv = findViewById(android.R.id.list);
for (int i = 0; i < lv.getChildCount(); i++) {
lv.getChildAt(i).animate().translationY(0).setDuration(DURATION);
}