From f01723faf48781a6b56e743e3b5d63fd301d8356 Mon Sep 17 00:00:00 2001 From: Motasem Aghbar Date: Tue, 3 Aug 2021 14:38:05 +0300 Subject: [PATCH] Add getters and setters to SplashScreen --- .../java/org/devio/rn/splashscreen/SplashScreen.java | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/android/src/main/java/org/devio/rn/splashscreen/SplashScreen.java b/android/src/main/java/org/devio/rn/splashscreen/SplashScreen.java index bfba2e4b..ed94b1e4 100644 --- a/android/src/main/java/org/devio/rn/splashscreen/SplashScreen.java +++ b/android/src/main/java/org/devio/rn/splashscreen/SplashScreen.java @@ -15,9 +15,16 @@ * Email:crazycodeboy@gmail.com */ public class SplashScreen { - private static Dialog mSplashDialog; - private static WeakReference mActivity; + protected static Dialog mSplashDialog; + protected static WeakReference mActivity; + public static Dialog getSplashDialog() { + return mSplashDialog; + } + + public static WeakReference getActivity() { + return mActivity; + } /** * 打开启动屏 */