[Android] If you click the switch between apps button on the device and click the app screen again, fade out to the left

Asked 2 weeks ago, Updated 2 weeks ago, 2 views

When you click the switch between apps button and click the app screen again, fade out to the left Only that app will occur.

Please refer to the YouTube video and debugging log below and share the solution to what the root cause is.

https://www.youtube.com/watch?v=VWM0dGClZLE (Watching at 0.5x speed is recommended)

Thank you.

When you press the switch between apps button,

I/SurfaceControl: release : mNativeObject = -5476376626827270784 - Surface(name=Surface(name=1d5ecfd InputMethod)/@0x4d782c0 - animation-leash)/@0xf261519 / android.view.-$$Lambda$Rl1VZmNJ0VZDLK0BAbaVGis0rrA.accept:2 android.view.InsetsSourceControl.release:170 android.view.InsetsSourceConsumer.setControl:202 android.view.ImeInsetsSourceConsumer.setControl:154 
I/SurfaceControl: nativeRelease nativeObject s[-5476376626827270784]
    nativeRelease nativeObject e[-5476376626827270784]
I/SurfaceControl: release : mNativeObject = -5476376626827251248 - Surface(name=Surface(name=c869151 NavigationBar0)/@0x45ea95b - animation-leash)/@0x46fe778 / android.view.-$$Lambda$Rl1VZmNJ0VZDLK0BAbaVGis0rrA.accept:2 android.view.InsetsSourceControl.release:170 android.view.InsetsSourceConsumer.setControl:202 android.view.InsetsController.onControlsChanged:833 
I/SurfaceControl: nativeRelease nativeObject s[-5476376626827251248]
I/SurfaceControl: nativeRelease nativeObject e[-5476376626827251248]
I/SurfaceControl: release : mNativeObject = -5476376626827273776 - Surface(name=Surface(name=7371b57 StatusBar)/@0x3a1a50c - animation-leash)/@0xafc4e51 / android.view.-$$Lambda$Rl1VZmNJ0VZDLK0BAbaVGis0rrA.accept:2 android.view.InsetsSourceControl.release:170 android.view.InsetsSourceConsumer.setControl:202 android.view.InsetsController.onControlsChanged:833 
    nativeRelease nativeObject s[-5476376626827273776]
    nativeRelease nativeObject e[-5476376626827273776]
I/[email protected][LoginActivity]: MSG_WINDOW_FOCUS_CHANGED 0 1
D/InputTransport: Input channel destroyed: 'ClientS', fd=94
I/SurfaceControl: release : mNativeObject = -5476376626827264096 - Surface(name=Surface(name=1d5ecfd InputMethod)/@0x4d782c0 - animation-leash)/@0xc0d053 / android.view.-$$Lambda$Rl1VZmNJ0VZDLK0BAbaVGis0rrA.accept:2 android.view.InsetsSourceControl.release:170 android.view.InsetsSourceConsumer.setControl:202 android.view.ImeInsetsSourceConsumer.setControl:154 
I/SurfaceControl: nativeRelease nativeObject s[-5476376626827264096]
    nativeRelease nativeObject e[-5476376626827264096]
I/SurfaceControl: release : mNativeObject = -5476376626827261632 - Surface(name=null)/@0xe3be1a3 / android.view.SurfaceControl.assignNativeObject:567 android.view.SurfaceControl.readFromParcel:1115 android.view.IWindowSession$Stub$Proxy.relayout:1777 android.view.ViewRootImpl.relayoutWindow:8953 
I/SurfaceControl: nativeRelease nativeObject s[-5476376626827261632]
    nativeRelease nativeObject e[-5476376626827261632]
I/SurfaceControl: assignNativeObject: nativeObject = 0 Surface(name=null)/@0xe3be1a3 / android.view.SurfaceControl.readFromParcel:1115 android.view.IWindowSession$Stub$Proxy.relayout:1777 android.view.ViewRootImpl.relayoutWindow:8953 android.view.ViewRootImpl.performTraversals:3312 android.view.ViewRootImpl.doTraversal:2575 android.view.ViewRootImpl$TraversalRunnable.run:9916 android.view.Choreographer$CallbackRecord.run:1010 android.view.Choreographer.doCallbacks:809 android.view.Choreographer.doFrame:744 android.view.Choreographer$FrameDisplayEventReceiver.run:995 
I/SurfaceControl: assignNativeObject: nativeObject = 0 Surface(name=null)/@0x544151a / android.view.SurfaceControl.readFromParcel:1115 android.view.IWindowSession$Stub$Proxy.relayout:1787 android.view.ViewRootImpl.relayoutWindow:8953 android.view.ViewRootImpl.performTraversals:3312 android.view.ViewRootImpl.doTraversal:2575 android.view.ViewRootImpl$TraversalRunnable.run:9916 android.view.Choreographer$CallbackRecord.run:1010 android.view.Choreographer.doCallbacks:809 android.view.Choreographer.doFrame:744 android.view.Choreographer$FrameDisplayEventReceiver.run:995 
I/[email protected][LoginActivity]: Relayout returned: old=(0,0,1080,2400) new=(0,0,1080,2400) req=(1080,2400)8 dur=20 res=0x5 s={false 0} ch=true fn=2
I/[email protected][LoginActivity]: stopped(true) old=false

When you press the app screen again,

