File tree Expand file tree Collapse file tree 3 files changed +13
-1
lines changed
android/src/main/java/com/netease/im Expand file tree Collapse file tree 3 files changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -88,7 +88,7 @@ public static class Link {
8888 public static class Location {
8989 public final static String LATITUDE = "latitude" ;
9090 public final static String LONGITUDE = "longitude" ;
91- public final static String ADDRESS = "address " ;
91+ public final static String ADDRESS = "title " ;
9292 }
9393
9494 public static class MediaFile {
Original file line number Diff line number Diff line change @@ -1945,11 +1945,20 @@ public void onNewIntent(Intent intent) {
19451945
19461946 }
19471947
1948+ public static String status = "" ;
1949+
19481950 @ Override
19491951 public void onHostResume () {
19501952 if (reactContext .getCurrentActivity () != null )
19511953 LogUtil .w (TAG , reactContext .getCurrentActivity ().getClass ().getPackage ().getName ());
19521954 LogUtil .w (TAG , "onHostResume" );
1955+
1956+ if (!TextUtils .isEmpty (status )) {
1957+ WritableMap r = Arguments .createMap ();
1958+ r .putString ("status" , status );
1959+ ReactCache .emit (ReactCache .observeOnKick , r );
1960+ status = "" ;
1961+ }
19531962 }
19541963
19551964 @ Override
Original file line number Diff line number Diff line change 44
55import com .facebook .react .bridge .Arguments ;
66import com .facebook .react .bridge .WritableMap ;
7+ import com .netease .im .RNNeteaseImModule ;
78import com .netease .im .ReactCache ;
89import com .netease .im .uikit .cache .SimpleCallback ;
910import com .netease .im .uikit .cache .TeamDataCache ;
@@ -279,6 +280,7 @@ public void onEvent(LoginSyncStatus loginSyncStatus) {
279280
280281 @ Override
281282 public void onEvent (StatusCode code ) {
283+ RNNeteaseImModule .status = "" ;
282284 if (code != PWD_ERROR && code .wontAutoLogin ()) {
283285 WritableMap r = Arguments .createMap ();
284286 String status = "" ;
@@ -293,6 +295,7 @@ public void onEvent(StatusCode code) {
293295 status = "2" ;
294296 break ;
295297 }
298+ RNNeteaseImModule .status = status ;
296299 r .putString ("status" , status );
297300 ReactCache .emit (ReactCache .observeOnKick , r );
298301 }
You can’t perform that action at this time.
0 commit comments