Merge "Fix crash in ImageProcessing blend test" into jb-mr1-dev

This commit is contained in:
Jason Sams
2012-10-12 19:00:19 -07:00
committed by Android (Google) Code Review
2 changed files with 5 additions and 2 deletions

View File

@@ -52,8 +52,10 @@ public class Blend extends TestBase {
new AdapterView.OnItemSelectedListener() { new AdapterView.OnItemSelectedListener() {
public void onItemSelected(AdapterView<?> parent, View view, int pos, long id) { public void onItemSelected(AdapterView<?> parent, View view, int pos, long id) {
currentIntrinsic = pos; currentIntrinsic = pos;
runTest(); if (mRS != null) {
act.updateDisplay(); runTest();
act.updateDisplay();
}
} }
public void onNothingSelected(AdapterView parent) { public void onNothingSelected(AdapterView parent) {

View File

@@ -123,6 +123,7 @@ public class TestBase {
public void destroy() { public void destroy() {
mRS.destroy(); mRS.destroy();
mRS = null;
} }
public void updateBitmap(Bitmap b) { public void updateBitmap(Bitmap b) {