I/SurfaceControl: assignNativeObject: nativeObject = 0 Surface(name=null)/@0xe3be1a3 / android.view.SurfaceControl.readFromParcel:1115 android.view.IWindowSession$Stub$Proxy.relayout:1777 android.view.ViewRootImpl.relayoutWindow:8953 android.view.ViewRootImpl.performTraversals:3312 android.view.ViewRootImpl.doTraversal:2575 android.view.ViewRootImpl$TraversalRunnable.run:9916 android.view.Choreographer$CallbackRecord.run:1010 android.view.Choreographer.doCallbacks:809 android.view.Choreographer.doFrame:744 android.view.Choreographer$FrameDisplayEventReceiver.run:995 
I/SurfaceControl: assignNativeObject: nativeObject = 0 Surface(name=null)/@0x544151a / android.view.SurfaceControl.readFromParcel:1115 android.view.IWindowSession$Stub$Proxy.relayout:1787 android.view.ViewRootImpl.relayoutWindow:8953 android.view.ViewRootImpl.performTraversals:3312 android.view.ViewRootImpl.doTraversal:2575 android.view.ViewRootImpl$TraversalRunnable.run:9916 android.view.Choreographer$CallbackRecord.run:1010 android.view.Choreographer.doCallbacks:809 android.view.Choreographer.doFrame:744 android.view.Choreographer$FrameDisplayEventReceiver.run:995 
I/[email protected][LoginActivity]: Relayout returned: old=(0,0,1080,2400) new=(0,0,1080,2400) req=(1080,2400)4 dur=18 res=0x1 s={false 0} ch=false fn=-1
I/[email protected][LoginActivity]: stopped(false) old=true
I/[email protected][LoginActivity]: stopped(false) old=false
I/SurfaceControl: assignNativeObject: nativeObject = 0 Surface(name=null)/@0x544151a / android.view.SurfaceControl.readFromParcel:1115 android.view.IWindowSession$Stub$Proxy.relayout:1787 android.view.ViewRootImpl.relayoutWindow:8953 android.view.ViewRootImpl.performTraversals:3312 android.view.ViewRootImpl.doTraversal:2575 android.view.ViewRootImpl$TraversalRunnable.run:9916 android.view.Choreographer$CallbackRecord.run:1010 android.view.Choreographer.doCallbacks:809 android.view.Choreographer.doFrame:744 android.view.Choreographer$FrameDisplayEventReceiver.run:995 
I/[email protected][LoginActivity]: Relayout returned: old=(0,0,1080,2400) new=(0,0,1080,2400) req=(1080,2400)0 dur=12 res=0x7 s={true -5476376622532692160} ch=true fn=-1
I/[email protected][LoginActivity]: MSG_WINDOW_FOCUS_CHANGED 1 1
D/InputMethodManager: prepareNavigationBarInfo() [email protected][LoginActivity]
D/InputMethodManager: getNavigationBarColor() -855310
D/InputMethodManager: prepareNavigationBarInfo() [email protected][LoginActivity]
D/InputMethodManager: getNavigationBarColor() -855310
V/InputMethodManager: Starting input: tba=ideaplace.app.ideapl ic=null mNaviBarColor -855310 mIsGetNaviBarColorSuccess true , NavVisible : true , NavTrans : false
D/InputMethodManager: startInputInner - Id : 0
I/InputMethodManager: startInputInner - mService.startInputOrWindowGainedFocus
D/InputTransport: Input channel constructed: 'ClientS', fd=94
D/SurfaceControl: hide : mNativeObject = -5476376626827252304 - sc.mNativeObject = -5476376626827251600 - Surface(name=Surface(name=1d5ecfd InputMethod)/@0x4d782c0 - animation-leash)/@0x8314816
    nativeSetFlags Done : Surface(name=Surface(name=1d5ecfd InputMethod)/@0x4d782c0 - animation-leash)/@0x8314816
I/SurfaceControl: release : mNativeObject = -5476376626827255648 - Surface(name=Surface(name=c869151 NavigationBar0)/@0x45ea95b - animation-leash)/@0x7f69597 / android.view.-$$Lambda$Rl1VZmNJ0VZDLK0BAbaVGis0rrA.accept:2 android.view.InsetsSourceControl.release:170 android.view.InsetsSourceConsumer.setControl:202 android.view.InsetsController.onControlsChanged:833 
I/SurfaceControl: nativeRelease nativeObject s[-5476376626827255648]
    nativeRelease nativeObject e[-5476376626827255648]
I/SurfaceControl: release : mNativeObject = -5476376626827683856 - Surface(name=Surface(name=7371b57 StatusBar)/@0x3a1a50c - animation-leash)/@0xf5be384 / android.view.-$$Lambda$Rl1VZmNJ0VZDLK0BAbaVGis0rrA.accept:2 android.view.InsetsSourceControl.release:170 android.view.InsetsSourceConsumer.setControl:202 android.view.InsetsController.onControlsChanged:833 
    nativeRelease nativeObject s[-5476376626827683856]
    nativeRelease nativeObject e[-5476376626827683856]

android

2022-09-20 16:01

1 Answers

I removed the windowIsTranslucent property in the styles.xml file The problem has disappeared. I don't know exactly, but I think it's a SurfaceView issue.


2022-09-20 16:01

If you have any answers or tips


© 2022 pinfo. All rights reserved.