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

Commit

Permalink
🔨 Issue #1949: make function name more explicit
Browse files Browse the repository at this point in the history
  • Loading branch information
macdonst committed Oct 18, 2017
1 parent d8e70e3 commit 798a5a0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/android/com/adobe/phonegap/push/PushPlugin.java
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ private void createChannel(JSONObject channel) throws JSONException {
}

@TargetApi(26)
private void notificationChannelExists(JSONObject options) {
private void createDefaultNotificationChannelIfNeeded(JSONObject options) {
// only call on Android O and above
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
final NotificationManager notificationManager = (NotificationManager) cordova.getActivity()
Expand Down Expand Up @@ -164,7 +164,7 @@ public void run() {
jo = data.getJSONObject(0).getJSONObject(ANDROID);

// If no NotificationChannels exist create the default one
notificationChannelExists(jo);
createDefaultNotificationChannelIfNeeded(jo);

Log.v(LOG_TAG, "execute: jo=" + jo.toString());

Expand Down

0 comments on commit 798a5a0

Please sign in to comment.