Fix crash when rotating screen in App Details
This commit is contained in:
parent
58eb580159
commit
003d65627e
@ -217,6 +217,15 @@ public class AppDetails extends ListActivity {
|
||||
if (viewResetRequired) {
|
||||
reset();
|
||||
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) {
|
||||
downloadHandler.startUpdates();
|
||||
|
Loading…
x
Reference in New Issue
Block a user