Minor fixes

git-svn-id: https://forja.rediris.es/svn/cusl6-swadroid/trunk@140 5bc14d19-1e4b-4ba2-aa50-860af135f48c
This commit is contained in:
Juan Miguel Boyero Corral 2011-11-22 22:12:41 +00:00
parent cb86c4ca66
commit d3bcfc5789

View File

@ -130,7 +130,7 @@ public class SWADMain extends ExpandableListActivity {
/**
* Shows initial dialog after application upgrade.
*/
public void showInitialDialog() {
public void showUpgradeDialog() {
new AlertDialog.Builder(this)
.setTitle(R.string.initialDialogTitle)
.setMessage(R.string.upgradeMsg)
@ -300,7 +300,8 @@ public class SWADMain extends ExpandableListActivity {
SecureConnection.initSecureConnection();
//Check if this is the first run after an install or upgrade
//If this is the first run, show initial dialog
//If this is the first run, show configuration dialog
//If this is an upgrade, show upgrade dialog
lastVersion = prefs.getLastVersion();
currentVersion = getPackageManager().getPackageInfo(getPackageName(), 0).versionCode;
if(lastVersion == 0) {
@ -309,7 +310,7 @@ public class SWADMain extends ExpandableListActivity {
} else if(currentVersion > lastVersion) {
dbHelper.emptyTable(Global.DB_TABLE_NOTIFICATIONS);
prefs.setLastVersion(currentVersion);
showInitialDialog();
showUpgradeDialog();
}
} catch (Exception ex) {
Log.e(ex.getClass().getSimpleName(), ex.getMessage());