Skip to content

Commit

Permalink
Move UISurfaceTextureRenderer.setRenderActive calls to pause/resume (#…
Browse files Browse the repository at this point in the history
…2884)

LGTM
  • Loading branch information
MortimerGoro committed Feb 27, 2020
1 parent c64365e commit 9af8ca9
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -391,7 +391,6 @@ protected void onStart() {
SettingsStore.getInstance(getBaseContext()).setPid(Process.myPid());
super.onStart();
TelemetryWrapper.start();
UISurfaceTextureRenderer.setRenderActive(true);
mLifeCycle.setCurrentState(Lifecycle.State.STARTED);
}

Expand All @@ -402,7 +401,6 @@ protected void onStop() {

TelemetryWrapper.stop();
GleanMetricsService.sessionStop();
UISurfaceTextureRenderer.setRenderActive(false);
}

@Override
Expand All @@ -427,10 +425,12 @@ protected void onPause() {
}
mWidgetContainer.getViewTreeObserver().removeOnGlobalFocusChangeListener(globalFocusListener);
super.onPause();
UISurfaceTextureRenderer.setRenderActive(false);
}

@Override
protected void onResume() {
UISurfaceTextureRenderer.setRenderActive(true);
MotionEventGenerator.clearDevices();
mWidgetContainer.getViewTreeObserver().addOnGlobalFocusChangeListener(globalFocusListener);
if (mOffscreenDisplay != null) {
Expand Down

0 comments on commit 9af8ca9

Please sign in to comment.