From ccc28678d7d0365c594e2f5cde7ad81df6766892 Mon Sep 17 00:00:00 2001 From: Roman Tsisyk Date: Mon, 19 Sep 2022 09:29:55 +0300 Subject: [PATCH] [android] Install window insets handlers in onSafeCreate() This patch moves updateViewsInsets() from `onResume()` back to `onSafeCreate()`. The #3389 issue happened because of premature return from onSafeCreate() when app was lanunched with an intent: ``` boolean isConsumed = savedInstanceState == null && processIntent(getIntent()); boolean isFirstLaunch = Counters.isFirstLaunch(this); // If the map activity is launched by any incoming intent (deeplink, update maps event, etc) // or it's the first launch (onboarding) we haven't to try restoring the route, // showing the tips, etc. if (isConsumed || isFirstLaunch) return;