Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit f01723f

Browse files
committedAug 3, 2021
Add getters and setters to SplashScreen
1 parent d4e860d commit f01723f

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed
 

‎android/src/main/java/org/devio/rn/splashscreen/SplashScreen.java

+9-2
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,16 @@
1515
* Email:crazycodeboy@gmail.com
1616
*/
1717
public class SplashScreen {
18-
private static Dialog mSplashDialog;
19-
private static WeakReference<Activity> mActivity;
18+
protected static Dialog mSplashDialog;
19+
protected static WeakReference<Activity> mActivity;
2020

21+
public static Dialog getSplashDialog() {
22+
return mSplashDialog;
23+
}
24+
25+
public static WeakReference<Activity> getActivity() {
26+
return mActivity;
27+
}
2128
/**
2229
* 打开启动屏
2330
*/

0 commit comments

Comments
 (0)
Please sign in to comment.