Skip to content

feat(gif): show local packs as tiles that open in the picker - #863

Merged
LeanBitLab merged 1 commit into
mainfrom
feat/gif-pack-tiles
Nov 18, 2026
Merged

LeanBitLab merged 1 commit into
mainfrom
feat/gif-pack-tiles

Conversation

@LeanBitLab

Copy link
Copy Markdown
Owner

Shows the GIF plugin's local packs in the keyboard picker, like the plugin's own category view.

  • With a provider that reports CAP_PACKS, a kind (Stickers, Memes, ...) lists its pack tiles first (cover + "Name (count)"), then the items without a pack.
  • Tapping a tile opens the pack: a bar with a close button replaces the kind tabs. Closing restores the previous list and scroll position without reloading.
  • Searching leaves the pack and covers the whole kind. Recent is unchanged.
  • If listPacks fails or times out, items are shown flat as before. Providers without CAP_PACKS (GIPHY, KLIPY, older plugins) take the old path.
  • Uses the existing listPacks / getPack AIDL calls, no contract version change. Contract.kt gains a doc comment only (kept identical to the plugin copy).

Needs LeanBitLab/LeanType-Gif-Plugin#5 for packs to appear; works unchanged with older plugins.

Strings: gif_pack_close auto-translated (packaging-sense translations corrected by hand), gif_pack_label is a format-only string marked translatable="false".

Verified: ./gradlew :app:assembleStandardDebug, tested on device with the debug plugin (pack tiles, open/close, search, Memes/Recent tabs), logcat clean.

- With a provider that reports CAP_PACKS, a kind shows its pack tiles
  first, then the items without a pack. Tapping a tile opens the pack and
  a bar with a close button replaces the kind tabs.
- Closing restores the previous list and scroll position. Searching
  leaves the pack and covers the whole kind.
- If packs can't be listed, items are shown flat as before.
@LeanBitLab
LeanBitLab merged commit b2206eb into main Nov 18, 2026
1 check passed
@LeanBitLab
LeanBitLab deleted the feat/gif-pack-tiles branch November 18, 2026 12:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant