Kin69 / EasyNotes

EasyNotes: Jetpack Compose MVVM for seamless note-taking. Effortless creation, editing, and organization.
GNU General Public License v3.0
333 stars 26 forks source link

Fix issue 23: Focus detection for EditScreen added #27

Closed wadeack closed 3 months ago

wadeack commented 3 months ago

Instead of WindowInsets.ime the onFocusChanged function could be used. This way:

  1. TextFormattingToolbar is only visible when Description is being focused on (previously while editing a note Name the TextFormattingToolbar was active)
  2. TextFormattingToolbar is now visible when keyboard is detached on older Android version.

What is not fixed: On older Android version Description area is not resized when InFocus, so the TextFormattingToolbar is not visible. AFAIU, this is handled by WindowInsets.IME which is available starting from Android 11.