Support resumes without overriding the back handler

Differential Revision: D6982515

fbshipit-source-id: 5483f6c677c6653e51f6311386f31f5be6ed0e00
This commit is contained in:
Andrew Chen (Eng) 2018-02-14 09:22:20 -08:00 committed by Facebook Github Bot
parent 828cd78866
commit c281f7a3ae
1 changed files with 10 additions and 0 deletions

View File

@ -545,6 +545,16 @@ public class ReactInstanceManager {
UiThreadUtil.assertOnUiThread();
mDefaultBackButtonImpl = defaultBackButtonImpl;
onHostResume(activity);
}
/**
* Use this method when the activity resumes.
*/
@ThreadConfined(UI)
public void onHostResume(Activity activity) {
UiThreadUtil.assertOnUiThread();
mCurrentActivity = activity;
if (mUseDeveloperSupport) {