compose: rewire navigation as the single entry point

ComposeActivity becomes the sole launch target; the legacy MainActivity
is removed. Destination / Screen pair drives navigation3, NavDisplay
handles deep links plus microG-aware resume rechecks, and Theme.kt
is tightened for edge-to-edge.
This commit is contained in:
Rahul Patel
2026-05-19 12:10:59 +05:30
parent 7617a9b953
commit baf593bd51
7 changed files with 301 additions and 278 deletions

View File

@@ -82,9 +82,9 @@
tools:targetApi="tiramisu">
<activity
android:name=".MainActivity"
android:name=".ComposeActivity"
android:exported="true"
android:windowSoftInputMode="adjustPan">
android:windowSoftInputMode="adjustResize">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
@@ -103,16 +103,28 @@
<intent-filter>
<action android:name="android.intent.action.SHOW_APP_INFO" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<nav-graph android:value="@navigation/mobile_navigation" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="market" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="http" />
<data android:scheme="https" />
<data android:host="market.android.com" />
<data android:host="play.google.com" />
<data android:host="play.google.com" />
</intent-filter>
</activity>
<!-- Activity to host composable screens -->
<activity
android:name=".ComposeActivity"
android:exported="false"
android:windowSoftInputMode="adjustResize" />
<!-- Notification Action (Download Complete) -->
<activity
android:name=".data.activity.InstallActivity"