Fixed bug where back button was quitting the app because the preferences location changed; bumped version to 2.3.2/15

This commit is contained in:
felipeal
2012-12-19 18:10:45 +00:00
parent c30a513570
commit 1477f1bcdd
2 changed files with 3 additions and 3 deletions

View File

@@ -2,7 +2,7 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.google.android.apps.chrometophone"
android:installLocation="auto"
android:versionCode="14"
android:versionCode="15"
android:versionName="2.3.2">
<uses-sdk android:minSdkVersion="8" android:targetSdkVersion="10" />

View File

@@ -117,8 +117,8 @@ public class HistoryActivity extends Activity implements OnChildClickListener {
@Override
protected void onActivityResult (int requestCode, int resultCode, Intent data) {
if (requestCode == SETUP_ACTIVITY_REQUEST_CODE) {
SharedPreferences prefs = Prefs.get(this);
if (prefs.getString("deviceRegistrationID", null) == null) {
String gcmRegId = GCMRegistrar.getRegistrationId(this);
if (gcmRegId.equals("")) {
finish(); // user asked to exit
}
}