Browse Source

Declare static fields as protected instead of public

Sebastián Katzer 12 năm trước cách đây
mục cha
commit
663037ad39
1 tập tin đã thay đổi với 3 bổ sung3 xóa
  1. 3 3
      src/android/LocalNotification.java

+ 3 - 3
src/android/LocalNotification.java

@@ -48,10 +48,10 @@ import android.content.SharedPreferences.Editor;
  */
 public class LocalNotification extends CordovaPlugin {
 
-    public final static String PLUGIN_NAME = "LocalNotification";
+    protected final static String PLUGIN_NAME = "LocalNotification";
 
-    public static CordovaWebView webView   = null;
-    public static Context context          = null;
+    protected static CordovaWebView webView   = null;
+    protected static Context context          = null;
 
     @Override
     public void initialize (CordovaInterface cordova, CordovaWebView webView) {