Fix crash when rotating screen in App Details

This commit is contained in:
Ciaran Gultnieks 2012-09-12 21:52:52 +01:00
parent 58eb580159
commit 003d65627e

View File

@ -217,6 +217,15 @@ public class AppDetails extends ListActivity {
if (viewResetRequired) { if (viewResetRequired) {
reset(); reset();
viewResetRequired = false; viewResetRequired = false;
} else {
// Doing the reset() will usually get our compatChecker, but if
// we're skipping that we'd better get one now...
try {
DB db = DB.getDB();
compatChecker = db.getCompatibilityChecker();
} finally {
DB.releaseDB();
}
} }
if (downloadHandler != null) { if (downloadHandler != null) {
downloadHandler.startUpdates(); downloadHandler.startUpdates();