Modern Apps git

← Modern-Apps.git

ui changes

Commit
4468fdb4c45c44b8c2a7458bee66a26531023b7d
Author
vayun-mathur <[email protected]>
When
2026-09-13 16:49 UTC (2 months ago)
Parents
cd6a8ab

Diff

$null
diff --git a/$null b/$nulldeleted file mode 100644index fabeeb0c47..0000000000--- a/$null+++ /dev/null@@ -1,4 +0,0 @@-  File "<string>", line 15-    print(f'{\"TOTAL\":10s} {grand:9d} params')-              ^-SyntaxError: unexpected character after line continuation character
README.md
diff --git a/README.md b/README.mdindex 2c971209cc..81091b9ddf 100644--- a/README.md+++ b/README.md@@ -28,70 +28,88 @@ The v2.x.x versions of these apps are **all to be considered beta versions**. Lo  # Master Table: -Every released and planned app is listed here:+Every released and planned app is listed here, with its subgroup:++- **MA-1** are the flagship apps - either fully unique in FOSS or particulary noteworthy+- **MA-2** is the rest of a typical ecosystem: the standard stuff.+- **MA-3** is niche stuff that a small portion of people may want to use occasionally.+- **MA-E** is real-world stuff+- **MA-G** is games.+- **MA-C** are apps built for the MA-OS project, that may or may not also be available as user apps  Though some apps may have exceptions, generally a 64-bit device running at least Android 12 is required.  **Cast (Android TV receiver)** is the one app that is not for a phone: it runs on an Android TV or Google TV and is what the Cast app mirrors to. It is listed in the table below like any other app, but it will not appear on a phone's launcher and is not installable on one. -**THE RECOMMENDED INSTALLATION METHOD IS MA APP STORE.** It is the most secure way to download MA apps. +**THE RECOMMENDED INSTALLATION METHOD IS MA APP STORE.** It is the most secure way to download MA apps.  **FOR F-DROID USERS, ADD THIS REPO TO YOUR CLIENT: [https://ma.vayunmathur.com/fdroid](https://ma.vayunmathur.com/fdroid)** (for faster updates and apps unavailable on the main repo) -| App Name | Homepage | F-Droid | Obtainium |-| :--- | :---: | :---: | :---: |-| **App Store** | [Homepage](https://ma.vayunmathur.com/apps/appstore) | [![MA Repo](https://img.shields.io/badge/MA_Repo-Download-green?logo=f-droid&style=flat-square)](https://f-droid.org/packages/com.vayunmathur.appstore/) | [![Obtainium](https://img.shields.io/badge/Obtainium-Download-purple?style=flat-square)](https://api.vayunmathur.com/obtainium-link?name=App%20Store&packageName=com.vayunmathur.appstore&apk=appstore-release.apk) |-| **Astronomy** | [Homepage](https://ma.vayunmathur.com/apps/astronomy) | [![MA Repo](https://img.shields.io/badge/MA_Repo-Download-green?logo=f-droid&style=flat-square)](https://f-droid.org/packages/com.vayunmathur.astronomy/) | [![Obtainium](https://img.shields.io/badge/Obtainium-Download-purple?style=flat-square)](https://api.vayunmathur.com/obtainium-link?name=Astronomy&packageName=com.vayunmathur.astronomy&apk=astronomy-release.apk) |-| **Auto** | [Homepage](https://ma.vayunmathur.com/apps/auto) | In Progress | In Progress |-| **Calculator** | [Homepage](https://ma.vayunmathur.com/apps/calculator) | [![MA Repo](https://img.shields.io/badge/MA_Repo-Download-green?logo=f-droid&style=flat-square)](https://f-droid.org/packages/com.vayunmathur.calculator/) | [![Obtainium](https://img.shields.io/badge/Obtainium-Download-purple?style=flat-square)](https://api.vayunmathur.com/obtainium-link?name=Calculator&packageName=com.vayunmathur.calculator&apk=calculator-release.apk) |-| **Calendar** | [Homepage](https://ma.vayunmathur.com/apps/calendar) | [![MA Repo](https://img.shields.io/badge/MA_Repo-Download-green?logo=f-droid&style=flat-square)](https://f-droid.org/packages/com.vayunmathur.calendar/) | [![Obtainium](https://img.shields.io/badge/Obtainium-Download-purple?style=flat-square)](https://api.vayunmathur.com/obtainium-link?name=Calendar&packageName=com.vayunmathur.calendar&apk=calendar-release.apk) |-| **Camera** | [Homepage](https://ma.vayunmathur.com/apps/camera) | [![MA Repo](https://img.shields.io/badge/MA_Repo-Download-green?logo=f-droid&style=flat-square)](https://f-droid.org/packages/com.vayunmathur.camera/) | [![Obtainium](https://img.shields.io/badge/Obtainium-Download-purple?style=flat-square)](https://api.vayunmathur.com/obtainium-link?name=Camera&packageName=com.vayunmathur.camera&apk=camera-release.apk) |-| **Cast** | [Homepage](https://ma.vayunmathur.com/apps/cast) | In Progress | In Progress |-| **Cast (Android TV receiver)** | [Homepage](https://ma.vayunmathur.com/apps/cast-tv) | In Progress | In Progress |-| **Clock** | [Homepage](https://ma.vayunmathur.com/apps/clock) | [![MA Repo](https://img.shields.io/badge/MA_Repo-Download-green?logo=f-droid&style=flat-square)](https://f-droid.org/packages/com.vayunmathur.clock/) | [![Obtainium](https://img.shields.io/badge/Obtainium-Download-purple?style=flat-square)](https://api.vayunmathur.com/obtainium-link?name=Clock&packageName=com.vayunmathur.clock&apk=clock-release.apk) |-| **Code** | [Homepage](https://ma.vayunmathur.com/apps/code) | [![MA Repo](https://img.shields.io/badge/MA_Repo-Download-green?logo=f-droid&style=flat-square)](https://f-droid.org/packages/com.vayunmathur.code/) | [![Obtainium](https://img.shields.io/badge/Obtainium-Download-purple?style=flat-square)](https://api.vayunmathur.com/obtainium-link?name=Code&packageName=com.vayunmathur.code&apk=code-release.apk) |-| **Contacts** | [Homepage](https://ma.vayunmathur.com/apps/contacts) | [![MA Repo](https://img.shields.io/badge/MA_Repo-Download-green?logo=f-droid&style=flat-square)](https://f-droid.org/packages/com.vayunmathur.contacts/) | [![Obtainium](https://img.shields.io/badge/Obtainium-Download-purple?style=flat-square)](https://api.vayunmathur.com/obtainium-link?name=Contacts&packageName=com.vayunmathur.contacts&apk=contacts-release.apk) |-| **EverySync** | [Homepage](https://ma.vayunmathur.com/apps/everysync) | In Progress | In Progress |-| **Email** | [Homepage](https://ma.vayunmathur.com/apps/email) | [![F-Droid](https://img.shields.io/badge/F--Droid-Download-blue?logo=f-droid&style=flat-square)](https://f-droid.org/packages/com.vayunmathur.email) | [![Obtainium](https://img.shields.io/badge/Obtainium-Download-purple?style=flat-square)](https://api.vayunmathur.com/obtainium-link?name=Email&packageName=com.vayunmathur.email&apk=email-release.apk) |-| **Files** | [Homepage](https://ma.vayunmathur.com/apps/files) | [![MA Repo](https://img.shields.io/badge/MA_Repo-Download-green?logo=f-droid&style=flat-square)](https://f-droid.org/packages/com.vayunmathur.files/) | [![Obtainium](https://img.shields.io/badge/Obtainium-Download-purple?style=flat-square)](https://api.vayunmathur.com/obtainium-link?name=Files&packageName=com.vayunmathur.files&apk=files-release.apk) |-| **Find Family** | [Homepage](https://ma.vayunmathur.com/apps/findfamily) | [![F-Droid](https://img.shields.io/badge/F--Droid-Download-blue?logo=f-droid&style=flat-square)](https://f-droid.org/packages/com.vayunmathur.findfamily) | [![Obtainium](https://img.shields.io/badge/Obtainium-Download-purple?style=flat-square)](https://api.vayunmathur.com/obtainium-link?name=Find%20Family&packageName=com.vayunmathur.findfamily&apk=findfamily-release.apk) |-| **Flashcards** | [Homepage](https://ma.vayunmathur.com/apps/flashcards) | [![MA Repo](https://img.shields.io/badge/MA_Repo-Download-green?logo=f-droid&style=flat-square)](https://f-droid.org/packages/com.vayunmathur.flashcards/) | [![Obtainium](https://img.shields.io/badge/Obtainium-Download-purple?style=flat-square)](https://api.vayunmathur.com/obtainium-link?name=Flashcards&packageName=com.vayunmathur.flashcards&apk=flashcards-release.apk) |-| **Food Delivery (US only)** | [Homepage](https://ma.vayunmathur.com/apps/fooddelivery) | [![MA Repo](https://img.shields.io/badge/MA_Repo-Download-green?logo=f-droid&style=flat-square)](https://f-droid.org/packages/com.vayunmathur.fooddelivery/) | [![Obtainium](https://img.shields.io/badge/Obtainium-Download-purple?style=flat-square)](https://api.vayunmathur.com/obtainium-link?name=Food%20Delivery&packageName=com.vayunmathur.fooddelivery&apk=fooddelivery-release.apk) |-| **Health** | [Homepage](https://ma.vayunmathur.com/apps/health) | [![MA Repo](https://img.shields.io/badge/MA_Repo-Download-green?logo=f-droid&style=flat-square)](https://f-droid.org/packages/com.vayunmathur.health/) | [![Obtainium](https://img.shields.io/badge/Obtainium-Download-purple?style=flat-square)](https://api.vayunmathur.com/obtainium-link?name=Health&packageName=com.vayunmathur.health&apk=health-release.apk) |-| **Keyboard** | [Homepage](https://ma.vayunmathur.com/apps/keyboard) | [![MA Repo](https://img.shields.io/badge/MA_Repo-Download-green?logo=f-droid&style=flat-square)](https://f-droid.org/packages/com.vayunmathur.keyboard/) | [![Obtainium](https://img.shields.io/badge/Obtainium-Download-purple?style=flat-square)](https://api.vayunmathur.com/obtainium-link?name=Keyboard&packageName=com.vayunmathur.keyboard&apk=keyboard-release.apk) |-| **Launcher** | [Homepage](https://ma.vayunmathur.com/apps/launcher) | In Progress | In Progress |-| **Log Viewer** | [Homepage](https://ma.vayunmathur.com/apps/logviewer) | In Progress | In Progress |-| **Maps** | [Homepage](https://ma.vayunmathur.com/apps/maps) | In Progress | In Progress |-| **Measure** | [Homepage](https://ma.vayunmathur.com/apps/measure) | [![MA Repo](https://img.shields.io/badge/MA_Repo-Download-green?logo=f-droid&style=flat-square)](https://ma.vayunmathur.com/fdroid) | [![Obtainium](https://img.shields.io/badge/Obtainium-Download-purple?style=flat-square)](https://api.vayunmathur.com/obtainium-link?name=Measure&packageName=com.vayunmathur.measure&apk=measure-release.apk) |-| **Messages** | [Homepage](https://ma.vayunmathur.com/apps/messages) | In Progress | In Progress |-| **Music** | [Homepage](https://ma.vayunmathur.com/apps/music) | [![MA Repo](https://img.shields.io/badge/MA_Repo-Download-green?logo=f-droid&style=flat-square)](https://f-droid.org/packages/com.vayunmathur.music/) | [![Obtainium](https://img.shields.io/badge/Obtainium-Download-purple?style=flat-square)](https://api.vayunmathur.com/obtainium-link?name=Music&packageName=com.vayunmathur.music&apk=music-release.apk) |-| **MusicBrainz** | [Homepage](https://ma.vayunmathur.com/apps/musicbrainz) | [![MA Repo](https://img.shields.io/badge/MA_Repo-Download-green?logo=f-droid&style=flat-square)](https://f-droid.org/packages/com.vayunmathur.musicbrainz/) | [![Obtainium](https://img.shields.io/badge/Obtainium-Download-purple?style=flat-square)](https://api.vayunmathur.com/obtainium-link?name=MusicBrainz&packageName=com.vayunmathur.musicbrainz&apk=musicbrainz-release.apk) |-| **Notes** | [Homepage](https://ma.vayunmathur.com/apps/notes) | [![MA Repo](https://img.shields.io/badge/MA_Repo-Download-green?logo=f-droid&style=flat-square)](https://f-droid.org/packages/com.vayunmathur.notes/) | [![Obtainium](https://img.shields.io/badge/Obtainium-Download-purple?style=flat-square)](https://api.vayunmathur.com/obtainium-link?name=Notes&packageName=com.vayunmathur.notes&apk=notes-release.apk) |-| **Office** | [Homepage](https://ma.vayunmathur.com/apps/office) | [![F-Droid](https://img.shields.io/badge/F--Droid-Download-blue?logo=f-droid&style=flat-square)](https://f-droid.org/packages/com.vayunmathur.office) | [![Obtainium](https://img.shields.io/badge/Obtainium-Download-purple?style=flat-square)](https://api.vayunmathur.com/obtainium-link?name=Office&packageName=com.vayunmathur.office&apk=office-release.apk) |-| **Open Assistant** | [Homepage](https://ma.vayunmathur.com/apps/openassistant) | [![F-Droid](https://img.shields.io/badge/F--Droid-Download-blue?logo=f-droid&style=flat-square)](https://f-droid.org/packages/com.vayunmathur.openassistant) | [![Obtainium](https://img.shields.io/badge/Obtainium-Download-purple?style=flat-square)](https://api.vayunmathur.com/obtainium-link?name=OpenAssistant&packageName=com.vayunmathur.openassistant&apk=openassistant-release.apk) |-| **Passwords** | [Homepage](https://ma.vayunmathur.com/apps/passwords) | [![MA Repo](https://img.shields.io/badge/MA_Repo-Download-green?logo=f-droid&style=flat-square)](https://f-droid.org/packages/com.vayunmathur.passwords/) | [![Obtainium](https://img.shields.io/badge/Obtainium-Download-purple?style=flat-square)](https://api.vayunmathur.com/obtainium-link?name=Passwords&packageName=com.vayunmathur.passwords&apk=passwords-release.apk) |-| **PDF Reader** | [Homepage](https://ma.vayunmathur.com/apps/pdf) | [![F-Droid](https://img.shields.io/badge/F--Droid-Download-blue?logo=f-droid&style=flat-square)](https://f-droid.org/packages/com.vayunmathur.pdf) | [![Obtainium](https://img.shields.io/badge/Obtainium-Download-purple?style=flat-square)](https://api.vayunmathur.com/obtainium-link?name=PDF&packageName=com.vayunmathur.pdf&apk=pdf-release.apk) |-| **Photos** | [Homepage](https://ma.vayunmathur.com/apps/photos) | [![F-Droid](https://img.shields.io/badge/F--Droid-Download-blue?logo=f-droid&style=flat-square)](https://f-droid.org/packages/com.vayunmathur.photos) | [![Obtainium](https://img.shields.io/badge/Obtainium-Download-purple?style=flat-square)](https://api.vayunmathur.com/obtainium-link?name=Photos&packageName=com.vayunmathur.photos&apk=photos-release.apk) |-| **Speech Recognizer** | [Homepage](https://ma.vayunmathur.com/apps/speech) | [![MA Repo](https://img.shields.io/badge/MA_Repo-Download-green?logo=f-droid&style=flat-square)](https://f-droid.org/packages/com.vayunmathur.speech/) | [![Obtainium](https://img.shields.io/badge/Obtainium-Download-purple?style=flat-square)](https://api.vayunmathur.com/obtainium-link?name=Speech%20Recognizer&packageName=com.vayunmathur.speech&apk=speech-release.apk) |-| **Things** | [Homepage](https://ma.vayunmathur.com/apps/things) | [![MA Repo](https://img.shields.io/badge/MA_Repo-Download-green?logo=f-droid&style=flat-square)](https://f-droid.org/packages/com.vayunmathur.things/) | [![Obtainium](https://img.shields.io/badge/Obtainium-Download-purple?style=flat-square)](https://api.vayunmathur.com/obtainium-link?name=Things&packageName=com.vayunmathur.things&apk=things-release.apk) |-| **Taxi (US and Canada only)** | [Homepage](https://ma.vayunmathur.com/apps/taxi) | [![MA Repo](https://img.shields.io/badge/MA_Repo-Download-green?logo=f-droid&style=flat-square)](https://ma.vayunmathur.com/fdroid) | [![Obtainium](https://img.shields.io/badge/Obtainium-Download-purple?style=flat-square)](https://api.vayunmathur.com/obtainium-link?name=Taxi&packageName=com.vayunmathur.taxi&apk=taxi-release.apk) |-| **Translate** | [Homepage](https://ma.vayunmathur.com/apps/translate) | [![MA Repo](https://img.shields.io/badge/MA_Repo-Download-green?logo=f-droid&style=flat-square)](https://f-droid.org/packages/com.vayunmathur.translate/) | [![Obtainium](https://img.shields.io/badge/Obtainium-Download-purple?style=flat-square)](https://api.vayunmathur.com/obtainium-link?name=Translate&packageName=com.vayunmathur.translate&apk=translate-release.apk) |-| **Travel** | [Homepage](https://ma.vayunmathur.com/apps/travel) | In Progress | In Progress |-| **Tuner** | [Homepage](https://ma.vayunmathur.com/apps/tuner) | In Progress | In Progress |-| **VPN** | [Homepage](https://ma.vayunmathur.com/apps/vpn) | [![MA Repo](https://img.shields.io/badge/MA_Repo-Download-green?logo=f-droid&style=flat-square)](https://f-droid.org/packages/com.vayunmathur.vpn/) | [![Obtainium](https://img.shields.io/badge/Obtainium-Download-purple?style=flat-square)](https://api.vayunmathur.com/obtainium-link?name=VPN&packageName=com.vayunmathur.vpn&apk=vpn-release.apk) |-| **Weather** | [Homepage](https://ma.vayunmathur.com/apps/weather) | [![F-Droid](https://img.shields.io/badge/F--Droid-Download-blue?logo=f-droid&style=flat-square)](https://f-droid.org/packages/com.vayunmathur.weather) | [![Obtainium](https://img.shields.io/badge/Obtainium-Download-purple?style=flat-square)](https://api.vayunmathur.com/obtainium-link?name=Weather&packageName=com.vayunmathur.weather&apk=weather-release.apk) |-| **Web** | [Homepage](https://ma.vayunmathur.com/apps/web) | [![MA Repo](https://img.shields.io/badge/MA_Repo-Download-green?logo=f-droid&style=flat-square)](https://f-droid.org/packages/com.vayunmathur.web/) | [![Obtainium](https://img.shields.io/badge/Obtainium-Download-purple?style=flat-square)](https://api.vayunmathur.com/obtainium-link?name=Web&packageName=com.vayunmathur.web&apk=web-release.apk) |-| **YouPipe** | [Homepage](https://ma.vayunmathur.com/apps/youpipe) | [![F-Droid](https://img.shields.io/badge/F--Droid-Download-blue?logo=f-droid&style=flat-square)](https://f-droid.org/packages/com.vayunmathur.youpipe) | [![Obtainium](https://img.shields.io/badge/Obtainium-Download-purple?style=flat-square)](https://api.vayunmathur.com/obtainium-link?name=YouPipe&packageName=com.vayunmathur.youpipe&apk=youpipe-release.apk) |--| **Games Hub** | [Homepage](https://ma.vayunmathur.com/apps/games-hub) | [![MA Repo](https://img.shields.io/badge/MA_Repo-Download-green?logo=f-droid&style=flat-square)](https://f-droid.org/packages/com.vayunmathur.games.hub/) | [![Obtainium](https://img.shields.io/badge/Obtainium-Download-purple?style=flat-square)](https://api.vayunmathur.com/obtainium-link?name=Games%20Hub&packageName=com.vayunmathur.games.hub&apk=hub-release.apk) |-| :--- | :---: | :---: | :---: |-| **Chess** | [Homepage](https://ma.vayunmathur.com/apps/games-chess) | [![MA Repo](https://img.shields.io/badge/MA_Repo-Download-green?logo=f-droid&style=flat-square)](https://f-droid.org/packages/com.vayunmathur.games.chess/) | [![Obtainium](https://img.shields.io/badge/Obtainium-Download-purple?style=flat-square)](https://api.vayunmathur.com/obtainium-link?name=Chess&packageName=com.vayunmathur.games.chess&apk=chess-release.apk) |-| **Logic Gate** | [Homepage](https://ma.vayunmathur.com/apps/games-logicgate) | In Progress | In Progress |-| **Pipes** | [Homepage](https://ma.vayunmathur.com/apps/games-pipes) | [![MA Repo](https://img.shields.io/badge/MA_Repo-Download-green?logo=f-droid&style=flat-square)](https://f-droid.org/packages/com.vayunmathur.games.pipes/) | [![Obtainium](https://img.shields.io/badge/Obtainium-Download-purple?style=flat-square)](https://api.vayunmathur.com/obtainium-link?name=Pipes&packageName=com.vayunmathur.games.pipes&apk=pipes-release.apk) |-| **Solitaire** | [Homepage](https://ma.vayunmathur.com/apps/games-solitaire) | [![MA Repo](https://img.shields.io/badge/MA_Repo-Download-green?logo=f-droid&style=flat-square)](https://f-droid.org/packages/com.vayunmathur.games.solitaire/) | [![Obtainium](https://img.shields.io/badge/Obtainium-Download-purple?style=flat-square)](https://api.vayunmathur.com/obtainium-link?name=Solitaire&packageName=com.vayunmathur.games.solitaire&apk=solitaire-release.apk) |-| **Unblock Jam** | [Homepage](https://ma.vayunmathur.com/apps/games-unblockjam) | [![MA Repo](https://img.shields.io/badge/MA_Repo-Download-green?logo=f-droid&style=flat-square)](https://f-droid.org/packages/com.vayunmathur.games.unblockjam/) | [![Obtainium](https://img.shields.io/badge/Obtainium-Download-purple?style=flat-square)](https://api.vayunmathur.com/obtainium-link?name=Unblock%20Jam&packageName=com.vayunmathur.games.unblockjam&apk=unblockjam-release.apk) |-| **Voxels** | [Homepage](https://ma.vayunmathur.com/apps/games-voxels) | In Progress | In Progress |-| **Word Maker** | [Homepage](https://ma.vayunmathur.com/apps/games-wordmaker) | [![MA Repo](https://img.shields.io/badge/MA_Repo-Download-green?logo=f-droid&style=flat-square)](https://f-droid.org/packages/com.vayunmathur.games.wordmaker/) | [![Obtainium](https://img.shields.io/badge/Obtainium-Download-purple?style=flat-square)](https://api.vayunmathur.com/obtainium-link?name=Word%20Maker&packageName=com.vayunmathur.games.wordmaker&apk=wordmaker-release.apk) |+| App Name | Group | Homepage | F-Droid | Obtainium |+| :--- | :---: | :---: | :---: | :---: |+| **App Store** | MA-C | [Homepage](https://ma.vayunmathur.com/apps/appstore) | [![MA Repo](https://img.shields.io/badge/MA_Repo-Download-green?logo=f-droid&style=flat-square)](https://f-droid.org/packages/com.vayunmathur.appstore/) | [![Obtainium](https://img.shields.io/badge/Obtainium-Download-purple?style=flat-square)](https://api.vayunmathur.com/obtainium-link?name=App%20Store&packageName=com.vayunmathur.appstore&apk=appstore-release.apk) |+| **Astronomy** | MA-3 | [Homepage](https://ma.vayunmathur.com/apps/astronomy) | [![MA Repo](https://img.shields.io/badge/MA_Repo-Download-green?logo=f-droid&style=flat-square)](https://f-droid.org/packages/com.vayunmathur.astronomy/) | [![Obtainium](https://img.shields.io/badge/Obtainium-Download-purple?style=flat-square)](https://api.vayunmathur.com/obtainium-link?name=Astronomy&packageName=com.vayunmathur.astronomy&apk=astronomy-release.apk) |+| **Auto** | MA-C | [Homepage](https://ma.vayunmathur.com/apps/auto) | In Progress | In Progress |+| **Backup** | MA-C | [Homepage](https://ma.vayunmathur.com/apps/backup) | In Progress | In Progress |+| **Calculator** | MA-2 | [Homepage](https://ma.vayunmathur.com/apps/calculator) | [![MA Repo](https://img.shields.io/badge/MA_Repo-Download-green?logo=f-droid&style=flat-square)](https://f-droid.org/packages/com.vayunmathur.calculator/) | [![Obtainium](https://img.shields.io/badge/Obtainium-Download-purple?style=flat-square)](https://api.vayunmathur.com/obtainium-link?name=Calculator&packageName=com.vayunmathur.calculator&apk=calculator-release.apk) |+| **Calendar** | MA-2 | [Homepage](https://ma.vayunmathur.com/apps/calendar) | [![MA Repo](https://img.shields.io/badge/MA_Repo-Download-green?logo=f-droid&style=flat-square)](https://f-droid.org/packages/com.vayunmathur.calendar/) | [![Obtainium](https://img.shields.io/badge/Obtainium-Download-purple?style=flat-square)](https://api.vayunmathur.com/obtainium-link?name=Calendar&packageName=com.vayunmathur.calendar&apk=calendar-release.apk) |+| **Camera** | MA-1 | [Homepage](https://ma.vayunmathur.com/apps/camera) | [![MA Repo](https://img.shields.io/badge/MA_Repo-Download-green?logo=f-droid&style=flat-square)](https://f-droid.org/packages/com.vayunmathur.camera/) | [![Obtainium](https://img.shields.io/badge/Obtainium-Download-purple?style=flat-square)](https://api.vayunmathur.com/obtainium-link?name=Camera&packageName=com.vayunmathur.camera&apk=camera-release.apk) |+| **Cast** | MA-C | [Homepage](https://ma.vayunmathur.com/apps/cast) | In Progress | In Progress |+| **Cast (Android TV receiver)** | N/A | [Homepage](https://ma.vayunmathur.com/apps/cast-tv) | In Progress | In Progress |+| **Clock** | MA-2 | [Homepage](https://ma.vayunmathur.com/apps/clock) | [![MA Repo](https://img.shields.io/badge/MA_Repo-Download-green?logo=f-droid&style=flat-square)](https://f-droid.org/packages/com.vayunmathur.clock/) | [![Obtainium](https://img.shields.io/badge/Obtainium-Download-purple?style=flat-square)](https://api.vayunmathur.com/obtainium-link?name=Clock&packageName=com.vayunmathur.clock&apk=clock-release.apk) |+| **Code** | MA-3 | [Homepage](https://ma.vayunmathur.com/apps/code) | [![MA Repo](https://img.shields.io/badge/MA_Repo-Download-green?logo=f-droid&style=flat-square)](https://f-droid.org/packages/com.vayunmathur.code/) | [![Obtainium](https://img.shields.io/badge/Obtainium-Download-purple?style=flat-square)](https://api.vayunmathur.com/obtainium-link?name=Code&packageName=com.vayunmathur.code&apk=code-release.apk) |+| **Contacts** | MA-2 | [Homepage](https://ma.vayunmathur.com/apps/contacts) | [![MA Repo](https://img.shields.io/badge/MA_Repo-Download-green?logo=f-droid&style=flat-square)](https://f-droid.org/packages/com.vayunmathur.contacts/) | [![Obtainium](https://img.shields.io/badge/Obtainium-Download-purple?style=flat-square)](https://api.vayunmathur.com/obtainium-link?name=Contacts&packageName=com.vayunmathur.contacts&apk=contacts-release.apk) |+| **Education** | MA-3 | [Homepage](https://ma.vayunmathur.com/apps/education) | In Progress | In Progress |+| **Email** | MA-1 | [Homepage](https://ma.vayunmathur.com/apps/email) | [![F-Droid](https://img.shields.io/badge/F--Droid-Download-blue?logo=f-droid&style=flat-square)](https://f-droid.org/packages/com.vayunmathur.email) | [![Obtainium](https://img.shields.io/badge/Obtainium-Download-purple?style=flat-square)](https://api.vayunmathur.com/obtainium-link?name=Email&packageName=com.vayunmathur.email&apk=email-release.apk) |+| **eUICC** | MA-C | [Homepage](https://ma.vayunmathur.com/apps/euicc) | In Progress | In Progress |+| **EverySync** | MA-2 | [Homepage](https://ma.vayunmathur.com/apps/everysync) | In Progress | In Progress |+| **Files** | MA-2 | [Homepage](https://ma.vayunmathur.com/apps/files) | [![MA Repo](https://img.shields.io/badge/MA_Repo-Download-green?logo=f-droid&style=flat-square)](https://f-droid.org/packages/com.vayunmathur.files/) | [![Obtainium](https://img.shields.io/badge/Obtainium-Download-purple?style=flat-square)](https://api.vayunmathur.com/obtainium-link?name=Files&packageName=com.vayunmathur.files&apk=files-release.apk) |+| **Find Family** | MA-1 | [Homepage](https://ma.vayunmathur.com/apps/findfamily) | [![F-Droid](https://img.shields.io/badge/F--Droid-Download-blue?logo=f-droid&style=flat-square)](https://f-droid.org/packages/com.vayunmathur.findfamily) | [![Obtainium](https://img.shields.io/badge/Obtainium-Download-purple?style=flat-square)](https://api.vayunmathur.com/obtainium-link?name=Find%20Family&packageName=com.vayunmathur.findfamily&apk=findfamily-release.apk) |+| **Flashcards** | MA-3 | [Homepage](https://ma.vayunmathur.com/apps/flashcards) | [![MA Repo](https://img.shields.io/badge/MA_Repo-Download-green?logo=f-droid&style=flat-square)](https://f-droid.org/packages/com.vayunmathur.flashcards/) | [![Obtainium](https://img.shields.io/badge/Obtainium-Download-purple?style=flat-square)](https://api.vayunmathur.com/obtainium-link?name=Flashcards&packageName=com.vayunmathur.flashcards&apk=flashcards-release.apk) |+| **Food Delivery (US only)** | MA-E | [Homepage](https://ma.vayunmathur.com/apps/fooddelivery) | [![MA Repo](https://img.shields.io/badge/MA_Repo-Download-green?logo=f-droid&style=flat-square)](https://f-droid.org/packages/com.vayunmathur.fooddelivery/) | [![Obtainium](https://img.shields.io/badge/Obtainium-Download-purple?style=flat-square)](https://api.vayunmathur.com/obtainium-link?name=Food%20Delivery&packageName=com.vayunmathur.fooddelivery&apk=fooddelivery-release.apk) |+| **Health** | MA-2 | [Homepage](https://ma.vayunmathur.com/apps/health) | [![MA Repo](https://img.shields.io/badge/MA_Repo-Download-green?logo=f-droid&style=flat-square)](https://f-droid.org/packages/com.vayunmathur.health/) | [![Obtainium](https://img.shields.io/badge/Obtainium-Download-purple?style=flat-square)](https://api.vayunmathur.com/obtainium-link?name=Health&packageName=com.vayunmathur.health&apk=health-release.apk) |+| **Keyboard** | MA-2 | [Homepage](https://ma.vayunmathur.com/apps/keyboard) | [![MA Repo](https://img.shields.io/badge/MA_Repo-Download-green?logo=f-droid&style=flat-square)](https://f-droid.org/packages/com.vayunmathur.keyboard/) | [![Obtainium](https://img.shields.io/badge/Obtainium-Download-purple?style=flat-square)](https://api.vayunmathur.com/obtainium-link?name=Keyboard&packageName=com.vayunmathur.keyboard&apk=keyboard-release.apk) |+| **Launcher** | MA-C | [Homepage](https://ma.vayunmathur.com/apps/launcher) | In Progress | In Progress |+| **Log Viewer** | MA-C | [Homepage](https://ma.vayunmathur.com/apps/logviewer) | In Progress | In Progress |+| **Maps** | MA-1 | [Homepage](https://ma.vayunmathur.com/apps/maps) | In Progress | In Progress |+| **Measure** | MA-3 | [Homepage](https://ma.vayunmathur.com/apps/measure) | [![MA Repo](https://img.shields.io/badge/MA_Repo-Download-green?logo=f-droid&style=flat-square)](https://ma.vayunmathur.com/fdroid) | [![Obtainium](https://img.shields.io/badge/Obtainium-Download-purple?style=flat-square)](https://api.vayunmathur.com/obtainium-link?name=Measure&packageName=com.vayunmathur.measure&apk=measure-release.apk) |+| **Messages** | MA-1 | [Homepage](https://ma.vayunmathur.com/apps/messages) | In Progress | In Progress |+| **Music** | MA-2 | [Homepage](https://ma.vayunmathur.com/apps/music) | [![MA Repo](https://img.shields.io/badge/MA_Repo-Download-green?logo=f-droid&style=flat-square)](https://f-droid.org/packages/com.vayunmathur.music/) | [![Obtainium](https://img.shields.io/badge/Obtainium-Download-purple?style=flat-square)](https://api.vayunmathur.com/obtainium-link?name=Music&packageName=com.vayunmathur.music&apk=music-release.apk) |+| **MusicBrainz** | MA-3 | [Homepage](https://ma.vayunmathur.com/apps/musicbrainz) | [![MA Repo](https://img.shields.io/badge/MA_Repo-Download-green?logo=f-droid&style=flat-square)](https://f-droid.org/packages/com.vayunmathur.musicbrainz/) | [![Obtainium](https://img.shields.io/badge/Obtainium-Download-purple?style=flat-square)](https://api.vayunmathur.com/obtainium-link?name=MusicBrainz&packageName=com.vayunmathur.musicbrainz&apk=musicbrainz-release.apk) |+| **Network Location** | MA-C | [Homepage](https://ma.vayunmathur.com/apps/networklocation) | In Progress | In Progress |+| **Notes** | MA-2 | [Homepage](https://ma.vayunmathur.com/apps/notes) | [![MA Repo](https://img.shields.io/badge/MA_Repo-Download-green?logo=f-droid&style=flat-square)](https://f-droid.org/packages/com.vayunmathur.notes/) | [![Obtainium](https://img.shields.io/badge/Obtainium-Download-purple?style=flat-square)](https://api.vayunmathur.com/obtainium-link?name=Notes&packageName=com.vayunmathur.notes&apk=notes-release.apk) |+| **Office** | MA-1 | [Homepage](https://ma.vayunmathur.com/apps/office) | [![F-Droid](https://img.shields.io/badge/F--Droid-Download-blue?logo=f-droid&style=flat-square)](https://f-droid.org/packages/com.vayunmathur.office) | [![Obtainium](https://img.shields.io/badge/Obtainium-Download-purple?style=flat-square)](https://api.vayunmathur.com/obtainium-link?name=Office&packageName=com.vayunmathur.office&apk=office-release.apk) |+| **Open Assistant** | MA-1 | [Homepage](https://ma.vayunmathur.com/apps/openassistant) | [![F-Droid](https://img.shields.io/badge/F--Droid-Download-blue?logo=f-droid&style=flat-square)](https://f-droid.org/packages/com.vayunmathur.openassistant) | [![Obtainium](https://img.shields.io/badge/Obtainium-Download-purple?style=flat-square)](https://api.vayunmathur.com/obtainium-link?name=OpenAssistant&packageName=com.vayunmathur.openassistant&apk=openassistant-release.apk) |+| **Passwords** | MA-2 | [Homepage](https://ma.vayunmathur.com/apps/passwords) | [![MA Repo](https://img.shields.io/badge/MA_Repo-Download-green?logo=f-droid&style=flat-square)](https://f-droid.org/packages/com.vayunmathur.passwords/) | [![Obtainium](https://img.shields.io/badge/Obtainium-Download-purple?style=flat-square)](https://api.vayunmathur.com/obtainium-link?name=Passwords&packageName=com.vayunmathur.passwords&apk=passwords-release.apk) |+| **PDF Reader** | MA-1 | [Homepage](https://ma.vayunmathur.com/apps/pdf) | [![F-Droid](https://img.shields.io/badge/F--Droid-Download-blue?logo=f-droid&style=flat-square)](https://f-droid.org/packages/com.vayunmathur.pdf) | [![Obtainium](https://img.shields.io/badge/Obtainium-Download-purple?style=flat-square)](https://api.vayunmathur.com/obtainium-link?name=PDF&packageName=com.vayunmathur.pdf&apk=pdf-release.apk) |+| **Photos** | MA-1 | [Homepage](https://ma.vayunmathur.com/apps/photos) | [![F-Droid](https://img.shields.io/badge/F--Droid-Download-blue?logo=f-droid&style=flat-square)](https://f-droid.org/packages/com.vayunmathur.photos) | [![Obtainium](https://img.shields.io/badge/Obtainium-Download-purple?style=flat-square)](https://api.vayunmathur.com/obtainium-link?name=Photos&packageName=com.vayunmathur.photos&apk=photos-release.apk) |+| **Safe Family** | MA-C | [Homepage](https://ma.vayunmathur.com/apps/safefamily) | In Progress | In Progress |+| **Setup Wizard** | MA-C | [Homepage](https://ma.vayunmathur.com/apps/setupwizard) | In Progress | In Progress |+| **Share** | MA-2 | [Homepage](https://ma.vayunmathur.com/apps/share) | In Progress | In Progress |+| **Speech Recognizer** | MA-2 | [Homepage](https://ma.vayunmathur.com/apps/speech) | [![MA Repo](https://img.shields.io/badge/MA_Repo-Download-green?logo=f-droid&style=flat-square)](https://f-droid.org/packages/com.vayunmathur.speech/) | [![Obtainium](https://img.shields.io/badge/Obtainium-Download-purple?style=flat-square)](https://api.vayunmathur.com/obtainium-link?name=Speech%20Recognizer&packageName=com.vayunmathur.speech&apk=speech-release.apk) |+| **Taxi (US and Canada only)** | MA-E | [Homepage](https://ma.vayunmathur.com/apps/taxi) | [![MA Repo](https://img.shields.io/badge/MA_Repo-Download-green?logo=f-droid&style=flat-square)](https://ma.vayunmathur.com/fdroid) | [![Obtainium](https://img.shields.io/badge/Obtainium-Download-purple?style=flat-square)](https://api.vayunmathur.com/obtainium-link?name=Taxi&packageName=com.vayunmathur.taxi&apk=taxi-release.apk) |+| **Things** | MA-3 | [Homepage](https://ma.vayunmathur.com/apps/things) | [![MA Repo](https://img.shields.io/badge/MA_Repo-Download-green?logo=f-droid&style=flat-square)](https://f-droid.org/packages/com.vayunmathur.things/) | [![Obtainium](https://img.shields.io/badge/Obtainium-Download-purple?style=flat-square)](https://api.vayunmathur.com/obtainium-link?name=Things&packageName=com.vayunmathur.things&apk=things-release.apk) |+| **Translate** | MA-2 | [Homepage](https://ma.vayunmathur.com/apps/translate) | [![MA Repo](https://img.shields.io/badge/MA_Repo-Download-green?logo=f-droid&style=flat-square)](https://f-droid.org/packages/com.vayunmathur.translate/) | [![Obtainium](https://img.shields.io/badge/Obtainium-Download-purple?style=flat-square)](https://api.vayunmathur.com/obtainium-link?name=Translate&packageName=com.vayunmathur.translate&apk=translate-release.apk) |+| **Travel** | MA-E | [Homepage](https://ma.vayunmathur.com/apps/travel) | In Progress | In Progress |+| **Tuner** | MA-3 | [Homepage](https://ma.vayunmathur.com/apps/tuner) | In Progress | In Progress |+| **Updater** | MA-C | [Homepage](https://ma.vayunmathur.com/apps/updater) | In Progress | In Progress |+| **VPN** | MA-2 | [Homepage](https://ma.vayunmathur.com/apps/vpn) | [![MA Repo](https://img.shields.io/badge/MA_Repo-Download-green?logo=f-droid&style=flat-square)](https://f-droid.org/packages/com.vayunmathur.vpn/) | [![Obtainium](https://img.shields.io/badge/Obtainium-Download-purple?style=flat-square)](https://api.vayunmathur.com/obtainium-link?name=VPN&packageName=com.vayunmathur.vpn&apk=vpn-release.apk) |+| **Weather** | MA-2 | [Homepage](https://ma.vayunmathur.com/apps/weather) | [![F-Droid](https://img.shields.io/badge/F--Droid-Download-blue?logo=f-droid&style=flat-square)](https://f-droid.org/packages/com.vayunmathur.weather) | [![Obtainium](https://img.shields.io/badge/Obtainium-Download-purple?style=flat-square)](https://api.vayunmathur.com/obtainium-link?name=Weather&packageName=com.vayunmathur.weather&apk=weather-release.apk) |+| **Web** | MA-2 | [Homepage](https://ma.vayunmathur.com/apps/web) | [![MA Repo](https://img.shields.io/badge/MA_Repo-Download-green?logo=f-droid&style=flat-square)](https://f-droid.org/packages/com.vayunmathur.web/) | [![Obtainium](https://img.shields.io/badge/Obtainium-Download-purple?style=flat-square)](https://api.vayunmathur.com/obtainium-link?name=Web&packageName=com.vayunmathur.web&apk=web-release.apk) |+| **YouPipe** | MA-1 | [Homepage](https://ma.vayunmathur.com/apps/youpipe) | [![F-Droid](https://img.shields.io/badge/F--Droid-Download-blue?logo=f-droid&style=flat-square)](https://f-droid.org/packages/com.vayunmathur.youpipe) | [![Obtainium](https://img.shields.io/badge/Obtainium-Download-purple?style=flat-square)](https://api.vayunmathur.com/obtainium-link?name=YouPipe&packageName=com.vayunmathur.youpipe&apk=youpipe-release.apk) |+| **Games Hub** | MA-G | [Homepage](https://ma.vayunmathur.com/apps/games-hub) | [![MA Repo](https://img.shields.io/badge/MA_Repo-Download-green?logo=f-droid&style=flat-square)](https://f-droid.org/packages/com.vayunmathur.games.hub/) | [![Obtainium](https://img.shields.io/badge/Obtainium-Download-purple?style=flat-square)](https://api.vayunmathur.com/obtainium-link?name=Games%20Hub&packageName=com.vayunmathur.games.hub&apk=hub-release.apk) |+| **Alchemist** | MA-G | [Homepage](https://ma.vayunmathur.com/apps/games-alchemist) | In Progress | In Progress |+| **Arrows** | MA-G | [Homepage](https://ma.vayunmathur.com/apps/games-arrows) | In Progress | In Progress |+| **Chess** | MA-G | [Homepage](https://ma.vayunmathur.com/apps/games-chess) | [![MA Repo](https://img.shields.io/badge/MA_Repo-Download-green?logo=f-droid&style=flat-square)](https://f-droid.org/packages/com.vayunmathur.games.chess/) | [![Obtainium](https://img.shields.io/badge/Obtainium-Download-purple?style=flat-square)](https://api.vayunmathur.com/obtainium-link?name=Chess&packageName=com.vayunmathur.games.chess&apk=chess-release.apk) |+| **Logic Gate** | MA-G | [Homepage](https://ma.vayunmathur.com/apps/games-logicgate) | In Progress | In Progress |+| **Minesweeper** | MA-G | [Homepage](https://ma.vayunmathur.com/apps/games-minesweeper) | In Progress | In Progress |+| **Nonogram** | MA-G | [Homepage](https://ma.vayunmathur.com/apps/games-nonogram) | In Progress | In Progress |+| **Pipes** | MA-G | [Homepage](https://ma.vayunmathur.com/apps/games-pipes) | [![MA Repo](https://img.shields.io/badge/MA_Repo-Download-green?logo=f-droid&style=flat-square)](https://f-droid.org/packages/com.vayunmathur.games.pipes/) | [![Obtainium](https://img.shields.io/badge/Obtainium-Download-purple?style=flat-square)](https://api.vayunmathur.com/obtainium-link?name=Pipes&packageName=com.vayunmathur.games.pipes&apk=pipes-release.apk) |+| **Solitaire** | MA-G | [Homepage](https://ma.vayunmathur.com/apps/games-solitaire) | [![MA Repo](https://img.shields.io/badge/MA_Repo-Download-green?logo=f-droid&style=flat-square)](https://f-droid.org/packages/com.vayunmathur.games.solitaire/) | [![Obtainium](https://img.shields.io/badge/Obtainium-Download-purple?style=flat-square)](https://api.vayunmathur.com/obtainium-link?name=Solitaire&packageName=com.vayunmathur.games.solitaire&apk=solitaire-release.apk) |+| **Sudoku** | MA-G | [Homepage](https://ma.vayunmathur.com/apps/games-sudoku) | In Progress | In Progress |+| **Unblock Jam** | MA-G | [Homepage](https://ma.vayunmathur.com/apps/games-unblockjam) | [![MA Repo](https://img.shields.io/badge/MA_Repo-Download-green?logo=f-droid&style=flat-square)](https://f-droid.org/packages/com.vayunmathur.games.unblockjam/) | [![Obtainium](https://img.shields.io/badge/Obtainium-Download-purple?style=flat-square)](https://api.vayunmathur.com/obtainium-link?name=Unblock%20Jam&packageName=com.vayunmathur.games.unblockjam&apk=unblockjam-release.apk) |+| **Voxels** | MA-G | [Homepage](https://ma.vayunmathur.com/apps/games-voxels) | In Progress | In Progress |+| **Word Maker** | MA-G | [Homepage](https://ma.vayunmathur.com/apps/games-wordmaker) | [![MA Repo](https://img.shields.io/badge/MA_Repo-Download-green?logo=f-droid&style=flat-square)](https://f-droid.org/packages/com.vayunmathur.games.wordmaker/) | [![Obtainium](https://img.shields.io/badge/Obtainium-Download-purple?style=flat-square)](https://api.vayunmathur.com/obtainium-link?name=Word%20Maker&packageName=com.vayunmathur.games.wordmaker&apk=wordmaker-release.apk) |  # Contributions 
compile_p24.log
diff --git a/compile_p24.log b/compile_p24.lognew file mode 100644index 0000000000..5ae4345093--- /dev/null+++ b/compile_p24.log@@ -0,0 +1,94 @@+Reusing configuration cache.+> Task :library:ui:preBuild UP-TO-DATE+> Task :library:image:preBuild UP-TO-DATE+> Task :library:network:preBuild UP-TO-DATE+> Task :sdk:games:preBuild UP-TO-DATE+> Task :library:preBuild UP-TO-DATE+> Task :library:ui:preReleaseBuild UP-TO-DATE+> Task :library:image:preReleaseBuild UP-TO-DATE+> Task :library:downloadservice:preBuild UP-TO-DATE+> Task :library:preReleaseBuild UP-TO-DATE+> Task :library:network:preReleaseBuild UP-TO-DATE+> Task :sdk:games:preReleaseBuild UP-TO-DATE+> Task :maps:generateDevLauncherIcon UP-TO-DATE+> Task :library:downloadservice:preReleaseBuild UP-TO-DATE+> Task :library:processReleaseNavigationResources UP-TO-DATE+> Task :library:generateReleaseResources UP-TO-DATE+> Task :library:extractReleaseSupportedLocales UP-TO-DATE+> Task :sdk:games:processReleaseNavigationResources UP-TO-DATE+> Task :library:image:extractReleaseSupportedLocales UP-TO-DATE+> Task :library:network:extractReleaseSupportedLocales UP-TO-DATE+> Task :library:javaPreCompileRelease UP-TO-DATE+> Task :sdk:games:generateReleaseResources UP-TO-DATE+> Task :library:ui:extractReleaseSupportedLocales UP-TO-DATE+> Task :sdk:games:javaPreCompileRelease UP-TO-DATE+> Task :sdk:games:extractReleaseSupportedLocales UP-TO-DATE+> Task :library:downloadservice:processReleaseNavigationResources UP-TO-DATE+> Task :library:downloadservice:extractReleaseSupportedLocales UP-TO-DATE+> Task :library:network:processReleaseNavigationResources UP-TO-DATE+> Task :library:image:processReleaseNavigationResources UP-TO-DATE+> Task :library:downloadservice:javaPreCompileRelease UP-TO-DATE+> Task :library:ui:processReleaseNavigationResources UP-TO-DATE+> Task :library:image:generateReleaseResources UP-TO-DATE+> Task :library:downloadservice:generateReleaseResources UP-TO-DATE+> Task :library:network:generateReleaseResources UP-TO-DATE+> Task :library:network:javaPreCompileRelease UP-TO-DATE+> Task :library:image:javaPreCompileRelease UP-TO-DATE+> Task :maps:cargoBuild_arm64_v8a UP-TO-DATE+> Task :library:ui:generateReleaseResources UP-TO-DATE+> Task :library:ui:javaPreCompileRelease UP-TO-DATE+> Task :maps:cargoNdkBuild UP-TO-DATE+> Task :maps:preBuild UP-TO-DATE+> Task :maps:preDevBuild UP-TO-DATE+> Task :library:packageReleaseResources UP-TO-DATE+> Task :maps:generateDevBuildConfig UP-TO-DATE+> Task :sdk:games:packageReleaseResources UP-TO-DATE+> Task :library:downloadservice:packageReleaseResources UP-TO-DATE+> Task :library:network:packageReleaseResources UP-TO-DATE+> Task :library:parseReleaseLocalResources UP-TO-DATE+> Task :sdk:games:parseReleaseLocalResources UP-TO-DATE+> Task :library:ui:packageReleaseResources UP-TO-DATE+> Task :library:image:packageReleaseResources UP-TO-DATE+> Task :library:downloadservice:parseReleaseLocalResources UP-TO-DATE+> Task :library:network:parseReleaseLocalResources UP-TO-DATE+> Task :library:image:parseReleaseLocalResources UP-TO-DATE+> Task :library:ui:parseReleaseLocalResources UP-TO-DATE+> Task :sdk:games:generateReleaseRFile UP-TO-DATE+> Task :library:generateReleaseRFile UP-TO-DATE+> Task :library:downloadservice:generateReleaseRFile UP-TO-DATE+> Task :library:network:generateReleaseRFile UP-TO-DATE+> Task :library:image:generateReleaseRFile UP-TO-DATE+> Task :library:ui:generateReleaseRFile UP-TO-DATE+> Task :maps:mapDevSourceSetPaths+> Task :maps:extractDevSupportedLocales+> Task :maps:generateDevResources+> Task :maps:generateDevLocaleConfig UP-TO-DATE+> Task :library:network:compileReleaseKotlin UP-TO-DATE+> Task :sdk:games:compileReleaseKotlin UP-TO-DATE+> Task :library:network:compileReleaseJavaWithJavac NO-SOURCE+> Task :sdk:games:compileReleaseJavaWithJavac NO-SOURCE+> Task :library:network:bundleLibCompileToJarRelease UP-TO-DATE+> Task :sdk:games:bundleLibCompileToJarRelease UP-TO-DATE+> Task :maps:processDevNavigationResources+> Task :library:kspReleaseKotlin UP-TO-DATE+> Task :maps:packageDevResources+> Task :library:compileReleaseKotlin UP-TO-DATE+> Task :library:compileReleaseJavaWithJavac NO-SOURCE+> Task :library:bundleLibCompileToJarRelease UP-TO-DATE+> Task :library:downloadservice:compileReleaseKotlin UP-TO-DATE+> Task :library:downloadservice:compileReleaseJavaWithJavac NO-SOURCE+> Task :library:downloadservice:bundleLibCompileToJarRelease UP-TO-DATE+> Task :maps:parseDevLocalResources+> Task :library:ui:compileReleaseKotlin UP-TO-DATE+> Task :library:ui:compileReleaseJavaWithJavac NO-SOURCE+> Task :library:ui:bundleLibCompileToJarRelease UP-TO-DATE+> Task :library:image:compileReleaseKotlin UP-TO-DATE+> Task :library:image:compileReleaseJavaWithJavac NO-SOURCE+> Task :library:image:bundleLibCompileToJarRelease UP-TO-DATE+> Task :maps:generateDevRFile+> Task :maps:kspDevKotlin SKIPPED+> Task :maps:compileDevKotlin++BUILD SUCCESSFUL in 13s+67 actionable tasks: 8 executed, 59 up-to-date+Configuration cache entry reused.
launcher/src/main/java/com/vayunmathur/launcher/ui/HomeConstants.kt
diff --git a/launcher/src/main/java/com/vayunmathur/launcher/ui/HomeConstants.kt b/launcher/src/main/java/com/vayunmathur/launcher/ui/HomeConstants.ktnew file mode 100644index 0000000000..862c28d1f3--- /dev/null+++ b/launcher/src/main/java/com/vayunmathur/launcher/ui/HomeConstants.kt@@ -0,0 +1,36 @@+package com.vayunmathur.launcher.ui++import androidx.compose.ui.unit.dp++/** Drop-target priorities: the hotseat and the drop bar both beat the bare page. */+internal const val PAGE_PRIORITY = 0+internal const val HOTSEAT_PRIORITY = 20++internal const val PREVIEW_ALPHA = 0.12f+internal val PREVIEW_STROKE = 2.dp+internal val HOTSEAT_HEIGHT = 72.dp++/** Past halfway the drawer is the thing in front, and takes the icons with it. */+internal const val DRAWER_INTERACTIVE = 0.5f++/**+ * How far the drawer has to have been dragged for a release to open it.+ *+ * Launcher3's `SUCCESS_TRANSITION_PROGRESS`. Measured against the stock launcher, a slow drag of a+ * third of the screen does not open all-apps there either - short swipes get in through the fling+ * below, which is why that threshold matters far more than this one.+ */+internal const val DRAWER_COMMIT = 0.5f++/** Enough to put the workspace behind the popup, not enough to hide which icon it belongs to. */+internal const val POPUP_SCRIM_ALPHA = 0.32f++/**+ * Past which a swipe counts as a throw rather than a drag.+ *+ * Launcher3's `base_swift_detector_fling_release_velocity`, which is `1dp` compared against a+ * velocity in **px per millisecond** - so a thousand dp per second. Deliberately brisk: the distance+ * threshold above is half the screen, and this is the only other way in, so a value much lower than+ * Launcher3's would open the drawer on swipes meant for the pager.+ */+internal val DRAWER_FLING = 1000.dp
launcher/src/main/java/com/vayunmathur/launcher/ui/HomeContent.kt
diff --git a/launcher/src/main/java/com/vayunmathur/launcher/ui/HomeContent.kt b/launcher/src/main/java/com/vayunmathur/launcher/ui/HomeContent.ktindex 68673ed86e..1660d7469e 100644--- a/launcher/src/main/java/com/vayunmathur/launcher/ui/HomeContent.kt+++ b/launcher/src/main/java/com/vayunmathur/launcher/ui/HomeContent.kt@@ -1,68 +1,21 @@ package com.vayunmathur.launcher.ui  import android.appwidget.AppWidgetHostView-import android.appwidget.AppWidgetProviderInfo-import androidx.activity.compose.BackHandler import androidx.compose.animation.core.Animatable-import androidx.compose.animation.core.animate-import androidx.compose.foundation.background-import androidx.compose.foundation.border-import androidx.compose.foundation.clickable-import androidx.compose.foundation.interaction.MutableInteractionSource-import androidx.compose.foundation.layout.Arrangement-import androidx.compose.foundation.layout.Box-import androidx.compose.foundation.layout.Column-import androidx.compose.foundation.layout.Row-import androidx.compose.foundation.layout.fillMaxSize-import androidx.compose.foundation.layout.fillMaxWidth-import androidx.compose.foundation.layout.height-import androidx.compose.foundation.layout.padding-import androidx.compose.foundation.layout.systemBarsPadding import androidx.compose.foundation.lazy.grid.rememberLazyGridState-import androidx.compose.foundation.pager.HorizontalPager-import androidx.compose.foundation.pager.PagerDefaults import androidx.compose.foundation.pager.rememberPagerState-import androidx.compose.foundation.shape.RoundedCornerShape import androidx.compose.runtime.Composable-import androidx.compose.runtime.DisposableEffect-import androidx.compose.runtime.LaunchedEffect-import androidx.compose.runtime.MutableState-import androidx.compose.runtime.SideEffect import androidx.compose.runtime.derivedStateOf import androidx.compose.runtime.getValue-import androidx.compose.runtime.key import androidx.compose.runtime.mutableFloatStateOf import androidx.compose.runtime.mutableStateOf import androidx.compose.runtime.remember import androidx.compose.runtime.rememberCoroutineScope import androidx.compose.runtime.setValue-import androidx.compose.runtime.withFrameMillis-import androidx.compose.ui.Alignment-import androidx.compose.ui.Modifier-import androidx.compose.ui.draw.alpha-import androidx.compose.ui.draw.clip import androidx.compose.ui.geometry.Offset import androidx.compose.ui.geometry.Rect-import androidx.compose.ui.graphics.graphicsLayer-import androidx.compose.ui.layout.boundsInWindow-import androidx.compose.ui.layout.onGloballyPositioned import androidx.compose.ui.platform.LocalDensity-import androidx.compose.ui.unit.dp-import androidx.lifecycle.Lifecycle-import androidx.lifecycle.compose.LifecycleEventEffect-import com.vayunmathur.launcher.domain.CellRect-import com.vayunmathur.launcher.domain.ContainerRef-import com.vayunmathur.launcher.domain.DropPlan-import com.vayunmathur.launcher.domain.FolderMerge-import com.vayunmathur.launcher.domain.FolderRules-import com.vayunmathur.launcher.domain.GridPreview-import com.vayunmathur.launcher.domain.GridReorder-import com.vayunmathur.launcher.domain.GridSpec-import com.vayunmathur.launcher.domain.LauncherItemType-import com.vayunmathur.launcher.domain.LauncherTuning import com.vayunmathur.launcher.domain.PageCount-import com.vayunmathur.launcher.domain.ReorderDwell-import com.vayunmathur.launcher.domain.WidgetResize import com.vayunmathur.launcher.platform.DrawerActions import com.vayunmathur.launcher.platform.DrawerUiState import com.vayunmathur.launcher.platform.FolderActions@@ -72,50 +25,22 @@ import com.vayunmathur.launcher.platform.ItemMenuActions import com.vayunmathur.launcher.platform.ItemMenuUiState import com.vayunmathur.launcher.platform.WidgetPickerActions import com.vayunmathur.launcher.platform.WidgetPickerUiState-import com.vayunmathur.launcher.platform.WorkspaceItem-import com.vayunmathur.launcher.ui.components.CellLayout-import com.vayunmathur.launcher.ui.components.CellMetrics-import com.vayunmathur.launcher.ui.components.DragFeedback-import com.vayunmathur.launcher.ui.components.DragLayer-import com.vayunmathur.launcher.ui.components.DragPayload-import com.vayunmathur.launcher.ui.components.DropBar import com.vayunmathur.launcher.ui.components.FastScrollStrip-import com.vayunmathur.launcher.ui.components.HostedWidget-import com.vayunmathur.launcher.ui.components.LauncherIconSize-import com.vayunmathur.launcher.ui.components.LauncherItemIcon-import com.vayunmathur.launcher.ui.components.LauncherPopup import com.vayunmathur.launcher.ui.components.LocalLauncherDrag-import com.vayunmathur.launcher.ui.components.MergeRing-import com.vayunmathur.launcher.ui.components.MissingWidget-import com.vayunmathur.launcher.ui.components.PageEdgeDwell-import com.vayunmathur.launcher.ui.components.PageIndicator-import com.vayunmathur.launcher.ui.components.VerticalSwipe-import com.vayunmathur.launcher.ui.components.WidgetResizeFrame-import com.vayunmathur.launcher.ui.components.cell-import com.vayunmathur.launcher.ui.components.dragSource-import com.vayunmathur.launcher.ui.components.dropTarget-import com.vayunmathur.launcher.ui.components.launcherDragInput-import com.vayunmathur.launcher.ui.components.onAppWindowBounds-import com.vayunmathur.launcher.ui.components.reorderPreview-import com.vayunmathur.library.ui.MaterialTheme-import com.vayunmathur.library.ui.ModalBottomSheet import com.vayunmathur.library.ui.Motion-import com.vayunmathur.library.ui.Spacing-import com.vayunmathur.library.ui.animatedFloat-import com.vayunmathur.library.ui.scrim import kotlinx.coroutines.launch  /**  * The home screen: a pager of cell grids, a hotseat, the app drawer and any open folder, and the  * drag machinery over the top.  *- * Everything is in this one composable's root [Box] on purpose. The drawer and an open folder are- * overlays here rather than nav destinations, because that root is what carries- * [launcherDragInput] — the single gesture owner — and a drag can only cross from the drawer to- * the grid, or out of a folder onto the grid, if all three are inside it. Launcher3 arranges its- * `DragLayer` the same way and for the same reason.+ * Everything is in this one composable's root [HomeGestureRoot] on purpose. The drawer and an+ * open folder are overlays here rather than nav destinations, because that root is what carries+ * the single gesture owner — and a drag can only cross from the drawer to the grid, or out of a+ * folder onto the grid, if all three are inside it. Launcher3 arranges its `DragLayer` the same+ * way and for the same reason.  *- * The long-press popups are the exception, and deliberately so: they are [LauncherPopup]s in+ * The long-press popups are the exception, and deliberately so: they are `LauncherPopup`s in  * windows of their own, because a popup that opens *while the finger is still down* cannot share a  * pointer hierarchy with the gesture that opened it. Their scrim is drawn here, with no pointer  * handling of its own, and dismissal belongs to the gesture owner — which is what makes one touch@@ -171,7 +96,9 @@ fun HomeContent(     // the swipe feel far longer than it is.     val drawer = remember { mutableFloatStateOf(if (initialDrawerOpen) 1f else 0f) }     // Where the drawer is animating to once the finger has let go, or null while nothing is.-    var drawerSettle by remember { mutableStateOf<Float?>(null) }+    // A holder, because the settle effect below is the other thing that writes it.+    val drawerSettleState = remember { mutableStateOf<Float?>(null) }+    var drawerSettle by drawerSettleState     var openFolderId by remember { mutableStateOf(initialOpenFolderId) }     // The icon the open folder grew out of, so it can shrink back into it.     var folderAnchor by remember { mutableStateOf(Rect.Zero) }@@ -262,76 +189,18 @@ fun HomeContent(         drawerSettle = to     } -    // The settle, and the only thing that writes `drawer` other than the finger. Restarting it with-    // null is how the finger takes the value back mid-animation.-    LaunchedEffect(drawerSettle) {-        val to = drawerSettle ?: return@LaunchedEffect-        val from = drawer.floatValue-        animate(-            initialValue = from,-            targetValue = to,-            animationSpec = if (to > from) {-                Motion.open(Motion.DrawerOpenMillis)-            } else {-                Motion.close(Motion.DrawerCloseMillis)-            },-        ) { value, _ -> drawer.floatValue = value }-        drawerSettle = null-    }--    // Remembered, not rebuilt: the gesture owner is keyed on this, and a new instance every-    // recomposition would restart the `pointerInput` mid-gesture. State it needs from outside goes-    // through holders rather than being captured, or it would be reading the first composition's-    // values for the life of the screen.-    val shadeAvailable = remember { mutableStateOf(false) }-    SideEffect { shadeAvailable.value = state.canExpandShade }-    val flingThresholdPx = with(density) { DRAWER_FLING.toPx() }-    val drawerSwipe = remember {-        VerticalSwipe(-            claims = { travel ->-                val claimed = if (drawer.floatValue <= 0f) {-                    // Upwards from the workspace opens the drawer; downwards pulls the notification-                    // shade down, but only on a build that can actually do it.-                    travel < 0f || shadeAvailable.value-                } else {-                    // Downwards closes it, but only from the top of the list - anywhere else the-                    // swipe is the list's own scrolling, and claiming it here would take that away.-                    travel > 0f &&-                        drawerGridState.firstVisibleItemIndex == 0 &&-                        drawerGridState.firstVisibleItemScrollOffset == 0-                }-                // The finger takes the value back from any settle still running, and carries on from-                // wherever the drawer is now rather than from where the last swipe left it.-                if (claimed) drawerSettle = null-                claimed-            },-            onDrag = { delta ->-                // 1:1 with the finger over the drawer's whole travel, as Launcher3 tracks it: a slow-                // drag of a third of the screen does not open all-apps there either. What makes a-                // *short* swipe enough is the fling below, not a shortened range.-                val range = rootBounds.height-                if (range <= 0f) return@VerticalSwipe-                // Negative delta is upwards, which is more drawer. Written straight through, with no-                // coroutine and nothing to cancel, so no delta can be dropped.-                drawer.floatValue = (drawer.floatValue - delta / range).coerceIn(0f, 1f)-            },-            onRelease = { velocity ->-                val to = when {-                    velocity < -flingThresholdPx -> 1f-                    velocity > flingThresholdPx -> 0f-                    // Neither a throw nor a flick: wherever it was left decides.-                    else -> if (drawer.floatValue > DRAWER_COMMIT) 1f else 0f-                }-                // A downward swipe that never moved the drawer was for the shade. Decided on-                // release rather than on the first frame, so a swipe that changes its mind and goes-                // up still opens the drawer.-                if (to == 0f && drawer.floatValue <= 0f && velocity > 0f) {-                    actions.expandNotificationShade()-                }-                settleDrawer(to)-            },-        )-    }+    val drawerSwipe = rememberDrawerSwipe(+        drawer = drawer,+        drawerGridState = drawerGridState,+        // A lambda, read when the gesture asks: the swipe object is remembered once for the life+        // of the screen, so a value would stay at its first-composition value forever.+        rootBounds = { rootBounds },+        density = density,+        canExpandShade = state.canExpandShade,+        onSettleDrawer = ::settleDrawer,+        onTakeBackSettle = { drawerSettle = null },+        onExpandShade = actions::expandNotificationShade,+    )      // Remembered, all of them, and for the same reason the ones in `HomePage` are: a callable     // reference to a local function is a fresh object on every recomposition, and these go down into@@ -348,879 +217,100 @@ fun HomeContent(     // be resized at all.     val onWidgetDropped = remember { { id: Long -> resizingId = id } } -    // Home is the workspace, always, on every fresh arrival. Launcher3 does this explicitly - it-    // sends itself to NORMAL when re-entered - and without it the drawer outlives the trip: a swipe-    // up into recents is the same upward flick that opens the drawer, so the drawer opens behind the-    // recents screen and is what you land on when you come back.-    LifecycleEventEffect(Lifecycle.Event.ON_STOP) {-        drawerSettle = null-        drawer.floatValue = 0f-    }--    PageEdgeDwell(drag, pagerState, rootBounds.width) { pagerState.animateScrollToPage(it) }--    // The popups' windows are not focusable, so back never reaches them - which is what leaves it-    // here, with the rest of the dismissal logic.-    BackHandler(enabled = popupOpen) { closePopup() }--    // A drag in flight when the home screen goes away has nowhere to be dropped, and leaving the-    // payload set would show a stale drag layer on the way back in.-    DisposableEffect(drag) {-        onDispose { drag.cancel() }-    }--    Box(-        modifier = Modifier-            .fillMaxSize()-            .onGloballyPositioned { rootBounds = it.boundsInWindow() }-            // The one gesture owner. Everything below relies on it consuming nothing until a long-            // press actually fires, or a swipe turns out to be vertical.-            .launcherDragInput(-                controller = drag,-                onDragStart = { payload ->-                    // An app picked up in the drawer, or a shortcut picked up in a popup, needs the-                    // grid it is being dropped onto to be visible, so whatever it came out of gets-                    // out of the way the moment the drag begins.-                    if (payload.itemId == null) settleDrawer(0f)-                    resizingId = null-                },-                onLongPressItem = { payload, anchor ->-                    // The popup, for a widget as for anything else. Launcher3 shows the resize frame-                    // on *drop*, not on long press - see `getWidgetResizeFrameRunnable` - and going-                    // straight to the handles here meant a widget could never be reached by its menu-                    // at all.-                    payload.itemId?.let { openMenu(it, anchor) }-                },-                onLongPressEmpty = ::openOptions,-                // Reading the two state holders rather than the `popupOpen` boolean, which is the-                // difference between a live answer and a dead one: this lambda is captured once, by-                // a `pointerInput` keyed on things that never change, so anything it closes over by-                // value stays at its first-composition value for the life of the screen. Capturing-                // the state delegates instead means the read happens when the gesture asks.-                popupOpen = { menuItemId != null || optionsAnchor != null },-                onDismissPopup = onClosePopup,-                fastScroll = fastScroll,-                verticalSwipe = drawerSwipe,-            ),-    ) {-        Column(-            modifier = Modifier-                .fillMaxSize()-                .systemBarsPadding()-                // Sinking away as the drawer rises, as Launcher3 does. Read inside the layer block-                // rather than outside it, so a frame of the swipe redraws without recomposing the-                // whole workspace.-                .graphicsLayer {-                    val scale = 1f --                        (1f - LauncherTuning.WorkspaceScaleBehindDrawer) * drawer.floatValue-                    scaleX = scale-                    scaleY = scale-                    alpha = 1f - drawer.floatValue-                },-        ) {-            DropBar(-                controller = drag,-                onRemove = { id ->-                    resizingId = null-                    actions.remove(id)-                },-                onUninstall = actions::uninstallItem,-                onAppInfo = actions::openItemInfo,-            )--            HorizontalPager(-                state = pagerState,-                // Disabled for the duration of a drag; page changes come from the edge dwell-                // instead. Leaving it on means the pager and the dragged icon fight over the same-                // horizontal movement.-                userScrollEnabled = !drag.isDragging,-                // The pager's default snap is a spring, which overshoots slightly. A workspace-                // page has weight and does not bounce, so this is `PagedView`'s own curve instead.-                flingBehavior = PagerDefaults.flingBehavior(-                    state = pagerState,-                    snapAnimationSpec = Motion.pageSnap(),-                ),-                modifier = Modifier.fillMaxWidth().weight(1f),-            ) { page ->-                WorkspacePage(-                    state = state,-                    actions = actions,-                    page = page,-                    items = state.pages[page].orEmpty(),-                    resizingId = resizingId,-                    draggable = !overlayOpen,-                    onOpenFolder = onOpenFolder,-                    onEndResize = onEndResize,-                    onWidgetDropped = onWidgetDropped,-                    widgetView = widgetView,-                    updateWidgetSize = updateWidgetSize,-                )-            }--            PageIndicator(-                pageCount = pageCount,-                // A lambda, so a fling redraws the dots without recomposing this column.-                scrollProgress = {-                    pagerState.currentPage + pagerState.currentPageOffsetFraction-                },-                modifier = Modifier.align(Alignment.CenterHorizontally),-            )--            Hotseat(-                state = state,-                actions = actions,-                draggable = !overlayOpen,-                onOpenFolder = onOpenFolder,-            )-        }--        // Drawn, not touched: dismissal is the gesture owner's, so a scrim that swallowed touches-        // would be a second thing arbitrating them.-        if (popupOpen) {-            Box(modifier = Modifier.fillMaxSize().scrim { popup.value * POPUP_SCRIM_ALPHA })-        }--        if (drawerVisible) {-            DrawerContent(-                state = drawerState,-                actions = drawerActions,-                gridState = drawerGridState,-                draggable = drawerShown,-                strip = fastScroll,-                onDismiss = { settleDrawer(0f) },-                // Rising with the swipe and fading in with it, so the wallpaper is still there-                // behind a drawer that is only half up.-                modifier = Modifier.graphicsLayer {-                    translationY = size.height * (1f - drawer.floatValue)-                    alpha = drawer.floatValue-                },-            )-        }--        if (openFolder != null) {-            FolderContent(-                folder = openFolder,-                actions = folderActions,-                showLabels = state.showLabels,-                iconScale = state.iconScale,-                anchor = folderAnchor,-                progress = { folder.value },-                onOpenItemMenu = onOpenMenu,-                onDragLeft = onCloseFolder,-                onDismiss = onCloseFolder,-            )-        }--        // Last, so the dragged item floats above the overlays it may have come out of.-        DragLayer(drag, state.iconScale)-        DragFeedback(drag)-    }--    // The three windows, all outside the gesture-owning root above. Each hosts its content in a-    // window of its own, which is exactly what keeps its rows tappable while the finger that opened-    // it is still down.-    val menuId = menuItemId-    if (menuId != null) {-        LauncherPopup(anchor = menuAnchor) { placement ->-            ItemMenuContent(-                state = itemMenuState,-                actions = itemMenuActions,-                placement = placement,-                progress = { popup.value },-                onDismiss = onClosePopup,-            )-        }-    }--    optionsAnchor?.let { anchor ->-        LauncherPopup(anchor = anchor) { placement ->-            WorkspaceOptionsContent(-                placement = placement,-                progress = { popup.value },-                onPickWallpaper = {-                    closePopup()-                    onPickWallpaper()-                },-                onOpenWidgets = {-                    closePopup()-                    widgetPickerActions.openWidgetPicker()-                },-                onOpenAppsList = {-                    closePopup()-                    settleDrawer(1f)-                },-                onOpenSettings = {-                    closePopup()-                    onOpenSettings()-                },-            )-        }-    }--    if (widgetPickerState.open) {-        ModalBottomSheet(onDismissRequest = widgetPickerActions::closeWidgetPicker) {-            WidgetPickerContent(state = widgetPickerState, actions = widgetPickerActions)-        }-    }-}--/**- * One page of the grid.- *- * Everything transient about a drag over this page lives here rather than in the controller,- * because it is all in *this page's* geometry: which cell the finger is over, which icon it is- * close enough to fold into, and which rearrangement has been dwelt on long enough to commit.- */-@Composable-private fun WorkspacePage(-    state: HomeUiState,-    actions: HomeActions,-    page: Int,-    items: List<WorkspaceItem>,-    resizingId: Long?,-    draggable: Boolean,-    onOpenFolder: (Long, Rect) -> Unit,-    onEndResize: () -> Unit,-    onWidgetDropped: (Long) -> Unit,-    widgetView: (Int) -> AppWidgetHostView?,-    updateWidgetSize: (AppWidgetHostView, Int, Int) -> Unit,-) {-    val drag = LocalLauncherDrag.current-    val density = LocalDensity.current-    var metrics by remember { mutableStateOf(CellMetrics.Empty) }-    var bounds by remember { mutableStateOf(Rect.Zero) }-    val placed = remember(items) { items.associate { it.id to it.rect } }-    val iconSizePx = with(density) { (LauncherIconSize * state.iconScale).toPx() }--    // A resize in progress, previewed exactly as a drag is: the widget's own new rect plus whatever-    // it shoved aside, held here until the handle is released. Launcher3 commits on release too,-    // and it matters more than it sounds - a write per whole-cell step re-emits the workspace and-    // visibly reloads every hosted widget on the page.-    var resizeRect by remember { mutableStateOf<CellRect?>(null) }-    var resizePushed by remember { mutableStateOf<Map<Long, CellRect>>(emptyMap()) }-    LaunchedEffect(resizingId) {-        if (resizingId == null) {-            resizeRect = null-            resizePushed = emptyMap()-        }-    }--    // What a drop would do, and what the finger is close enough to fold into. Both are computed from-    // the controller's live position, so both are recomputed on every frame of a drag - which is why-    // they are computed in a child that draws nothing rather than here. Read here, they would-    // recompose this page and all twenty of its cells sixty times a second.-    val previewed = remember { mutableStateOf<DropPlan?>(null) }-    val merge = remember { mutableStateOf<MergeCandidate?>(null) }-    WorkspaceDragPreview(-        page = page,-        items = items,-        placed = placed,-        spec = state.grid,-        bounds = bounds,-        metrics = metrics,-        iconSizePx = iconSizePx,-        previewed = previewed,-        merge = merge,-    )--    CellLayout(-        spec = state.grid,-        onMetrics = { metrics = it },-        modifier = Modifier-            .fillMaxSize()-            .onGloballyPositioned { bounds = it.boundsInWindow() }-            .dropTarget(-                key = "page-$page",-                priority = PAGE_PRIORITY,-                onDrop = { dropped, at ->-                    val mergeInto = mergeTargetAt(dropped, at, bounds, metrics, items, iconSizePx)-                    val draggedId = dropped.itemId-                    // Asked before the commit, because the answer needs the hosted view and this is-                    // the last point the payload is in hand. `RESIZE_NONE` widgets get no frame --                    // offering handles that cannot move is worse than offering none.-                    val landedResizable = dropped.type == LauncherItemType.APPWIDGET &&-                        mergeInto == null &&-                        dropped.appWidgetId?.let { id ->-                            widgetView(id)?.appWidgetInfo?.resizeMode != AppWidgetProviderInfo.RESIZE_NONE-                        } == true-                    val landing = when {-                        mergeInto != null && draggedId != null -> {-                            actions.mergeIntoFolder(mergeInto.id, draggedId)-                            // Into the icon it is joining, which is what that folder looks like.-                            placed[mergeInto.id]?.let { cellBounds(it, bounds, metrics) }-                        }-                        else -> commitDrop(-                            actions = actions,-                            payload = dropped,-                            page = page,-                            // The dwelt plan, not one recomputed here: the user watched this-                            // arrangement happen, and it is the one that must be written. Only a-                            // drop that landed before the dwell's first frame has nothing to-                            // commit, and refusing that would send the item flying back for no-                            // reason - so it is planned on the spot instead.-                            plan = previewed.value-                                ?: planDrop(dropped, at, bounds, metrics, state.grid, placed, page),-                            bounds = bounds,-                            metrics = metrics,-                        )-                    }-                    if (landedResizable && draggedId != null) onWidgetDropped(draggedId)-                    landing-                },-            ),-    ) {-        // The bare page. A plain clickable rather than another pointerInput: the root gesture owner-        // bows out when nothing draggable is under the finger, so this only ever sees taps on empty-        // wallpaper - and the long press on it is the gesture owner's, not this one's.-        Box(-            modifier = Modifier-                .fillMaxSize()-                .clickable(-                    interactionSource = remember { MutableInteractionSource() },-                    indication = null,-                    onClick = onEndResize,-                ),-        )--        // An outline, and only for a widget. Launcher3 draws no target marker for an icon at all:-        // the neighbours sliding out of the way already say where it is going, and a filled-        // rectangle under a moving icon reads as a second copy of it. No need to exclude a merge-        // here - a widget can never be folded into anything.-        previewed.value-            ?.takeIf { drag.payload?.type == LauncherItemType.APPWIDGET }-            ?.let { plan ->-                Box(-                    modifier = Modifier-                        .cell(plan.target)-                        .padding(Spacing.xs)-                        .border(-                            PREVIEW_STROKE,-                            MaterialTheme.colorScheme.onSurface.copy(alpha = PREVIEW_ALPHA),-                            RoundedCornerShape(12.dp),-                        ),-                )-            }--        items.forEach { item ->-            // Keyed, or a workspace re-emit reuses one item's node - and its hosted-            // AppWidgetHostView - for another item.-            key(item.id) {-                val isResizing = resizingId == item.id-                val rect = when {-                    isResizing -> resizeRect ?: item.rect-                    else -> resizePushed[item.id]-                        ?: previewed.value?.displaced?.get(item.id)-                        ?: item.rect-                }-                WorkspaceCell(-                    item = item,-                    rect = rect,-                    state = state,-                    actions = actions,-                    page = page,-                    metrics = metrics,-                    isResizing = isResizing,-                    // A lambda, read inside the ring's draw block: merge progress changes on every-                    // frame the finger is near an icon, and passing the value would recompose every-                    // cell on the page for each of those frames.-                    mergeProgress = { merge.value?.takeIf { it.id == item.id }?.progress ?: 0f },-                    iconSizePx = iconSizePx,-                    draggable = draggable,-                    onOpenFolder = onOpenFolder,-                    onResizeStep = { candidateRect, edge ->-                        val pushed = WidgetResize.resizeWithPush(-                            spec = state.grid,-                            candidate = candidateRect,-                            others = placed-                                .filterKeys { it != item.id }-                                .mapValues { (id, at) -> resizePushed[id] ?: at },-                            direction = WidgetResize.pushDirection(edge),-                        )-                        if (pushed == null) {-                            false-                        } else {-                            resizeRect = candidateRect-                            resizePushed = resizePushed + pushed-                            true-                        }-                    },-                    onResizeRelease = {-                        resizeRect?.let { actions.resizeItem(item.id, it, resizePushed) }-                    },-                    widgetView = widgetView,-                    updateWidgetSize = updateWidgetSize,-                    modifier = Modifier.cell(rect),-                )-            }-        }-    }-}--/**- * The per-frame half of a drag over this page: what a drop would rearrange, and what it would fold- * into.- *- * Emits nothing. It exists purely so the reads of [LauncherDragController.position] live in a- * composable with no content of its own — a page that read the finger's position directly would- * recompose itself and every one of its cells on every frame of every drag, which is the difference- * between a launcher that keeps up with a finger and one that does not. Results go out through- * [previewed] and [merge], which change far less often than the position does.- */-@Composable-private fun WorkspaceDragPreview(-    page: Int,-    items: List<WorkspaceItem>,-    placed: Map<Long, CellRect>,-    spec: GridSpec,-    bounds: Rect,-    metrics: CellMetrics,-    iconSizePx: Float,-    previewed: MutableState<DropPlan?>,-    merge: MutableState<MergeCandidate?>,-) {-    val drag = LocalLauncherDrag.current-    val payload = drag.payload?.takeIf { !drag.isSettling && bounds.contains(drag.position) }--    // Where the finger is close enough to an icon's centre to fold into it. A rival to the reorder-    // below rather than a drop target of its own: the cell's middle is a folder and the rest of it-    // is a hole in the grid, so one hit test decides which, and leaving the circle restarts the-    // reorder clock.-    val candidateMerge = payload?.let {-        mergeTargetAt(it, drag.position, bounds, metrics, items, iconSizePx)-    }-    merge.value = candidateMerge--    val candidate = payload-        ?.takeIf { candidateMerge == null }-        ?.let { planDrop(it, drag.position, bounds, metrics, spec, placed, page) }--    // The rearrangement is only *committed* after the dwell, which is what stops a drag crossing the-    // page from rearranging every cell it passes over. The committed plan is also what the drop-    // writes: with a dwell the release point is not necessarily the dwelt point.-    val dwell = remember { ReorderDwell(Motion.ReorderTimeoutMillis) }-    LaunchedEffect(candidate, drag.isDragging) {-        if (!drag.isDragging) {-            dwell.reset()-            previewed.value = null-            return@LaunchedEffect-        }-        // One iteration per frame until the dwell is satisfied, so the clock is the same one the-        // animation runs on rather than a wall clock nothing else uses.-        while (!dwell.update(withFrameMillis { it }, candidate)) {-            if (candidate == null) return@LaunchedEffect-        }-        previewed.value = dwell.committed-    }-}--/** One cell's content, plus its drag source. */-@Composable-private fun WorkspaceCell(-    item: WorkspaceItem,-    rect: CellRect,-    state: HomeUiState,-    actions: HomeActions,-    page: Int,-    metrics: CellMetrics,-    isResizing: Boolean,-    mergeProgress: () -> Float,-    iconSizePx: Float,-    draggable: Boolean,-    onOpenFolder: (Long, Rect) -> Unit,-    onResizeStep: (CellRect, WidgetResize.Edge) -> Boolean,-    onResizeRelease: () -> Unit,-    widgetView: (Int) -> AppWidgetHostView?,-    updateWidgetSize: (AppWidgetHostView, Int, Int) -> Unit,-    modifier: Modifier = Modifier,-) {-    val drag = LocalLauncherDrag.current-    val density = LocalDensity.current-    var bounds by remember { mutableStateOf(Rect.Zero) }-    val beingDragged = drag.payload?.itemId == item.id-    // Animated, and held dimmed for the whole settle: the drag layer is still flying towards this-    // cell, and two solid copies of one icon is the artefact that would replace the jump.-    val dim = animatedFloat(-        if (beingDragged) LauncherTuning.DraggedAlpha else 1f,-        Motion.reorder(),+    HomeScreenEffects(+        drag = drag,+        pagerState = pagerState,+        rootWidth = rootBounds.width,+        drawer = drawer,+        drawerSettle = drawerSettleState,+        popupOpen = popupOpen,+        onBack = { closePopup() },     ) -    Box(-        modifier = modifier-            // Pulsing while it stands somewhere provisionally, which is what says the arrangement-            // has not been committed yet. Does nothing once the two rects agree.-            .reorderPreview(from = item.rect, to = rect, iconSizePx = iconSizePx)-            .onAppWindowBounds { bounds = it }-            .dragSource(-                key = item.id,-                // A widget showing its resize frame is still movable: its handles sit on the-                // boundary and claim their own touches on the Main pass, so the interior stays the-                // gesture owner's. Disabling the source here is what made every move-drag on a-                // selected widget resize it instead.-                enabled = draggable,-            ) {-                DragPayload(-                    itemId = item.id,-                    type = item.type,-                    label = item.label,-                    key = item.key,-                    canUninstall = item.canUninstall,-                    appWidgetId = item.appWidgetId,-                    rect = item.rect,-                    origin = item.container,-                    originScreen = page,-                    sourceBounds = bounds,-                )-            }-            // Dimmed while it is the thing being dragged, since the drag layer is already drawing-            // a copy of it under the finger.-            .alpha(dim),-        // Centred, not top-aligned: the icon-and-label group is smaller than the cell it sits in,-        // and a grid of icons pinned to the top of taller cells reads as misaligned.-        contentAlignment = Alignment.Center,-    ) {-        // Always composed, never conditionally: it draws nothing at zero progress, and composing it-        // only when a merge is in flight would mean reading that progress here - which is the read-        // this page goes out of its way not to make.-        MergeRing(scale = state.iconScale, progress = mergeProgress)--        when (item.type) {-            LauncherItemType.APPWIDGET -> {-                val widgetId = item.appWidgetId-                if (widgetId == null) {-                    MissingWidget(item.label)-                } else {-                    HostedWidget(-                        appWidgetId = widgetId,-                        widthDp = with(density) {-                            (metrics.cellWidthPx * rect.spanX).toDp().value.toInt()-                        },-                        heightDp = with(density) {-                            (metrics.cellHeightPx * rect.spanY).toDp().value.toInt()-                        },-                        createView = widgetView,-                        updateSize = updateWidgetSize,-                    )-                }-                if (isResizing) {-                    WidgetResizeFrame(-                        // The previewed rect, not the saved one, so each step measures from the-                        // geometry the user is looking at.-                        rect = rect,-                        cellWidthPx = metrics.cellWidthPx,-                        cellHeightPx = metrics.cellHeightPx,-                        onStep = onResizeStep,-                        onRelease = onResizeRelease,-                        // Sized to the widget; the frame grows itself past these bounds.-                        modifier = Modifier.matchParentSize(),-                    )-                }-            }--            LauncherItemType.FOLDER -> LauncherItemIcon(-                item = item,-                scale = state.iconScale,-                showLabel = state.showLabels,-                modifier = Modifier.clickable { onOpenFolder(item.id, bounds) },-            )--            else -> LauncherItemIcon(-                item = item,-                scale = state.iconScale,-                showLabel = state.showLabels,-                modifier = Modifier.clickable { actions.launchFrom(item, bounds) },-            )-        }-    }-}--/**- * The row that is present on every page.- *- * A rank list rather than a cell grid: the hotseat is one row of fixed slots, so an insert shifts- * its neighbours along — and, once the row is full, pushes the far end of it back onto the- * workspace. See [com.vayunmathur.launcher.domain.HotseatArrange].- */-@Composable-private fun Hotseat(-    state: HomeUiState,-    actions: HomeActions,-    draggable: Boolean,-    onOpenFolder: (Long, Rect) -> Unit,-) {-    Row(-        modifier = Modifier-            .fillMaxWidth()-            .height(HOTSEAT_HEIGHT)-            .padding(horizontal = Spacing.sm),-        horizontalArrangement = Arrangement.spacedBy(Spacing.xs),-        verticalAlignment = Alignment.CenterVertically,-    ) {-        repeat(state.grid.hotseatSlots) { slot ->-            val item = state.hotseat.getOrNull(slot)-            var slotBounds by remember { mutableStateOf(Rect.Zero) }-            Box(-                modifier = Modifier-                    .weight(1f)-                    .fillMaxSize()-                    .onAppWindowBounds { slotBounds = it }-                    .dropTarget(-                        key = "hotseat-$slot",-                        priority = HOTSEAT_PRIORITY,-                        // A widget has a span and the hotseat has none to give it.-                        accepts = { it.type != LauncherItemType.APPWIDGET },-                        onDrop = { payload, _ ->-                            val id = payload.itemId-                            if (id == null) {-                                // Straight from the drawer into a hotseat slot.-                                val key = payload.key-                                if (key == null) {-                                    null-                                } else {-                                    actions.addPendingToHotseat(key, slot)-                                    slotBounds-                                }-                            } else {-                                actions.commitMove(-                                    id,-                                    ContainerRef.Hotseat,-                                    0,-                                    CellRect(slot, 0),-                                    rank = slot,-                                )-                                slotBounds-                            }-                        },-                    ),-                contentAlignment = Alignment.Center,-            ) {-                if (item != null) {-                    key(item.id) { HotseatCell(item, state, actions, draggable, onOpenFolder) }-                }-            }-        }-    }-}--@Composable-private fun HotseatCell(-    item: WorkspaceItem,-    state: HomeUiState,-    actions: HomeActions,-    draggable: Boolean,-    onOpenFolder: (Long, Rect) -> Unit,-) {-    val drag = LocalLauncherDrag.current-    var bounds by remember { mutableStateOf(Rect.Zero) }-    val dim = animatedFloat(-        if (drag.payload?.itemId == item.id) LauncherTuning.DraggedAlpha else 1f,-        Motion.reorder(),-    )-    Box(-        modifier = Modifier-            .fillMaxSize()-            .onAppWindowBounds { bounds = it }-            .dragSource(key = item.id, enabled = draggable) {-                DragPayload(-                    itemId = item.id,-                    type = item.type,-                    label = item.label,-                    key = item.key,-                    canUninstall = item.canUninstall,-                    // The hotseat's "cell" is its slot.-                    rect = CellRect(item.rank, 0),-                    origin = ContainerRef.Hotseat,-                    sourceBounds = bounds,-                )-            }-            .alpha(dim),-        contentAlignment = Alignment.Center,+    HomeGestureRoot(+        drag = drag,+        verticalSwipe = drawerSwipe,+        fastScroll = fastScroll,+        // Reading the two state holders rather than the `popupOpen` boolean, which is the+        // difference between a live answer and a dead one: this lambda is captured once, by+        // a `pointerInput` keyed on things that never change, so anything it closes over by+        // value stays at its first-composition value for the life of the screen. Capturing+        // the state delegates instead means the read happens when the gesture asks.+        popupOpen = { menuItemId != null || optionsAnchor != null },+        onDragStart = { payload ->+            // An app picked up in the drawer, or a shortcut picked up in a popup, needs the+            // grid it is being dropped onto to be visible, so whatever it came out of gets+            // out of the way the moment the drag begins.+            if (payload.itemId == null) settleDrawer(0f)+            resizingId = null+        },+        onLongPressItem = { payload, anchor ->+            // The popup, for a widget as for anything else. Launcher3 shows the resize frame+            // on *drop*, not on long press - see `getWidgetResizeFrameRunnable` - and going+            // straight to the handles here meant a widget could never be reached by its menu+            // at all.+            payload.itemId?.let { openMenu(it, anchor) }+        },+        onLongPressEmpty = ::openOptions,+        onDismissPopup = onClosePopup,+        onBounds = { rootBounds = it },     ) {-        LauncherItemIcon(-            item = item,-            scale = state.iconScale,-            // Labels are dropped in the hotseat: the slots are narrow, and these are the icons-            // seen often enough not to need naming.-            showLabel = false,-            modifier = Modifier.clickable {-                if (item.type == LauncherItemType.FOLDER) {-                    onOpenFolder(item.id, bounds)-                } else {-                    actions.launchFrom(item, bounds)-                }+        HomeWorkspaceColumn(+            state = state,+            actions = actions,+            pagerState = pagerState,+            pageCount = pageCount,+            overlayOpen = overlayOpen,+            drawer = drawer,+            resizingId = resizingId,+            drag = drag,+            onOpenFolder = onOpenFolder,+            onEndResize = onEndResize,+            onWidgetDropped = onWidgetDropped,+            onRemoveItem = { id ->+                resizingId = null+                actions.remove(id)             },+            widgetView = widgetView,+            updateWidgetSize = updateWidgetSize,         )-    }-} -private fun HomeActions.launchFrom(item: WorkspaceItem, bounds: Rect) = launch(-    item,-    bounds.left.toInt(),-    bounds.top.toInt(),-    bounds.right.toInt(),-    bounds.bottom.toInt(),-)--/**- * Writes a finished drag, and returns where the item ended up so it has somewhere to fly to.- *- * A drop that changes nothing writes nothing: with the popup opening on the long press, a drag only- * begins once the finger has moved, but it can still wander away and come back, and a `moveTo` that- * sets the same cell it already had would re-emit the whole workspace for no reason.- */-private fun commitDrop(-    actions: HomeActions,-    payload: DragPayload,-    page: Int,-    plan: DropPlan?,-    bounds: Rect,-    metrics: CellMetrics,-): Rect? {-    val target = plan?.target ?: return null-    val landing = cellBounds(target, bounds, metrics) ?: return null-    val id = payload.itemId--    if (id == null) {-        // Not on the workspace yet: this came out of the drawer or a popup, so the drop creates the-        // row rather than moving one.-        val shortcut = payload.shortcut-        val key = payload.key-        return when {-            shortcut != null -> {-                actions.addPendingShortcutToHome(shortcut, page, target, plan.displaced)-                landing-            }-            key != null -> {-                actions.addPendingToHome(key, page, target, plan.displaced)-                landing-            }-            else -> null-        }-    }--    val unchanged = payload.origin is ContainerRef.Desktop &&-        payload.originScreen == page &&-        payload.rect == target &&-        plan.displaced.isEmpty()-    if (unchanged) return landing--    // The displaced neighbours go in the same commit, so the page never renders a state the-    // preview did not already show.-    actions.commitMove(id, ContainerRef.Desktop, page, target, 0, plan.displaced)-    return landing-}--/**- * What a drop at [at] would do to this page.- *- * The dragged item is excluded from the layout the plan is made against: an item released back- * onto its own cell would otherwise be pushed aside by the hole it is still recorded as filling.- *- * The push direction comes from the item's own origin cell rather than from the pixel path, which- * makes it quantised and sticky for free: it changes only when the wanted cell does, and a cascade- * that flipped direction frame to frame would thrash the page. It is only known for an item already- * on *this* page — an app out of the drawer has no origin cell, and one from another page has one- * that means nothing here, so both fall back to the undirected plan.- */-private fun planDrop(-    payload: DragPayload,-    at: Offset,-    pageBounds: Rect,-    metrics: CellMetrics,-    spec: GridSpec,-    placed: Map<Long, CellRect>,-    page: Int,-): DropPlan? {-    if (metrics.cellWidthPx == 0 || metrics.cellHeightPx == 0) return null-    val (cellX, cellY) = metrics.cellAt(at.x - pageBounds.left, at.y - pageBounds.top)-    val wanted = CellRect(cellX, cellY, payload.rect.spanX, payload.rect.spanY)-    val fromHere = payload.origin is ContainerRef.Desktop && payload.originScreen == page-    val direction = if (fromHere) GridReorder.directionOf(payload.rect, wanted) else null-    return GridPreview.plan(spec, placed, payload.itemId, wanted, direction)-}--/**- * The icon [at] is close enough to the centre of to fold into, or null for a plain reorder.- *- * The icon's centre is taken as its cell's centre. With a label under it the artwork actually sits- * a few pixels higher, which shifts the circle down by less than the tolerance it is measuring.- */-private fun mergeTargetAt(-    payload: DragPayload,-    at: Offset,-    pageBounds: Rect,-    metrics: CellMetrics,-    items: List<WorkspaceItem>,-    iconSizePx: Float,-): MergeCandidate? {-    // An app straight out of the drawer has no row to fold in yet, so it lands on the grid.-    if (payload.itemId == null) return null-    if (metrics.cellWidthPx == 0 || metrics.cellHeightPx == 0) return null--    var best: MergeCandidate? = null-    for (item in items) {-        if (item.id == payload.itemId) continue-        if (!FolderRules.canMerge(payload.type, item.type)) continue-        val centre = cellBounds(item.rect, pageBounds, metrics)?.center ?: continue-        val progress = FolderMerge.mergeProgress(-            dx = at.x - centre.x,-            dy = at.y - centre.y,-            iconSizePx = iconSizePx,-            cellWidthPx = metrics.cellWidthPx.toFloat(),-            cellHeightPx = metrics.cellHeightPx.toFloat(),+        HomeOverlays(+            popupOpen = popupOpen,+            popup = popup,+            drawerVisible = drawerVisible,+            drawerState = drawerState,+            drawerActions = drawerActions,+            drawerGridState = drawerGridState,+            drawerShown = drawerShown,+            fastScroll = fastScroll,+            drawer = drawer,+            onDismissDrawer = { settleDrawer(0f) },+            openFolder = openFolder,+            folderActions = folderActions,+            showLabels = state.showLabels,+            iconScale = state.iconScale,+            folderAnchor = folderAnchor,+            folder = folder,+            onOpenMenu = onOpenMenu,+            onCloseFolder = onCloseFolder,+            drag = drag,         )-        if (progress > (best?.progress ?: 0f)) best = MergeCandidate(item.id, progress)     }-    return best-}--/** The icon a drag is close enough to fold into, and how close - which is what the ring shows. */-private data class MergeCandidate(val id: Long, val progress: Float) -/**- * Where a cell is on screen, so a dropped item has somewhere to fly to.- *- * The leftover pixels [CellLayout] spreads over its leading cells are ignored here: only this- * rect's centre is used, and the difference is a couple of pixels at the far edge of the grid.- */-private fun cellBounds(rect: CellRect, pageBounds: Rect, metrics: CellMetrics): Rect? {-    if (metrics.cellWidthPx == 0 || metrics.cellHeightPx == 0) return null-    return Rect(-        left = pageBounds.left + rect.cellX * metrics.cellWidthPx.toFloat(),-        top = pageBounds.top + rect.cellY * metrics.cellHeightPx.toFloat(),-        right = pageBounds.left + rect.right * metrics.cellWidthPx.toFloat(),-        bottom = pageBounds.top + rect.bottom * metrics.cellHeightPx.toFloat(),+    HomePopups(+        menuItemId = menuItemId,+        menuAnchor = menuAnchor,+        itemMenuState = itemMenuState,+        itemMenuActions = itemMenuActions,+        popup = popup,+        onClosePopup = onClosePopup,+        optionsAnchor = optionsAnchor,+        onPickWallpaper = onPickWallpaper,+        widgetPickerActions = widgetPickerActions,+        onOpenSettings = onOpenSettings,+        settleDrawer = ::settleDrawer,+        closePopup = ::closePopup,+        widgetPickerState = widgetPickerState,     ) }--/** Drop-target priorities: the hotseat and the drop bar both beat the bare page. */-private const val PAGE_PRIORITY = 0-private const val HOTSEAT_PRIORITY = 20--private const val PREVIEW_ALPHA = 0.12f-private val PREVIEW_STROKE = 2.dp-private val HOTSEAT_HEIGHT = 72.dp--/** Past halfway the drawer is the thing in front, and takes the icons with it. */-private const val DRAWER_INTERACTIVE = 0.5f--/**- * How far the drawer has to have been dragged for a release to open it.- *- * Launcher3's `SUCCESS_TRANSITION_PROGRESS`. Measured against the stock launcher, a slow drag of a- * third of the screen does not open all-apps there either - short swipes get in through the fling- * below, which is why that threshold matters far more than this one.- */-private const val DRAWER_COMMIT = 0.5f--/** Enough to put the workspace behind the popup, not enough to hide which icon it belongs to. */-private const val POPUP_SCRIM_ALPHA = 0.32f--/**- * Past which a swipe counts as a throw rather than a drag.- *- * Launcher3's `base_swift_detector_fling_release_velocity`, which is `1dp` compared against a- * velocity in **px per millisecond** - so a thousand dp per second. Deliberately brisk: the distance- * threshold above is half the screen, and this is the only other way in, so a value much lower than- * Launcher3's would open the drawer on swipes meant for the pager.- */-private val DRAWER_FLING = 1000.dp
launcher/src/main/java/com/vayunmathur/launcher/ui/HomeDrawerSwipe.kt
diff --git a/launcher/src/main/java/com/vayunmathur/launcher/ui/HomeDrawerSwipe.kt b/launcher/src/main/java/com/vayunmathur/launcher/ui/HomeDrawerSwipe.ktnew file mode 100644index 0000000000..14d9102b78--- /dev/null+++ b/launcher/src/main/java/com/vayunmathur/launcher/ui/HomeDrawerSwipe.kt@@ -0,0 +1,77 @@+package com.vayunmathur.launcher.ui++import androidx.compose.foundation.lazy.grid.LazyGridState+import androidx.compose.runtime.Composable+import androidx.compose.runtime.MutableFloatState+import androidx.compose.runtime.SideEffect+import androidx.compose.runtime.mutableStateOf+import androidx.compose.runtime.remember+import androidx.compose.ui.geometry.Rect+import androidx.compose.ui.unit.Density+import com.vayunmathur.launcher.ui.components.VerticalSwipe++@Composable+internal fun rememberDrawerSwipe(+    drawer: MutableFloatState,+    drawerGridState: LazyGridState,+    rootBounds: () -> Rect,+    density: Density,+    canExpandShade: Boolean,+    onSettleDrawer: (Float) -> Unit,+    onTakeBackSettle: () -> Unit,+    onExpandShade: () -> Unit,+): VerticalSwipe {+    // Remembered, not rebuilt: the gesture owner is keyed on this, and a new instance every+    // recomposition would restart the `pointerInput` mid-gesture. State it needs from outside goes+    // through holders rather than being captured, or it would be reading the first composition's+    // values for the life of the screen.+    val shadeAvailable = remember { mutableStateOf(false) }+    SideEffect { shadeAvailable.value = canExpandShade }+    val flingThresholdPx = with(density) { DRAWER_FLING.toPx() }+    return remember {+        VerticalSwipe(+            claims = { travel ->+                val claimed = if (drawer.floatValue <= 0f) {+                    // Upwards from the workspace opens the drawer; downwards pulls the notification+                    // shade down, but only on a build that can actually do it.+                    travel < 0f || shadeAvailable.value+                } else {+                    // Downwards closes it, but only from the top of the list - anywhere else the+                    // swipe is the list's own scrolling, and claiming it here would take that away.+                    travel > 0f &&+                        drawerGridState.firstVisibleItemIndex == 0 &&+                        drawerGridState.firstVisibleItemScrollOffset == 0+                }+                // The finger takes the value back from any settle still running, and carries on from+                // wherever the drawer is now rather than from where the last swipe left it.+                if (claimed) onTakeBackSettle()+                claimed+            },+            onDrag = { delta ->+                // 1:1 with the finger over the drawer's whole travel, as Launcher3 tracks it: a slow+                // drag of a third of the screen does not open all-apps there either. What makes a+                // *short* swipe enough is the fling below, not a shortened range.+                val range = rootBounds().height+                if (range <= 0f) return@VerticalSwipe+                // Negative delta is upwards, which is more drawer. Written straight through, with no+                // coroutine and nothing to cancel, so no delta can be dropped.+                drawer.floatValue = (drawer.floatValue - delta / range).coerceIn(0f, 1f)+            },+            onRelease = { velocity ->+                val to = when {+                    velocity < -flingThresholdPx -> 1f+                    velocity > flingThresholdPx -> 0f+                    // Neither a throw nor a flick: wherever it was left decides.+                    else -> if (drawer.floatValue > DRAWER_COMMIT) 1f else 0f+                }+                // A downward swipe that never moved the drawer was for the shade. Decided on+                // release rather than on the first frame, so a swipe that changes its mind and goes+                // up still opens the drawer.+                if (to == 0f && drawer.floatValue <= 0f && velocity > 0f) {+                    onExpandShade()+                }+                onSettleDrawer(to)+            },+        )+    }+}
launcher/src/main/java/com/vayunmathur/launcher/ui/HomeDropLogic.kt
diff --git a/launcher/src/main/java/com/vayunmathur/launcher/ui/HomeDropLogic.kt b/launcher/src/main/java/com/vayunmathur/launcher/ui/HomeDropLogic.ktnew file mode 100644index 0000000000..8659dcd673--- /dev/null+++ b/launcher/src/main/java/com/vayunmathur/launcher/ui/HomeDropLogic.kt@@ -0,0 +1,124 @@+package com.vayunmathur.launcher.ui++import androidx.compose.ui.geometry.Offset+import androidx.compose.ui.geometry.Rect+import com.vayunmathur.launcher.domain.CellRect+import com.vayunmathur.launcher.domain.ContainerRef+import com.vayunmathur.launcher.domain.DropPlan+import com.vayunmathur.launcher.domain.FolderMerge+import com.vayunmathur.launcher.domain.FolderRules+import com.vayunmathur.launcher.domain.GridPreview+import com.vayunmathur.launcher.domain.GridReorder+import com.vayunmathur.launcher.domain.GridSpec+import com.vayunmathur.launcher.platform.HomeActions+import com.vayunmathur.launcher.platform.WorkspaceItem+import com.vayunmathur.launcher.ui.components.CellLayout+import com.vayunmathur.launcher.ui.components.CellMetrics+import com.vayunmathur.launcher.ui.components.DragPayload++internal fun commitDrop(+    actions: HomeActions,+    payload: DragPayload,+    page: Int,+    plan: DropPlan?,+    bounds: Rect,+    metrics: CellMetrics,+): Rect? {+    val target = plan?.target ?: return null+    val landing = cellBounds(target, bounds, metrics) ?: return null+    val id = payload.itemId++    if (id == null) {+        // Not on the workspace yet: this came out of the drawer or a popup, so the drop creates the+        // row rather than moving one.+        val shortcut = payload.shortcut+        val key = payload.key+        return when {+            shortcut != null -> {+                actions.addPendingShortcutToHome(shortcut, page, target, plan.displaced)+                landing+            }+            key != null -> {+                actions.addPendingToHome(key, page, target, plan.displaced)+                landing+            }+            else -> null+        }+    }++    val unchanged = payload.origin is ContainerRef.Desktop &&+        payload.originScreen == page &&+        payload.rect == target &&+        plan.displaced.isEmpty()+    if (unchanged) return landing++    // The displaced neighbours go in the same commit, so the page never renders a state the+    // preview did not already show.+    actions.commitMove(id, ContainerRef.Desktop, page, target, 0, plan.displaced)+    return landing+}++internal fun planDrop(+    payload: DragPayload,+    at: Offset,+    pageBounds: Rect,+    metrics: CellMetrics,+    spec: GridSpec,+    placed: Map<Long, CellRect>,+    page: Int,+): DropPlan? {+    if (metrics.cellWidthPx == 0 || metrics.cellHeightPx == 0) return null+    val (cellX, cellY) = metrics.cellAt(at.x - pageBounds.left, at.y - pageBounds.top)+    val wanted = CellRect(cellX, cellY, payload.rect.spanX, payload.rect.spanY)+    val fromHere = payload.origin is ContainerRef.Desktop && payload.originScreen == page+    val direction = if (fromHere) GridReorder.directionOf(payload.rect, wanted) else null+    return GridPreview.plan(spec, placed, payload.itemId, wanted, direction)+}++internal fun mergeTargetAt(+    payload: DragPayload,+    at: Offset,+    pageBounds: Rect,+    metrics: CellMetrics,+    items: List<WorkspaceItem>,+    iconSizePx: Float,+): MergeCandidate? {+    // An app straight out of the drawer has no row to fold in yet, so it lands on the grid.+    if (payload.itemId == null) return null+    if (metrics.cellWidthPx == 0 || metrics.cellHeightPx == 0) return null++    var best: MergeCandidate? = null+    for (item in items) {+        if (item.id == payload.itemId) continue+        if (!FolderRules.canMerge(payload.type, item.type)) continue+        val centre = cellBounds(item.rect, pageBounds, metrics)?.center ?: continue+        val progress = FolderMerge.mergeProgress(+            dx = at.x - centre.x,+            dy = at.y - centre.y,+            iconSizePx = iconSizePx,+            cellWidthPx = metrics.cellWidthPx.toFloat(),+            cellHeightPx = metrics.cellHeightPx.toFloat(),+        )+        if (progress > (best?.progress ?: 0f)) best = MergeCandidate(item.id, progress)+    }+    return best+}++/** The icon a drag is close enough to fold into, and how close - which is what the ring shows. */+internal data class MergeCandidate(val id: Long, val progress: Float)++/**+ * Where a cell is on screen, so a dropped item has somewhere to fly to.+ *+ * The leftover pixels [CellLayout] spreads over its leading cells are ignored here: only this+ * rect's centre is used, and the difference is a couple of pixels at the far edge of the grid.+ */+internal fun cellBounds(rect: CellRect, pageBounds: Rect, metrics: CellMetrics): Rect? {+    if (metrics.cellWidthPx == 0 || metrics.cellHeightPx == 0) return null+    return Rect(+        left = pageBounds.left + rect.cellX * metrics.cellWidthPx.toFloat(),+        top = pageBounds.top + rect.cellY * metrics.cellHeightPx.toFloat(),+        right = pageBounds.left + rect.right * metrics.cellWidthPx.toFloat(),+        bottom = pageBounds.top + rect.bottom * metrics.cellHeightPx.toFloat(),+    )+}
launcher/src/main/java/com/vayunmathur/launcher/ui/HomeGestureRoot.kt
diff --git a/launcher/src/main/java/com/vayunmathur/launcher/ui/HomeGestureRoot.kt b/launcher/src/main/java/com/vayunmathur/launcher/ui/HomeGestureRoot.ktnew file mode 100644index 0000000000..2580fe53bb--- /dev/null+++ b/launcher/src/main/java/com/vayunmathur/launcher/ui/HomeGestureRoot.kt@@ -0,0 +1,58 @@+package com.vayunmathur.launcher.ui++import androidx.compose.foundation.layout.Box+import androidx.compose.foundation.layout.BoxScope+import androidx.compose.foundation.layout.fillMaxSize+import androidx.compose.runtime.Composable+import androidx.compose.ui.Modifier+import androidx.compose.ui.geometry.Offset+import androidx.compose.ui.geometry.Rect+import androidx.compose.ui.layout.boundsInWindow+import androidx.compose.ui.layout.onGloballyPositioned+import com.vayunmathur.launcher.ui.components.DragPayload+import com.vayunmathur.launcher.ui.components.FastScrollStrip+import com.vayunmathur.launcher.ui.components.LauncherDragController+import com.vayunmathur.launcher.ui.components.VerticalSwipe+import com.vayunmathur.launcher.ui.components.launcherDragInput++/**+ * The one gesture owner.+ *+ * The drawer and an open folder are overlays inside this root rather than nav destinations,+ * because a drag can only cross from the drawer to the grid, or out of a folder onto the grid,+ * if all three are inside the composition that carries [launcherDragInput]. Launcher3 arranges+ * its `DragLayer` the same way and for the same reason.+ *+ * Everything below relies on it consuming nothing until a long press actually fires, or a swipe+ * turns out to be vertical.+ */+@Composable+internal fun HomeGestureRoot(+    drag: LauncherDragController,+    verticalSwipe: VerticalSwipe,+    fastScroll: FastScrollStrip,+    popupOpen: () -> Boolean,+    onDragStart: (DragPayload) -> Unit,+    onLongPressItem: (DragPayload, Rect) -> Unit,+    onLongPressEmpty: (Offset) -> Unit,+    onDismissPopup: () -> Unit,+    onBounds: (Rect) -> Unit,+    content: @Composable BoxScope.() -> Unit,+) {+    Box(+        modifier = Modifier+            .fillMaxSize()+            .onGloballyPositioned { onBounds(it.boundsInWindow()) }+            .launcherDragInput(+                controller = drag,+                onDragStart = onDragStart,+                onLongPressItem = onLongPressItem,+                onLongPressEmpty = onLongPressEmpty,+                popupOpen = popupOpen,+                onDismissPopup = onDismissPopup,+                fastScroll = fastScroll,+                verticalSwipe = verticalSwipe,+            ),+        content = content,+    )+}
launcher/src/main/java/com/vayunmathur/launcher/ui/HomeLaunch.kt
diff --git a/launcher/src/main/java/com/vayunmathur/launcher/ui/HomeLaunch.kt b/launcher/src/main/java/com/vayunmathur/launcher/ui/HomeLaunch.ktnew file mode 100644index 0000000000..875ca00ecf--- /dev/null+++ b/launcher/src/main/java/com/vayunmathur/launcher/ui/HomeLaunch.kt@@ -0,0 +1,13 @@+package com.vayunmathur.launcher.ui++import androidx.compose.ui.geometry.Rect+import com.vayunmathur.launcher.platform.HomeActions+import com.vayunmathur.launcher.platform.WorkspaceItem++internal fun HomeActions.launchFrom(item: WorkspaceItem, bounds: Rect) = launch(+    item,+    bounds.left.toInt(),+    bounds.top.toInt(),+    bounds.right.toInt(),+    bounds.bottom.toInt(),+)
launcher/src/main/java/com/vayunmathur/launcher/ui/HomeOverlays.kt
diff --git a/launcher/src/main/java/com/vayunmathur/launcher/ui/HomeOverlays.kt b/launcher/src/main/java/com/vayunmathur/launcher/ui/HomeOverlays.ktnew file mode 100644index 0000000000..a61360003a--- /dev/null+++ b/launcher/src/main/java/com/vayunmathur/launcher/ui/HomeOverlays.kt@@ -0,0 +1,86 @@+package com.vayunmathur.launcher.ui++import androidx.compose.animation.core.Animatable+import androidx.compose.animation.core.AnimationVector1D+import androidx.compose.foundation.layout.Box+import androidx.compose.foundation.layout.BoxScope+import androidx.compose.foundation.layout.fillMaxSize+import androidx.compose.foundation.lazy.grid.LazyGridState+import androidx.compose.runtime.Composable+import androidx.compose.runtime.MutableFloatState+import androidx.compose.ui.Modifier+import androidx.compose.ui.geometry.Rect+import androidx.compose.ui.graphics.graphicsLayer+import com.vayunmathur.launcher.platform.DrawerActions+import com.vayunmathur.launcher.platform.DrawerUiState+import com.vayunmathur.launcher.platform.FolderActions+import com.vayunmathur.launcher.platform.WorkspaceItem+import com.vayunmathur.launcher.ui.components.DragFeedback+import com.vayunmathur.launcher.ui.components.DragLayer+import com.vayunmathur.launcher.ui.components.FastScrollStrip+import com.vayunmathur.launcher.ui.components.LauncherDragController+import com.vayunmathur.library.ui.scrim++@Composable+internal fun BoxScope.HomeOverlays(+    popupOpen: Boolean,+    popup: Animatable<Float, AnimationVector1D>,+    drawerVisible: Boolean,+    drawerState: DrawerUiState,+    drawerActions: DrawerActions,+    drawerGridState: LazyGridState,+    drawerShown: Boolean,+    fastScroll: FastScrollStrip,+    drawer: MutableFloatState,+    onDismissDrawer: () -> Unit,+    openFolder: WorkspaceItem?,+    folderActions: FolderActions,+    showLabels: Boolean,+    iconScale: Float,+    folderAnchor: Rect,+    folder: Animatable<Float, AnimationVector1D>,+    onOpenMenu: (Long, Rect) -> Unit,+    onCloseFolder: () -> Unit,+    drag: LauncherDragController,+) {+    // Drawn, not touched: dismissal is the gesture owner's, so a scrim that swallowed touches+    // would be a second thing arbitrating them.+    if (popupOpen) {+        Box(modifier = Modifier.fillMaxSize().scrim { popup.value * POPUP_SCRIM_ALPHA })+    }++    if (drawerVisible) {+        DrawerContent(+            state = drawerState,+            actions = drawerActions,+            gridState = drawerGridState,+            draggable = drawerShown,+            strip = fastScroll,+            onDismiss = onDismissDrawer,+            // Rising with the swipe and fading in with it, so the wallpaper is still there+            // behind a drawer that is only half up.+            modifier = Modifier.graphicsLayer {+                translationY = size.height * (1f - drawer.floatValue)+                alpha = drawer.floatValue+            },+        )+    }++    if (openFolder != null) {+        FolderContent(+            folder = openFolder,+            actions = folderActions,+            showLabels = showLabels,+            iconScale = iconScale,+            anchor = folderAnchor,+            progress = { folder.value },+            onOpenItemMenu = onOpenMenu,+            onDragLeft = onCloseFolder,+            onDismiss = onCloseFolder,+        )+    }++    // Last, so the dragged item floats above the overlays it may have come out of.+    DragLayer(drag, iconScale)+    DragFeedback(drag)+}
launcher/src/main/java/com/vayunmathur/launcher/ui/HomePopups.kt
diff --git a/launcher/src/main/java/com/vayunmathur/launcher/ui/HomePopups.kt b/launcher/src/main/java/com/vayunmathur/launcher/ui/HomePopups.ktnew file mode 100644index 0000000000..90e1d2599b--- /dev/null+++ b/launcher/src/main/java/com/vayunmathur/launcher/ui/HomePopups.kt@@ -0,0 +1,76 @@+package com.vayunmathur.launcher.ui++import androidx.compose.animation.core.Animatable+import androidx.compose.animation.core.AnimationVector1D+import androidx.compose.runtime.Composable+import androidx.compose.ui.geometry.Rect+import com.vayunmathur.launcher.platform.ItemMenuActions+import com.vayunmathur.launcher.platform.ItemMenuUiState+import com.vayunmathur.launcher.platform.WidgetPickerActions+import com.vayunmathur.launcher.platform.WidgetPickerUiState+import com.vayunmathur.launcher.ui.components.LauncherPopup+import com.vayunmathur.library.ui.ModalBottomSheet++@Composable+internal fun HomePopups(+    menuItemId: Long?,+    menuAnchor: Rect,+    itemMenuState: ItemMenuUiState,+    itemMenuActions: ItemMenuActions,+    popup: Animatable<Float, AnimationVector1D>,+    onClosePopup: () -> Unit,+    optionsAnchor: Rect?,+    onPickWallpaper: () -> Unit,+    widgetPickerActions: WidgetPickerActions,+    onOpenSettings: () -> Unit,+    settleDrawer: (Float) -> Unit,+    closePopup: () -> Unit,+    widgetPickerState: WidgetPickerUiState,+) {+    // The three windows, all outside the gesture-owning root above. Each hosts its content in a+    // window of its own, which is exactly what keeps its rows tappable while the finger that opened+    // it is still down.+    val menuId = menuItemId+    if (menuId != null) {+        LauncherPopup(anchor = menuAnchor) { placement ->+            ItemMenuContent(+                state = itemMenuState,+                actions = itemMenuActions,+                placement = placement,+                progress = { popup.value },+                onDismiss = onClosePopup,+            )+        }+    }++    optionsAnchor?.let { anchor ->+        LauncherPopup(anchor = anchor) { placement ->+            WorkspaceOptionsContent(+                placement = placement,+                progress = { popup.value },+                onPickWallpaper = {+                    closePopup()+                    onPickWallpaper()+                },+                onOpenWidgets = {+                    closePopup()+                    widgetPickerActions.openWidgetPicker()+                },+                onOpenAppsList = {+                    closePopup()+                    settleDrawer(1f)+                },+                onOpenSettings = {+                    closePopup()+                    onOpenSettings()+                },+            )+        }+    }++    if (widgetPickerState.open) {+        ModalBottomSheet(onDismissRequest = widgetPickerActions::closeWidgetPicker) {+            WidgetPickerContent(state = widgetPickerState, actions = widgetPickerActions)+        }+    }+}
launcher/src/main/java/com/vayunmathur/launcher/ui/HomeWorkspace.kt
diff --git a/launcher/src/main/java/com/vayunmathur/launcher/ui/HomeWorkspace.kt b/launcher/src/main/java/com/vayunmathur/launcher/ui/HomeWorkspace.ktnew file mode 100644index 0000000000..d5d6b95497--- /dev/null+++ b/launcher/src/main/java/com/vayunmathur/launcher/ui/HomeWorkspace.kt@@ -0,0 +1,114 @@+package com.vayunmathur.launcher.ui++import android.appwidget.AppWidgetHostView+import androidx.compose.foundation.layout.Column+import androidx.compose.foundation.layout.fillMaxSize+import androidx.compose.foundation.layout.fillMaxWidth+import androidx.compose.foundation.layout.systemBarsPadding+import androidx.compose.foundation.pager.HorizontalPager+import androidx.compose.foundation.pager.PagerDefaults+import androidx.compose.foundation.pager.PagerState+import androidx.compose.runtime.Composable+import androidx.compose.runtime.MutableFloatState+import androidx.compose.ui.Alignment+import androidx.compose.ui.Modifier+import androidx.compose.ui.geometry.Rect+import androidx.compose.ui.graphics.graphicsLayer+import com.vayunmathur.launcher.domain.LauncherTuning+import com.vayunmathur.launcher.platform.HomeActions+import com.vayunmathur.launcher.platform.HomeUiState+import com.vayunmathur.launcher.ui.components.DropBar+import com.vayunmathur.launcher.ui.components.LauncherDragController+import com.vayunmathur.launcher.ui.components.PageIndicator+import com.vayunmathur.library.ui.Motion++/**+ * The workspace half of the home screen: the drop bar, the pager of grids, the dots and the+ * hotseat.+ *+ * Sinking away as the drawer rises, as Launcher3 does. The progress is read inside the layer+ * block rather than outside it, so a frame of the swipe redraws without recomposing the whole+ * workspace.+ */+@Composable+internal fun HomeWorkspaceColumn(+    state: HomeUiState,+    actions: HomeActions,+    pagerState: PagerState,+    pageCount: Int,+    overlayOpen: Boolean,+    drawer: MutableFloatState,+    resizingId: Long?,+    drag: LauncherDragController,+    onOpenFolder: (Long, Rect) -> Unit,+    onEndResize: () -> Unit,+    onWidgetDropped: (Long) -> Unit,+    onRemoveItem: (Long) -> Unit,+    widgetView: (Int) -> AppWidgetHostView?,+    updateWidgetSize: (AppWidgetHostView, Int, Int) -> Unit,+) {+    Column(+        modifier = Modifier+            .fillMaxSize()+            .systemBarsPadding()+            .graphicsLayer {+                val scale = 1f -+                    (1f - LauncherTuning.WorkspaceScaleBehindDrawer) * drawer.floatValue+                scaleX = scale+                scaleY = scale+                alpha = 1f - drawer.floatValue+            },+    ) {+        DropBar(+            controller = drag,+            onRemove = onRemoveItem,+            onUninstall = actions::uninstallItem,+            onAppInfo = actions::openItemInfo,+        )++        HorizontalPager(+            state = pagerState,+            // Disabled for the duration of a drag; page changes come from the edge dwell+            // instead. Leaving it on means the pager and the dragged icon fight over the same+            // horizontal movement.+            userScrollEnabled = !drag.isDragging,+            // The pager's default snap is a spring, which overshoots slightly. A workspace+            // page has weight and does not bounce, so this is `PagedView`'s own curve instead.+            flingBehavior = PagerDefaults.flingBehavior(+                state = pagerState,+                snapAnimationSpec = Motion.pageSnap(),+            ),+            modifier = Modifier.fillMaxWidth().weight(1f),+        ) { page ->+            WorkspacePage(+                state = state,+                actions = actions,+                page = page,+                items = state.pages[page].orEmpty(),+                resizingId = resizingId,+                draggable = !overlayOpen,+                onOpenFolder = onOpenFolder,+                onEndResize = onEndResize,+                onWidgetDropped = onWidgetDropped,+                widgetView = widgetView,+                updateWidgetSize = updateWidgetSize,+            )+        }++        PageIndicator(+            pageCount = pageCount,+            // A lambda, so a fling redraws the dots without recomposing this column.+            scrollProgress = {+                pagerState.currentPage + pagerState.currentPageOffsetFraction+            },+            modifier = Modifier.align(Alignment.CenterHorizontally),+        )++        Hotseat(+            state = state,+            actions = actions,+            draggable = !overlayOpen,+            onOpenFolder = onOpenFolder,+        )+    }+}
launcher/src/main/java/com/vayunmathur/launcher/ui/HotseatBar.kt
diff --git a/launcher/src/main/java/com/vayunmathur/launcher/ui/HotseatBar.kt b/launcher/src/main/java/com/vayunmathur/launcher/ui/HotseatBar.ktnew file mode 100644index 0000000000..4cdc9f8ed9--- /dev/null+++ b/launcher/src/main/java/com/vayunmathur/launcher/ui/HotseatBar.kt@@ -0,0 +1,149 @@+package com.vayunmathur.launcher.ui++import androidx.compose.foundation.clickable+import androidx.compose.foundation.layout.Arrangement+import androidx.compose.foundation.layout.Box+import androidx.compose.foundation.layout.Row+import androidx.compose.foundation.layout.fillMaxSize+import androidx.compose.foundation.layout.fillMaxWidth+import androidx.compose.foundation.layout.height+import androidx.compose.foundation.layout.padding+import androidx.compose.runtime.Composable+import androidx.compose.runtime.getValue+import androidx.compose.runtime.key+import androidx.compose.runtime.mutableStateOf+import androidx.compose.runtime.remember+import androidx.compose.runtime.setValue+import androidx.compose.ui.Alignment+import androidx.compose.ui.Modifier+import androidx.compose.ui.draw.alpha+import androidx.compose.ui.geometry.Rect+import com.vayunmathur.launcher.domain.CellRect+import com.vayunmathur.launcher.domain.ContainerRef+import com.vayunmathur.launcher.domain.LauncherItemType+import com.vayunmathur.launcher.domain.LauncherTuning+import com.vayunmathur.launcher.platform.HomeActions+import com.vayunmathur.launcher.platform.HomeUiState+import com.vayunmathur.launcher.platform.WorkspaceItem+import com.vayunmathur.launcher.ui.components.DragPayload+import com.vayunmathur.launcher.ui.components.LauncherItemIcon+import com.vayunmathur.launcher.ui.components.LocalLauncherDrag+import com.vayunmathur.launcher.ui.components.cell+import com.vayunmathur.launcher.ui.components.dragSource+import com.vayunmathur.launcher.ui.components.dropTarget+import com.vayunmathur.launcher.ui.components.onAppWindowBounds+import com.vayunmathur.library.ui.Motion+import com.vayunmathur.library.ui.Spacing+import com.vayunmathur.library.ui.animatedFloat++@Composable+internal fun Hotseat(+    state: HomeUiState,+    actions: HomeActions,+    draggable: Boolean,+    onOpenFolder: (Long, Rect) -> Unit,+) {+    Row(+        modifier = Modifier+            .fillMaxWidth()+            .height(HOTSEAT_HEIGHT)+            .padding(horizontal = Spacing.sm),+        horizontalArrangement = Arrangement.spacedBy(Spacing.xs),+        verticalAlignment = Alignment.CenterVertically,+    ) {+        repeat(state.grid.hotseatSlots) { slot ->+            val item = state.hotseat.getOrNull(slot)+            var slotBounds by remember { mutableStateOf(Rect.Zero) }+            Box(+                modifier = Modifier+                    .weight(1f)+                    .fillMaxSize()+                    .onAppWindowBounds { slotBounds = it }+                    .dropTarget(+                        key = "hotseat-$slot",+                        priority = HOTSEAT_PRIORITY,+                        // A widget has a span and the hotseat has none to give it.+                        accepts = { it.type != LauncherItemType.APPWIDGET },+                        onDrop = { payload, _ ->+                            val id = payload.itemId+                            if (id == null) {+                                // Straight from the drawer into a hotseat slot.+                                val key = payload.key+                                if (key == null) {+                                    null+                                } else {+                                    actions.addPendingToHotseat(key, slot)+                                    slotBounds+                                }+                            } else {+                                actions.commitMove(+                                    id,+                                    ContainerRef.Hotseat,+                                    0,+                                    CellRect(slot, 0),+                                    rank = slot,+                                )+                                slotBounds+                            }+                        },+                    ),+                contentAlignment = Alignment.Center,+            ) {+                if (item != null) {+                    key(item.id) { HotseatCell(item, state, actions, draggable, onOpenFolder) }+                }+            }+        }+    }+}++@Composable+internal fun HotseatCell(+    item: WorkspaceItem,+    state: HomeUiState,+    actions: HomeActions,+    draggable: Boolean,+    onOpenFolder: (Long, Rect) -> Unit,+) {+    val drag = LocalLauncherDrag.current+    var bounds by remember { mutableStateOf(Rect.Zero) }+    val dim = animatedFloat(+        if (drag.payload?.itemId == item.id) LauncherTuning.DraggedAlpha else 1f,+        Motion.reorder(),+    )+    Box(+        modifier = Modifier+            .fillMaxSize()+            .onAppWindowBounds { bounds = it }+            .dragSource(key = item.id, enabled = draggable) {+                DragPayload(+                    itemId = item.id,+                    type = item.type,+                    label = item.label,+                    key = item.key,+                    canUninstall = item.canUninstall,+                    // The hotseat's "cell" is its slot.+                    rect = CellRect(item.rank, 0),+                    o

Diff truncated.