diff options
author | Romain Guy <romainguy@google.com> | 2013-06-05 17:19:01 -0700 |
---|---|---|
committer | Romain Guy <romainguy@google.com> | 2013-06-06 12:10:42 -0700 |
commit | f69913056b8c6000ff0306573a97971702e8d35a (patch) | |
tree | c1180d9f68dac44dafd2be1b55cf1d8841d646f2 /tests/HwAccelerationTest/src | |
parent | 5d25b18ec82347975248b5a6cee5c7501e8a0b2d (diff) | |
download | frameworks_base-f69913056b8c6000ff0306573a97971702e8d35a.zip frameworks_base-f69913056b8c6000ff0306573a97971702e8d35a.tar.gz frameworks_base-f69913056b8c6000ff0306573a97971702e8d35a.tar.bz2 |
Remove unnecessary allocations
Change-Id: Ia561a0a312ca2737d5afa742184f5392bb2f29a3
Diffstat (limited to 'tests/HwAccelerationTest/src')
-rw-r--r-- | tests/HwAccelerationTest/src/com/android/test/hwui/ListActivity.java | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/tests/HwAccelerationTest/src/com/android/test/hwui/ListActivity.java b/tests/HwAccelerationTest/src/com/android/test/hwui/ListActivity.java index 13b6129..db6421e 100644 --- a/tests/HwAccelerationTest/src/com/android/test/hwui/ListActivity.java +++ b/tests/HwAccelerationTest/src/com/android/test/hwui/ListActivity.java @@ -20,19 +20,15 @@ import android.app.Activity; import android.content.Context; import android.content.res.Resources; import android.os.Bundle; -import android.os.Environment; import android.util.DisplayMetrics; import android.view.ContextMenu; import android.view.View; -import android.view.ViewDebug; import android.view.ViewGroup; import android.widget.ArrayAdapter; import android.widget.ListAdapter; import android.widget.ListView; import android.widget.TextView; -import java.io.File; - @SuppressWarnings({"UnusedDeclaration"}) public class ListActivity extends Activity { private static final String[] DATA_LIST = { @@ -86,7 +82,7 @@ public class ListActivity extends Activity { ListAdapter adapter = new SimpleListAdapter(this); - ListView list = (ListView) findViewById(R.id.list); + final ListView list = (ListView) findViewById(R.id.list); list.setAdapter(adapter); registerForContextMenu(list); |