@@ -145,38 +145,35 @@ function attachActivityLifecycleListeners(reactContext: ReactContext) {
145145 Application . android . on (
146146 AndroidApplication . activityResultEvent ,
147147 ( args : AndroidActivityResultEventData ) => {
148- if ( args . activity . getIntent ( ) . getData ( ) ) {
149- reactContext . onActivityResult (
150- args . activity ,
151- args . requestCode ,
152- args . resultCode ,
153- args . activity . getIntent ( )
154- ) ;
155- return ;
156- }
157- const callback = ( _args : Partial < AndroidActivityNewIntentEventData > ) => {
158- reactContext . onActivityResult (
159- args . activity ,
160- args . requestCode ,
161- _args . intent . getData ( ) ? - 1 : args . resultCode ,
162- _args . intent
163- ) ;
164- Application . android . off (
165- AndroidApplication . activityNewIntentEvent ,
166- callback
167- ) ;
168- } ;
169- Application . android . on (
170- AndroidApplication . activityNewIntentEvent ,
171- callback
148+ reactContext . onActivityResult (
149+ args . activity ,
150+ args . requestCode ,
151+ args . resultCode ,
152+ args . intent
172153 ) ;
173- setTimeout ( ( ) => {
174- Application . android . off (
175- AndroidApplication . activityNewIntentEvent ,
176- callback
177- ) ;
178- callback ( { intent : args . activity . getIntent ( ) } ) ;
179- } , 1000 ) ;
154+ // const callback = (_args: Partial<AndroidActivityNewIntentEventData>) => {
155+ // reactContext.onActivityResult(
156+ // args.activity,
157+ // args.requestCode,
158+ // args.resultCode,
159+ // _args.intent
160+ // );
161+ // Application.android.off(
162+ // AndroidApplication.activityNewIntentEvent,
163+ // callback
164+ // );
165+ // };
166+ // Application.android.on(
167+ // AndroidApplication.activityNewIntentEvent,
168+ // callback
169+ // );
170+ // setTimeout(() => {
171+ // Application.android.off(
172+ // AndroidApplication.activityNewIntentEvent,
173+ // callback
174+ // );
175+ // callback({ intent: args.activity.getIntent() });
176+ // }, 1000);
180177 }
181178 ) ;
182179}
0 commit comments