Commit Graph
20 Commits
Author SHA1 Message Date
Ken Sedgwick 877a30d2f6 Enable file_key_storage on Android 2024-11-11 10:14:42 -08:00
Ken SedgwickandGitHub 050c6e39de Merge pull request #389 from ksedgwic/2024-10-fix-rust-log-env
Restore RUST_LOG filtering, default to INFO if absent
2024-11-07 14:35:12 -06:00
Ken Sedgwick ae4b7750cc Restore RUST_LOG filtering, default to INFO if absent 2024-10-30 10:39:51 -07:00
Ken Sedgwick 570d64c3cd canonicalize relay urls to avoid false duplicates 2024-10-29 13:42:29 -07:00
Ken Sedgwick e166dc17ef Skip adding relays that are already in the pool 2024-10-29 13:42:28 -07:00
Ken Sedgwick 26cb1a2c07 Fix parsing of subscription id for RelayMessage::Event 2024-10-29 13:42:28 -07:00
Ken Sedgwick 76df286837 add .rustfmt.toml to specify edition 2024-10-29 13:42:27 -07:00
Ken Sedgwick 2baf9dfed0 build: Cargo.lock updates to mitigate num_enum_derive problem 2024-10-29 13:42:26 -07:00
Ken Sedgwick a17b2dcb17 Untangle zoom when in TextEdit
Addresses ([#140])

I don't think the zoom code in handle_key_events was necessary because
gui zooming already appears to be handled by egui::gui_zoom.

Description of keybindings:
https://github.com/emilk/egui/blob/59d71831fd43139bf9b427b779a241099b9c9826/crates/egui/src/gui_zoom.rs#L5-L26

Zooming using the described keybindings works fine with a textedit
focused.

This PR removes the ContextAction::SetPixelsPerPoint aggressively;
maybe it should remain for other future uses?
2024-09-27 12:44:42 -07:00
Ken SedgwickandWilliam Casarin 21298b43f5 hitbox: cache note size instead of rect 2024-09-26 12:52:12 -07:00
Ken SedgwickandWilliam Casarin c25fde4a06 hitbox: handle hits on quoted notes correctly 2024-09-26 12:51:33 -07:00
Ken SedgwickandWilliam Casarin 5b7c9c9234 hitbox: extend the hitbox to the full width of the container 2024-09-26 12:42:57 -07:00
Ken SedgwickandWilliam Casarin 1f64350197 hitbox: more naming cleanup 2024-09-26 12:42:35 -07:00
Ken SedgwickandWilliam Casarin 35e8e536e6 debug: implemented fmt::Debug for NoteId 2024-09-26 12:42:35 -07:00
Ken SedgwickandWilliam Casarin f00b301e88 debug: implemented fmt::Debug for Pubkey 2024-09-26 12:42:35 -07:00
Ken Sedgwick fea315cb99 add note underbutton to detect clicks and open thread 2024-09-17 11:49:51 -07:00
Ken Sedgwick e7f959b3ea Read android args from config file on device
- allows use of more interesting args w/o risk of checking them in by mistake
- allows use of different args w/o rebuilding the app
- uses compiled in defaults if config file missing or broken

Example android-config.json:
```
{
  "args": [
    "--npub",
    "npub1h50pnxqw9jg7dhr906fvy4mze2yzawf895jhnc3p7qmljdugm6gsrurqev",
    "-c",
    "contacts",
    "-c",
    "notifications"
  ]
}
```

Install/update android-config.json with:
```
adb push android-config.json /sdcard/Android/data/com.damus.app/files/android-config.json
```

Using internal storage would be better but it seems hard to get the config file onto
the device ...
2024-09-10 14:16:10 -07:00
Ken Sedgwick 55f6a94c18 Supply default timeline for mobile app if empty
Fixes ([#284])
2024-09-03 11:37:27 -07:00
Ken SedgwickandWilliam Casarin fe7580f5be Extend ImageCache to handle content images 2024-09-02 17:54:49 -07:00
Ken SedgwickandWilliam Casarin 085c6f1992 build: updated num_enum to get around build problem
Problem:
```
error[E0463]: can't find crate for num_enum_derive
  --> /home/user/.cargo/registry/src/index.crates.io-6f17d22bba15001f/num_enum-0.7.2/src/lib.rs:10:11
   |
10 | pub use ::num_enum_derive::{
   |           ^^^^^^^^^^^^^^^ can't find crate
```
2024-09-02 17:54:49 -07:00