ankidroid/Anki-Android

FLAG_FULLSCREEN deprecation in API 30

已关闭

#9,332 创建于 2021年7月29日

 (13 条评论) (0 个反应) (1 位负责人)Kotlin (2,789 个派生)batch import
DeprecationHelp WantedKeep OpenResearch

仓库指标

星标
 (11,132 个星标)
PR 合并指标
 (平均合并 9天 12小时) (30 天内合并 93 个 PR)

描述

[!IMPORTANT] This issue is to be included in a research study, and should not be worked on

  • FLAG_FULLSCREEN
    • Use WindowInsetsController.hide(int) with WindowInsets.Type.statusBars() instead.
    • Only the usage in AnkiActivity needs to be fixed. The usage in Reviewer.kt doesn't need to be fixed because the screen is deprecated

The deprecations below don't need to be fixed because the screen that uses it is deprecated and will be eventually removed.

  • View.setOnSystemUiVisibilityChangeListener
    • Use WindowInsets.isVisible(int) to find out about system bar visibilities by setting a View.OnApplyWindowInsetsListener on this view
  • View.getSystemUiVisibility()
    • SystemUiVisibility flags are deprecated. Use WindowInsetsController instead.

贡献者指南