Commit c3f66967 by Sebastián Katzer

Declare methods are protected instead of public

parent adbdaf0f
...@@ -214,7 +214,7 @@ public class LocalNotification extends CordovaPlugin { ...@@ -214,7 +214,7 @@ public class LocalNotification extends CordovaPlugin {
/** /**
* Set the application context if not already set. * Set the application context if not already set.
*/ */
public static void setContext (Context context) { protected static void setContext (Context context) {
if (LocalNotification.context == null) { if (LocalNotification.context == null) {
LocalNotification.context = context; LocalNotification.context = context;
} }
...@@ -223,21 +223,21 @@ public class LocalNotification extends CordovaPlugin { ...@@ -223,21 +223,21 @@ public class LocalNotification extends CordovaPlugin {
/** /**
* The Local storage for the application. * The Local storage for the application.
*/ */
public static SharedPreferences getSharedPreferences () { protected static SharedPreferences getSharedPreferences () {
return context.getSharedPreferences(PLUGIN_NAME, Context.MODE_PRIVATE); return context.getSharedPreferences(PLUGIN_NAME, Context.MODE_PRIVATE);
} }
/** /**
* The alarm manager for the application. * The alarm manager for the application.
*/ */
private static AlarmManager getAlarmManager () { protected static AlarmManager getAlarmManager () {
return (AlarmManager) context.getSystemService(Context.ALARM_SERVICE); return (AlarmManager) context.getSystemService(Context.ALARM_SERVICE);
} }
/** /**
* The notification manager for the application. * The notification manager for the application.
*/ */
private static NotificationManager getNotificationManager () { protected static NotificationManager getNotificationManager () {
return (NotificationManager) context.getSystemService(Context.NOTIFICATION_SERVICE); return (NotificationManager) context.getSystemService(Context.NOTIFICATION_SERVICE);
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment