Minor fixes
git-svn-id: https://forja.rediris.es/svn/cusl6-swadroid/trunk@140 5bc14d19-1e4b-4ba2-aa50-860af135f48c
This commit is contained in:
parent
cb86c4ca66
commit
d3bcfc5789
|
@ -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());
|
||||
|
|
Loading…
Reference in New Issue
Block a user