621 Commits

Author SHA1 Message Date
MM20
b5903f9812
Adjust slider preference padding to new slider style 2024-04-19 22:53:14 +02:00
MM20
734f5681e0
Adjust music widget to new material 3 slider style 2024-04-19 22:48:13 +02:00
MM20
4a69b19145
Fix incorrect color value in widget picker sheet 2024-04-19 22:09:13 +02:00
MM20
38c048ec03
Allow resizing of custom clock widgets 2024-04-19 22:01:40 +02:00
MM20
64002c9f38
Fix widget resize handle hitbox 2024-04-19 12:51:30 +02:00
MM20
d4759339cf
Widget sizes are using px, not dp 2024-04-18 20:44:37 +02:00
MM20
708e302631
Respect app widget size constraints 2024-04-18 00:56:58 +02:00
MM20
1a45ae9003
Add horizontal appwidget resizing 2024-04-18 00:42:03 +02:00
MM20
7056c5963a
Add option to use theme colors in app widgets and use light background variant when appropriate 2024-04-13 18:26:59 +02:00
MM20
afbe84fcf9
Gitignore .idea/other.xml 2024-04-13 18:26:46 +02:00
MM20
3008849b15
Update libraries, add predictive back in settings 2024-04-12 00:15:32 +02:00
MM20
cdf161f377
Fix time desync if animation scale is not 1 2024-04-08 18:08:42 +02:00
MM20
3288d933c5
[WIP] Custom widgets as watch face 2024-04-06 22:44:59 +02:00
MM20
efc50eb0a8
Fix time desync 2024-04-06 21:16:21 +02:00
MM20
e12bfb63fd
Optimize local time provision 2024-04-05 18:33:21 +02:00
MM20
6d15ab0e29
Clock widget: Keep settings of unselected watch faces 2024-04-05 15:59:14 +02:00
MM20
494a18ac97
Fix bottom sheets auto closing 2024-04-01 22:17:58 +02:00
MM20
0fe5dd9029
Refactor watch face selector 2024-04-01 16:45:05 +02:00
MM20
4ce4812317
Add clock widget preference migration, remove OnePlus variant 2024-03-29 16:53:45 +01:00
MM20
2cd4097b1d
Make debug builds non debuggable 2024-03-29 16:29:40 +01:00
Guillermo Villafuerte
1a20458904
Added flags "Show seconds" and "Use theme color" for clock widgets (#673)
* Added flags for use seconds and use theme color for clock widget, and "Display" clock style.

Signed-off-by: Guillermo Villafuerte <gvillafu@comunidad.unam.mx>

* Separator in "Display" clock changed to vector for consistency.

Signed-off-by: Guillermo Villafuerte <gvillafu@comunidad.unam.mx>

* "Use theme color" is now false by default.

Signed-off-by: Guillermo Villafuerte <gvillafu@comunidad.unam.mx>

* Added padding for all clocks.

Signed-off-by: Guillermo Villafuerte <gvillafu@comunidad.unam.mx>

* FIX: "Show seconds" was default true on VM, glitching the clock widget when first loaded.

Signed-off-by: Guillermo Villafuerte <gvillafu@comunidad.unam.mx>

* Clock time is now provided for a variable component as needed, splitting the current time provider by two.

Signed-off-by: Guillermo Villafuerte <gvillafu@comunidad.unam.mx>

* Compact mode is also considered for second/minute provider.

Signed-off-by: Guillermo Villafuerte <gvillafu@comunidad.unam.mx>

* Yet another tweak to Orbit clock colors.

Signed-off-by: Guillermo Villafuerte <gvillafu@comunidad.unam.mx>

* Separator flicker is now synced with second change for Display clock.

Signed-off-by: Guillermo Villafuerte <gvillafu@comunidad.unam.mx>

* Update libraries

* Update IDEA Kotlin file

* Disable seconds by default

* Swap order of clock widget preferences

* Invert themed orbit clock colors

* Rename display clock style to 7 segment

* Make watch face names localizable

---------

Signed-off-by: Guillermo Villafuerte <gvillafu@comunidad.unam.mx>
Co-authored-by: MM20 <15646950+MM2-0@users.noreply.github.com>
2024-03-29 14:54:38 +01:00
chaptergy
3646745a36
Adds setting to not separate work profile and main profile apps (#678)
* Adds setting to not separate work profile and main profile apps

* Only show work profile related preference when there is a work profile

---------

Co-authored-by: MM20 <15646950+MM2-0@users.noreply.github.com>
2024-03-28 21:00:06 +01:00
MM20
5a7f7efab8
Disable DEPENDENCY_INFO_BLOCK 2024-03-26 21:52:43 +01:00
MM20
38ec6a16c6
Remove WRITE_CONTACTS permission 2024-03-26 21:51:57 +01:00
MM20
559b65f20a
Remove map bug report dialog, launch fixme url right away 2024-03-26 19:22:35 +01:00
MM20
dfb76bd3af
Remove overpass server string resource 2024-03-26 19:14:49 +01:00
Christoph
cba387c832
Add OSM search provider (#611)
* add openstreetmaps module in data

* fix injection

* retrofit2 implementation

* tokenization

* partial rewrite of OpeningTime.fromOverpassElement

* finish rewrite of OpeningTime.fromOverpassElement

* fix merge x)

* configurable search radius

* add settings section and disable setting explicit timeout values for http-client to alleviate issues during debugging

* settings screen localization

* enable radius slider only when locations are enabled

* fix dayRange parsing, add barebones UI

* add files to git

* add location listener in SearchableItemVM that gets activated by LocationItem

* add heading listener

* Calculations, UI additions

* rename settings to LocationsSettings

* use android location library for bearing calculations

* location fix

* rotation fix, demo UI

* working buttons for launching map and website (if available)

* finish botched UI

* improve overpass query by utilizing regex for fuzzy search results

* add link to documentation for further reference

* localization comments

* remove wikipedia minification setting

* schema version, default radius 1.5km

* move osm-specific opening-time parsing to OsmLocation

* refactor with callbackFlow

* remember flow and set minimum distance update to 1m

* refactor for replacementIcon, add imperial unit option

* 'open until' UI fix

* implement serializers

* catch errors in deserializer

* hacky live sorting by distance

* give max priority to bestmatch determined by SearchVM

* add yards as additional step to metersToLocalizzedString

* move http-client from serializers of osmlocation to companion object for cache updating

* add setting for custom URL

* round yards to int

* add botched map preview

* unbotch map tiles, draw user location in map (proof of concept)

* - create MapTiles Composable
- add border around map
- add indicators for location and userlocation, when on map

* fix default imperial units setting

* fix tint color

* add OSM attribution string

* display loading animation when tiles can't be shown yet

* create compose preview of maptiles

* UI work

* being glad that API's just return null instead of throwing information

* tryStartActivity

* aniimate card row placement

* Text alignment, padding

* Rotation -PI/PI wrap fix

* fix direction arrow rotation when screen is upside down

* more icons

* icons, settings, localization
- consider other tags than "amenity" when determining location category
- add many more location categories with corresponding icons
- add settings to disable map theming and hide search results with
  LocationCategory.OTHER
- add default localizations for settings

* catch errors when deserializing location category

* move location and heading functions to Context.kt in extensions

* fix hideUncategorized criterion

* add pre-sorting by distance for location results in SearchVM by injecting Context into search()

* specify receiver parameters in ktx.Context lambdas

* move pose logic and context dependency to new module devicepose with DevicePoseProvider

* git, add the frickin' module

* search overpass for nodes and ways
include category for parcel_locker
already start searching for queries extending length 2

* make openingTimes immutable

* OsmRepository changes
- include telephone number
- don't try to repeatedly update cache if there is no value to be
  updated to
- deduplicate results with same label by category and distance (100m)
- include fixmeurl to point to openstreetmaps.org/fixthemap

* ask for center in overpass API to compute center coordinates of ways

* search for brand

* add chemist location category

* restaurant / fastfood icon shenanigans

* actually add the icons :|

* add leisure tag for leisure:fitness_centre

* return to 'open until'/'opens in'/'open next'

* adding missing UI features
- bug report dialog
- call button if phone number exists
- grid item popup

* refactor to handle 24/7 locations more comfortably

* hide hours in 'opens_in' when they are zero

* show maptiles such that user is always in view

* drawing adjustments

* cache previous zoom level to speed up tile coordinate calculations

* using remember

* using MutableIntState

* fix logic that determines whether tiles are loading

* fix for numTiles == 9

* one plus one is two plus one makes three quick maths

* animate user location indicator, remember calculations

* fix off by one when determining next opening hour

* second attempt to fix upside down arrow rotation (probably fine now)

* logging

* reconsider declination, inject samplingPeriod

* undoing the merge undo

* move localization string to i18n

* revert reordering by distance

* refactor .distanceTo

* make Location abstract class to override compareTo with cached distance to correct sort order in search results

* when it is if when you could use when

* replace Pair with dataclass

* condition check order

* not creating objects with undefined locations, removing suspend from getCategory()

* inject permissionsmanager as constructor parameter

* Store OSM settings in decentralized datastore

* Update searchable content in database on launch

* Refactor, add mechanism to load updated searchable data lazily

* Cache all OSM data in launcher database

* Add pin to favorites button to location results

* Add sealed class UpdateResult
that is returned by awaiting updatedSelf of DeferredSearchable

- update on success
- set flag on temporarily unavailable (TODO add some UI indication)
- delete and invalidate VM on permanently unavailable (Display some
  message window to user?)

* Move sorting of Locations from OsmRepository
to SearchVM using cached location in DevicePoseProvider, if available

* make use of cached location in code

* make use of DevicePoseProvider in WeatherRepository

* inject via koin

* increase getLocation().timeout() to 10 minutes since we are asking for locations only every hour, so 10 minutes seem reasonable (?)

* poll new location every time

* add icon for cached results where results are temporarily unavailable

* Refactor DeferredSearchable to UpdatableSearchable
that receives a closure to retrieve an updated self.

- moved timestamp (formerly `updatedAt`) to UpdatableSearchable
- moved logic whether to update searchable to `requestUpdatedSearchable`
  in SearchableItemVM, which gets triggered every time the details of
  the item are shown
- keep track in SearchableVM whether we should retry updating, possibly
  bypassing a timestamp value that is not old enough
- show toast upon permanently unavailable
- animate "cached_searchable" icon
- make "cached_searchable" icon clickable to show toast explaining the
  situation

* logging on PermanentlyUnavailable

* refactor OsmRepository.update()

* MapTheming adjustments. There is now darkmode, hooray!

* remove outdated comment

* code tidying

* remove unnecessary LaunchedEffect

* make outdated badge only clickable when actually outdated

* deserialize opening schedule

* set deserialized props to null if strings are blank

* also consider contact:* tagging scheme for website & phone

* tweaks

* git add Result.kt

* don't search for locations if network is not allowed

* merge fixes

* Move location search settings to preferences module

* Change wording and order of location search preferences

* Limit location search results

* Order location search results by distance

* Use a sequence

* Android Studio's suggestion wasn't as fleshed out as one would hope

* Add proguard rules

* Rename TileMapRepository to MapTileLoader

---------

Co-authored-by: MM20 <15646950+MM2-0@users.noreply.github.com>
2024-03-26 19:06:19 +01:00
MM20
cc1a27fc37
Version 1.29.1 2024-02-21 18:34:18 +01:00
MM20
f87e367657
Fix favorites tags layout 2024-02-21 18:33:34 +01:00
MM20
22b1e14c11
Version 1.29.0 2024-02-20 22:17:36 +01:00
MM20
8193324b39
Move dock settings to home screen settings 2024-02-20 22:09:35 +01:00
MM20
01ea2a2862
Fix plugin setup pending intent background permission 2024-02-20 22:03:23 +01:00
MM20
6d93731bfd
Fix dismissing and restoring note widget 2024-02-20 18:33:31 +01:00
MM20
3c9489d696
Learn how to type challenge (impossible) 2024-02-20 16:52:51 +01:00
MM20
faf6567c83
Change MDY compat preference 2024-02-20 16:43:51 +01:00
MM2-0
f037a72379
Merge pull request #652 from strongville/feat/materialYouCompat
Use Material You Compat on Android 12+ if flag is enabled
2024-02-20 16:35:51 +01:00
MM20
571f9cfee4
Fix configuring app widgets after adding them 2024-02-19 22:57:46 +01:00
MM20
3f7209035e
Fix adding widgets 2024-02-19 22:54:02 +01:00
MM20
1c54166b58
Fix media integration settings app list not loading 2024-02-19 00:28:52 +01:00
MM20
60fb2b7309
Plugin screen: fix set as weather provider action 2024-02-19 00:00:56 +01:00
MM20
226219c1e6
Plugin screen: i18n 2024-02-18 23:55:41 +01:00
MM20
ec5908f9de
Make string localizable 2024-02-04 01:26:35 +01:00
MM20
c014c143ed
Update libraries 2024-02-03 22:47:05 +01:00
MM20
837cd63191
Fix clock disappearing when fill screen height is disabled 2024-01-28 23:05:01 +01:00
MM20
da12d03460
Fix theme selection on theme selection preference screen 2024-01-28 22:54:17 +01:00
MM20
426473e397
Add API to control online search 2024-01-28 21:35:36 +01:00
Guillermo Villafuerte
7d0c1829a8
Merge remote-tracking branch 'upstream/main' into feat/materialYouCompat
Signed-off-by: Guillermo Villafuerte <gvillafu@comunidad.unam.mx>

# Conflicts:
#	app/ui/src/main/java/de/mm20/launcher2/ui/settings/appearance/AppearanceSettingsScreen.kt
#	app/ui/src/main/java/de/mm20/launcher2/ui/theme/colorscheme/Custom.kt
#	core/preferences/src/main/java/de/mm20/launcher2/preferences/DataStore.kt
#	core/preferences/src/main/java/de/mm20/launcher2/preferences/Defaults.kt
2024-01-19 18:10:42 -06:00
MM2-0
36b83ad07b
Merge pull request #649 from strongville/feat/editWidgetsSBM
Add menu entry "Edit widgets" if button on the widgets list is not shown
2024-01-19 23:25:02 +01:00
MM20
b433e5884c
Fix tag editor apps not loading 2024-01-19 23:24:18 +01:00
MM20
2492e22f6f
Fix search favorites tags expand button breaking when activity is recreated
Fix #596
2024-01-19 22:46:23 +01:00