wiglenet / wigle-wifi-wardriving

Nethugging client for Android, from wigle.net
https://wigle.net
BSD 3-Clause "New" or "Revised" License
675 stars 206 forks source link

[ENH] Android 12 notification #579

Closed rksh closed 1 year ago

rksh commented 1 year ago

our notifications have been lacking for a while - in particular changes to notification code have resulted in trying to squeeze more single-line text into a smaller area on android 12+, and outdated text. This update:

  1. introduces a new notification design for android SDK 31+ with:
    • swappable large and small views with extra info
    • new, structured information for new cell, wifi, BT total and new-to-device (large and small views)
    • distance indicator (large and small views)
    • database total nets indictor (large view only)
  2. back-ports the "small" view for Android SDKs 26-30 obeying day/night theme, styling, and expansion to include action buttons.

One note: currently using "setColorized" with no stated color to force accent color for SDK31+ notifications; this looks great in testing, but may not behave well if users can employ very dark accent colors that make the black border/icon/text colors illegible. Documentation on how to get or use accent colors in notifications in recent android versions is nearly non-existent.

Current day/night redundant override of icons and border drawable enforce dark-on-light -requires further testing and community analysis.