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) {
|
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();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user