Skip to content
This repository has been archived by the owner on Sep 4, 2020. It is now read-only.

Commit

Permalink
👕 Issue #1702: The logging tag can be at most 23 characters, was 40 (…
Browse files Browse the repository at this point in the history
…PushPlugin_BackgroundActionButtonHandler)
  • Loading branch information
macdonst committed May 3, 2017
1 parent dd70712 commit 2045873
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/android/com/adobe/phonegap/push/PushPlugin.java
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

public class PushPlugin extends CordovaPlugin implements PushConstants {

public static final String LOG_TAG = "PushPlugin";
public static final String LOG_TAG = "Push_Plugin";

private static CallbackContext pushContext;
private static CordovaWebView gWebView;
Expand Down Expand Up @@ -288,7 +288,7 @@ public static int getApplicationIconBadgeNumber(Context context){
SharedPreferences settings = context.getSharedPreferences(BADGE, Context.MODE_PRIVATE);
return settings.getInt(BADGE, 0);
}

/*
* Sets badge count on application icon and in SharedPreferences
*/
Expand All @@ -298,7 +298,7 @@ public static void setApplicationIconBadgeNumber(Context context, int badgeCount
}else{
ShortcutBadger.removeCount(context);
}

SharedPreferences.Editor editor = context.getSharedPreferences(BADGE, Context.MODE_PRIVATE).edit();
editor.putInt(BADGE, Math.max(badgeCount, 0));
editor.apply();
Expand Down

0 comments on commit 2045873

Please sign in to comment.