mirror of
https://github.com/fergalmoran/chrometophone.git
synced 2025-12-22 09:41:51 +00:00
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:
@@ -2,7 +2,7 @@
|
|||||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
package="com.google.android.apps.chrometophone"
|
package="com.google.android.apps.chrometophone"
|
||||||
android:installLocation="auto"
|
android:installLocation="auto"
|
||||||
android:versionCode="14"
|
android:versionCode="15"
|
||||||
android:versionName="2.3.2">
|
android:versionName="2.3.2">
|
||||||
<uses-sdk android:minSdkVersion="8" android:targetSdkVersion="10" />
|
<uses-sdk android:minSdkVersion="8" android:targetSdkVersion="10" />
|
||||||
|
|
||||||
|
|||||||
@@ -117,8 +117,8 @@ public class HistoryActivity extends Activity implements OnChildClickListener {
|
|||||||
@Override
|
@Override
|
||||||
protected void onActivityResult (int requestCode, int resultCode, Intent data) {
|
protected void onActivityResult (int requestCode, int resultCode, Intent data) {
|
||||||
if (requestCode == SETUP_ACTIVITY_REQUEST_CODE) {
|
if (requestCode == SETUP_ACTIVITY_REQUEST_CODE) {
|
||||||
SharedPreferences prefs = Prefs.get(this);
|
String gcmRegId = GCMRegistrar.getRegistrationId(this);
|
||||||
if (prefs.getString("deviceRegistrationID", null) == null) {
|
if (gcmRegId.equals("")) {
|
||||||
finish(); // user asked to exit
|
finish(); // user asked to exit
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user