Commit f4703ba1 authored by Bob Easterday's avatar Bob Easterday
Browse files

Grab app icon without assuming package name

parent f854ec29
Loading
Loading
Loading
Loading
+1 −2
Changes for src/android/com/google/android/gcm/GCMIntentService.java: 1 added line, 2 removed lines.
Original line number Diff line number Diff line
@@ -6,7 +6,6 @@ import java.util.List;
import com.plugin.GCM.PushHandlerActivity;
import com.google.android.gcm.*;

import org.apache.cordova.example.R;
import org.json.JSONException;
import org.json.JSONObject;

@@ -128,7 +127,7 @@ public class GCMIntentService extends GCMBaseIntentService {
		PendingIntent contentIntent = PendingIntent.getActivity(this, 0, notificationIntent, 0);		

		NotificationCompat.Builder mBuilder = new NotificationCompat.Builder(context)
		.setSmallIcon(R.drawable.icon)
		.setSmallIcon(context.getApplicationInfo().icon)
		.setWhen(System.currentTimeMillis())
		.setContentTitle(appName)
		.setTicker(appName)