Register remote transitions on activity start

Was only registering once, but launcher can stop/start
its activity (eg when changing gesture modes), so we
need to try and re-register every time

Bug: 200213691
Test: atest CloseAppHomeButtonTest
      change gesture mode and observe functional animations
Change-Id: I29f1eb647c2168d753e37f57657906979c5518be
This commit is contained in:
Evan Rosky
2021-09-16 17:42:51 -07:00
parent 52715bed68
commit cab41ed670
5 changed files with 11 additions and 19 deletions
@@ -179,12 +179,6 @@ public class TouchInteractionService extends Service implements PluginListener<O
smartspaceTransitionController);
TouchInteractionService.this.initInputMonitor();
preloadOverview(true /* fromInit */);
mDeviceState.runOnUserUnlocked(() -> {
final BaseActivityInterface ai =
mOverviewComponentObserver.getActivityInterface();
if (ai == null) return;
ai.onOverviewServiceBound();
});
});
sIsInitialized = true;
}