v0.7.0: bubble for Android 0.7.0 — react to messages, reactions in other languages, and edits

Android, ported from the desktop's reactions.ts / edits.ts (same readings:
checked side by side on the same 32 cases):
- Long-press a message: the quick reaction row (yours lit, tap again to take
  it back), + for every emoji (EmojiPicker, the desktop's emoji list as
  res/raw/emoji_list.txt, minus any the font can't draw), and Copy text.
- Settings → Reactions → Quick reactions: pick a spot, then its emoji; Reset.
- Tapbacks in other languages fold like the desktop's; "Edited to “…”" edits
  its message, which says "Edited · time"; tap it for the earlier texts.
- Chat list and notifications preview an edit as "✏️ new text".
- push_sandbox.py has a Spanish tapback and an edit to try it on.

Desktop: version 0.7.0; gen-emoji also writes the Android list.
This commit is contained in:
2026-11-10 17:38:09 -08:00
parent fcabae81e5
commit 09a46aa35c
16 changed files with 2421 additions and 43 deletions
@@ -81,6 +81,27 @@ public final class SettingsActivity extends BaseActivity {
notify.setOnCheckedChangeListener((v, on) -> Config.prefs(c).edit().putBoolean("notifications", on).apply());
box.addView(notify);
section("Reactions");
String[] quick = Config.quickReactions(c);
row("Quick reactions", String.join(" ", quick), v -> {
// Pick a spot, then the emoji for it.
new AlertDialog.Builder(c).setTitle("Change which one?")
.setItems(quick, (d, i) -> EmojiPicker.show(c, "Instead of " + quick[i], e -> {
String[] next = quick.clone();
// Already in the row: the two swap places.
for (int j = 0; j < next.length; j++) if (Reactions.same(next[j], e)) next[j] = next[i];
next[i] = e;
Config.setQuickReactions(c, next);
changed();
}))
.setNeutralButton("Reset", (d, w) -> {
Config.setQuickReactions(c, Reactions.DEFAULT_QUICK);
changed();
})
.setNegativeButton("Cancel", null).show();
});
note("Long-press a message to react. Tap yours again to take it back.");
section("Icon");
boolean inv = Icons.isInverted(c);
row("Launcher icon", inv ? "Inverted (lighter)" : "Dark", v -> {