Skip to content

Commit 5b3448b

Browse files
committed
Version change
1 parent 22839b7 commit 5b3448b

File tree

6 files changed

+7
-5
lines changed

6 files changed

+7
-5
lines changed

AndroidManifest.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
33
package="nl.techinc.notify"
44

5-
android:versionCode="9"
6-
android:versionName="2.3" >
5+
android:versionCode="10"
6+
android:versionName="2.4" >
77

88
<permission android:name="nl.techinc.notify.permission.C2D_MESSAGE" android:protectionLevel="signature" />
99

bin/AndroidManifest.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
33
package="nl.techinc.notify"
44

5-
android:versionCode="9"
6-
android:versionName="2.3" >
5+
android:versionCode="10"
6+
android:versionName="2.4" >
77

88
<permission android:name="nl.techinc.notify.permission.C2D_MESSAGE" android:protectionLevel="signature" />
99

Binary file not shown.
Binary file not shown.
Binary file not shown.

src/nl/techinc/notify/GCMIntentService.java

+3-1
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ private void register(final Context context, final String url, final int delayMi
118118
intent.setAction(ACTION_REGISTER);
119119
intent.putExtra("enabled", true);
120120
context.sendBroadcast(intent);
121+
GCMRegistrar.setRegisteredOnServer(context, true);
121122
}
122123
catch(IOException e)
123124
{
@@ -128,6 +129,7 @@ private void register(final Context context, final String url, final int delayMi
128129
intent.setAction(ACTION_REGISTER);
129130
intent.putExtra("enabled", false);
130131
context.sendBroadcast(intent);
132+
GCMRegistrar.setRegisteredOnServer(context, false);
131133
}
132134
Runnable runnable = new Runnable()
133135
{
@@ -167,7 +169,7 @@ private void unregister(final Context context, final String url, final int delay
167169
connect.connect();
168170
int response = httpConnection.getResponseCode();
169171
if(!(response == 200))
170-
throw new IOException("Response: "+Integer.toString(response));
172+
throw new IOException("Response: "+Integer.toString(response));
171173
}
172174
catch(IOException e)
173175
{

0 commit comments

Comments
 (0)