2525import android .content .pm .ResolveInfo ;
2626
2727import java .util .List ;
28+ import java .util .Random ;
2829
2930
3031public class ParsePushPluginReceiver extends ParsePushBroadcastReceiver
@@ -47,7 +48,7 @@ protected void onPushReceive(Context context, Intent intent) {
4748 // only create entry for notification tray if plugin/application is
4849 // not running in foreground.
4950 //
50- // So first we check if the user has set the configuration to have multiple
51+ // So first we check if the user has set the configuration to have multiple
5152 // notifications show in the tray (i.e. set <preference name="ParseMultiNotifications" value="true" />)
5253 ParsePushConfigReader config = new ParsePushConfigReader (context , null , new String [] {"ParseMultiNotifications" });
5354 String parseMulti = config .get ("ParseMultiNotifications" );
@@ -69,7 +70,7 @@ protected void onPushReceive(Context context, Intent intent) {
6970 //
7071 intent .addFlags (Intent .FLAG_INCLUDE_STOPPED_PACKAGES );
7172 setResultCode (Activity .RESULT_OK );
72- }
73+ }
7374 }
7475 }
7576
@@ -157,15 +158,15 @@ protected Notification getNotification(Context context, Intent intent){
157158 } catch (JSONException e ) {
158159 Log .e (LOGTAG , "JSONException while parsing Increment:" , e );
159160 }
160-
161+
161162 try {
162163 if (pnData .getInt ("badge" ) >= 0 ) {
163164 badgeCount = pnData .getInt ("badge" );
164165 }
165166 } catch (JSONException e ) {
166167 Log .e (LOGTAG , "JSONException while parsing badge:" , e );
167168 }
168-
169+
169170 setBadge (context , badgeCount );
170171 }
171172
@@ -284,7 +285,7 @@ public static String getLauncherClassName(Context context) {
284285 return className ;
285286 }
286287 }
287-
288+
288289 return null ;
289290 }
290291}
0 commit comments