Xiaowen Lei 10ef287c2f Move setIsDreaming(..); to be right after plugin.getView(parent);.
This is necessary because registerDataProvider(plugin) could already be
logging events. The logged surface is 2 (Keyguard) without the
`setIsDreaming(true)`.

Bug: 227613246
Bug: 231251252
Test: on device via `adb logcat | grep SMARTSPACE_CARD_RECEIVED`
Change-Id: Id792bde00b66fd51b6a8606f7f6480718f64a22a
2022-06-23 05:41:06 +00:00
…
…
…
…
…
…
…
…
…
…
…
…
…
Description
No description provided
21 GiB
Languages
Java 73.7%
Kotlin 14%
PowerBuilder 5.8%
C++ 5.2%
AIDL 1%