diff options
author | Alan Viverette <alanv@google.com> | 2017-04-14 18:25:53 +0000 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2017-04-14 18:25:53 +0000 |
commit | 14b3375e43d29d353ce6966a9200f09f26592cf3 (patch) | |
tree | 634691e151465ff54ea69ae93c94136c3615abb0 /tests/RenderThreadTest/src/com/example/renderthread/MainActivity.java | |
parent | 568b59c62ccc5a9a22a598d081408e8615ed49fc (diff) | |
parent | efc602c30700112de9535ea4f85b497dd55df254 (diff) |
Merge "Remove unnecessary casts on calls to findViewById" into oc-dev am: 7c8ab2651b
am: efc602c307
Change-Id: Id991d413933d8435a05b129bf13e917941371c01
Diffstat (limited to 'tests/RenderThreadTest/src/com/example/renderthread/MainActivity.java')
-rw-r--r-- | tests/RenderThreadTest/src/com/example/renderthread/MainActivity.java | 4 |
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); } |