mirror of
https://github.com/logseq/logseq.git
synced 2026-05-23 20:24:15 +00:00
Revert "fix(android): finish activity at native root back"
This reverts commit 3a21c8bc7f.
This commit is contained in:
@@ -229,17 +229,15 @@ public class MainActivity extends BridgeActivity {
|
||||
WebView webView = getBridge().getWebView();
|
||||
if (webView != null) {
|
||||
NavigationRenderState nativePopState = navigationCoordinator.prepareNativePop();
|
||||
if (nativePopState == null) {
|
||||
finish();
|
||||
return;
|
||||
if (nativePopState != null) {
|
||||
Log.d(
|
||||
"NavStack",
|
||||
NAV_STACK_DEBUG_PREFIX + " activity.nativeBack consumed=native-stack-pop target="
|
||||
+ nativePopState.getPath()
|
||||
+ " paths=" + nativePopState.getPaths()
|
||||
);
|
||||
ComposeHost.applyNavigation(nativePopState);
|
||||
}
|
||||
Log.d(
|
||||
"NavStack",
|
||||
NAV_STACK_DEBUG_PREFIX + " activity.nativeBack consumed=native-stack-pop target="
|
||||
+ nativePopState.getPath()
|
||||
+ " paths=" + nativePopState.getPaths()
|
||||
);
|
||||
ComposeHost.applyNavigation(nativePopState);
|
||||
// Send "native back" into JS. JS will call your UILocal/route-change,
|
||||
// which flows into ComposeHost.applyNavigation(...) and animates.
|
||||
sendJsBack(webView);
|
||||
|
||||
Reference in New Issue
Block a user