Avoid UI clash between changed repos and empty update

This commit is contained in:
Ciaran Gultnieks 2012-09-12 16:55:43 +01:00
parent 64c8ed5507
commit 951bf603fd

View File

@ -135,12 +135,12 @@ public class FDroid extends TabActivity implements OnItemClickListener,
}
}
triedEmptyUpdate = false;
}
@Override
protected void onStart() {
super.onStart();
triedEmptyUpdate = false;
populateLists(true);
}
@ -231,6 +231,7 @@ public class FDroid extends TabActivity implements OnItemClickListener,
@Override
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
triedEmptyUpdate = true;
switch (requestCode) {
case REQUEST_APPDETAILS:
break;
@ -260,10 +261,8 @@ public class FDroid extends TabActivity implements OnItemClickListener,
break;
case REQUEST_PREFS:
// The automatic update settings may have changed, so reschedule (or
// unschedule) the
// service accordingly. It's cheap, so no need to check if the
// particular setting has
// actually been changed.
// unschedule) the service accordingly. It's cheap, so no need to
// check if the particular setting has actually been changed.
UpdateService.schedule(getBaseContext());
break;