Status Update
Comments
ko...@google.com <ko...@google.com>
ko...@google.com <ko...@google.com> #2
Hi samsadch,
In the AndroidX PDF library, the search view is animated using the
Without this, the callback might be consumed at an upper level, preventing it from being received by the PdfViewerFragment's container.
ma...@gtempaccount.com <ma...@gtempaccount.com> #3
Actually the search view is coming but the issue is that it is showing below the Keyboard
ma...@gtempaccount.com <ma...@gtempaccount.com> #4
Still there
ko...@google.com <ko...@google.com> #5
Hey Samsad,
It seems your concern is that the search view remains behind the keyboard when it's open, instead of being positioned below it.
As mentioned in my earlier comment
For reference, you can see the search view translation logic
To resolve this, please ensure that the view hierarchy containing the PdfViewerFragment allows insets to propagate down the view hierarchy.
Description
Devices/Android versions reproduced on: Android 12L "Automotive with Play Store ARM 64 v8a System image"
Steps to reproduce:
1. Have a CarAppService with the following intent-filter:
<intent-filter>
<action android:name="androidx.car.app.CarAppService" />
<category android:name="androidx.car.app.category.NAVIGATION" />
<category android:name="androidx.car.app.category.FEATURE_CLUSTER"/>
</intent-filter>
2. In the CarAppService have the following onCreateSession:
override fun onCreateSession(sessionInfo: SessionInfo): Session {
logger.information(TAG, "Creating session $sessionInfo")
return if (sessionInfo.displayType == SessionInfo.DISPLAY_TYPE_CLUSTER) {
logger.information(TAG, "Cluster Display")
CarDisplayInfo.isClusterDisplayOn = true
CarSessionClusterDisplay(logger)
} else {
logger.information(TAG, "Main Display")
CarSession(logger)
}
}
3. Start up the Automotive emulator with the app and note that the cluster display doesn't switch away from Google Maps (and the "Cluster Display" log line is not produced)
4. Start up a navigation in the trip, and the cluster display will be started up and the log line will be produced
Reproducing this exact same steps with the same app in Android Auto v11.2 will boot up the cluster display as expected