mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-14 08:11:03 +00:00
fix(android): review findings on the tile store, widgets, location, billing and the share sheet
- Tile store: the WebView's headers go along (a URL-restricted Mapbox token is checked against the Referer), and anything but a tile is left to the WebView, so a 401/403 never comes from the store. - Widgets read their snapshot inside the composition, so every write reaches a running Glance session; the trip picker updates only the widget the id belongs to. - Location: Approximate counts as allowed; the stream pauses with the app, resumes with it, and stops when the page reloads or the activity goes. - Billing: an already-owned subscription comes back as the purchase, so the shell redeems it; a payment that clears outside the sheet is announced (storeTransaction) and found again at start (storeUnfinished). - getWindowLayout answers with the last posture and hinge, not the bare window. - Share sheet: keeps the picked trip through rotation and folding, and takes content:// only, never a file:// path read with TREK's own rights.
This commit is contained in:
@@ -67,6 +67,7 @@
|
||||
<activity
|
||||
android:name=".share.ShareActivity"
|
||||
android:theme="@style/AppTheme.Sheet"
|
||||
android:configChanges="orientation|screenSize|smallestScreenSize|screenLayout|keyboard|keyboardHidden|navigation"
|
||||
android:excludeFromRecents="true"
|
||||
android:taskAffinity="com.liketrek.trek.share"
|
||||
android:launchMode="standard"
|
||||
@@ -91,8 +92,8 @@
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.VIEW" />
|
||||
<category android:name="android.intent.category.DEFAULT" />
|
||||
<!-- content:// only: a file:// path would be read with TREK's own rights. -->
|
||||
<data android:scheme="content" />
|
||||
<data android:scheme="file" />
|
||||
<data android:mimeType="application/pdf" />
|
||||
<data android:mimeType="text/calendar" />
|
||||
<data android:mimeType="application/vnd.apple.pkpass" />
|
||||
|
||||
Reference in New Issue
Block a user