如何解决Android - 在深层链接上看到的 windowBackground
我已经使用样式为我的启动器设置了窗口背景:
<style name="Theme.Launcher" parent="Base.Theme" >
<item name="android:windowBackground">@drawable/my_launch_screen</item>
</style>
并使用我的 AndroidMainfest 中的样式
<application
android:name=".MyApplication"
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:theme="@style/Theme.MainTheme"
android:usesCleartextTraffic="true">
<activity
android:name=".ui.launcher.LauncherActivity"
android:screenorientation="portrait"
android:theme="@style/Theme.Launcher">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name=".ui.main.MainActivity"
android:launchMode="singleTask"
android:screenorientation="portrait"
android:windowSoftInputMode="adjustPan" />
</application>
当我以这种方式从我的应用程序使用深层链接时,我的问题发生了:
findNavController().createDeepLink()
.setGraph(ServeGraph)
.setDestination(R.id.navigation_date)
.createPendingIntent()
.send()
此问题仅出现在少数设备上,当我使用深层链接时,我看到启动器窗口背景 1 秒钟并且无法摆脱它
有什么想法吗?
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。