am 73db36e6: Merge "Fix crash in ImageProcessing blend test" into jb-mr1-dev

* commit '73db36e6d8e4ad89c710783b66b99064e483b614':
  Fix crash in ImageProcessing blend test
This commit is contained in:
Jason Sams
2012-10-12 19:02:43 -07:00
committed by Android Git Automerger
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) {