A stateless TileService that opens the create-event form on today — the same action as the launcher 'New event' shortcut and the agenda widget's +. Reuses MainActivity.openCreateIntent; wrapped in unlockAndRun and using the API 34+ startActivityAndCollapse(PendingIntent) form (deprecated Intent form below 34). No new permission (BIND_QUICK_SETTINGS_TILE is system-side). Discoverability: Settings → New event form gains an 'Add Quick Settings tile' row that fires StatusBarManager.requestAddTileService (API 33+); on older versions the tile is still addable manually from the system QS editor. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
19 lines
847 B
XML
19 lines
847 B
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- Quick Settings tile icon ("New event"): a flat calendar+plus glyph. QS tile
|
|
icons are tinted by the system from their alpha, so this is a bare white
|
|
glyph on a transparent background (no brand circle, unlike the launcher
|
|
shortcut icon). -->
|
|
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
|
android:width="24dp"
|
|
android:height="24dp"
|
|
android:viewportWidth="24"
|
|
android:viewportHeight="24"
|
|
android:tint="#FFFFFFFF">
|
|
<path
|
|
android:fillColor="#FFFFFFFF"
|
|
android:pathData="M19,3h-1V1h-2v2H8V1H6v2H5C3.89,3 3.01,3.9 3.01,5L3,19c0,1.1 0.89,2 2,2h14c1.1,0 2,-0.9 2,-2V5C21,3.9 20.1,3 19,3zM19,19H5V8h14V19z" />
|
|
<path
|
|
android:fillColor="#FFFFFFFF"
|
|
android:pathData="M11.5,10.5h1v2h2v1h-2v2h-1v-2h-2v-1h2z" />
|
|
</vector>
|