mirror of
https://github.com/status-im/react-native-dialogs.git
synced 2026-08-31 11:11:08 +00:00
Allow using Activity instead of FragmentActivity
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
package com.aakashns.reactnativedialogs.modules;
|
||||
|
||||
import android.app.Activity;
|
||||
import android.content.DialogInterface;
|
||||
import android.support.v4.app.FragmentActivity;
|
||||
import android.view.View;
|
||||
|
||||
import com.afollestad.materialdialogs.DialogAction;
|
||||
@@ -23,13 +23,13 @@ public class DialogAndroid extends ReactContextBaseJavaModule {
|
||||
return "DialogAndroid";
|
||||
}
|
||||
|
||||
FragmentActivity mActivity;
|
||||
Activity mActivity;
|
||||
|
||||
public DialogAndroid(
|
||||
ReactApplicationContext reactContext,
|
||||
FragmentActivity fragmentActivity) {
|
||||
Activity activity) {
|
||||
super(reactContext);
|
||||
mActivity = fragmentActivity;
|
||||
mActivity = activity;
|
||||
}
|
||||
|
||||
/* Apply the options to the provided builder */
|
||||
|
||||
Reference in New Issue
Block a user