android: set android:enableOnBackInvokedCallback="true"

This commit is contained in:
Harsh Shandilya 2022-08-06 01:30:25 +05:30
parent d8332d6b90
commit fe41c885e4
No known key found for this signature in database
GPG key ID: 366D7BBAD1031E80
2 changed files with 12 additions and 11 deletions

View file

@ -5,14 +5,15 @@
<uses-permission android:name="android.permission.INTERNET" /> <uses-permission android:name="android.permission.INTERNET" />
<application <application
android:name=".ClawApplication" android:name=".ClawApplication"
android:enableOnBackInvokedCallback="true"
android:icon="@mipmap/ic_launcher" android:icon="@mipmap/ic_launcher"
android:label="@string/app_name" android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher" android:roundIcon="@mipmap/ic_launcher"
android:supportsRtl="true" android:supportsRtl="true"
android:theme="@style/Theme.Claw.SplashScreen"> android:theme="@style/Theme.Claw.SplashScreen">
<profileable <profileable
android:shell="true" android:shell="true"
tools:targetApi="29" /> tools:targetApi="29" />
<activity <activity
android:name=".MainActivity" android:name=".MainActivity"
android:configChanges="colorMode|density|fontScale|keyboard|keyboardHidden|layoutDirection|locale|mcc|mnc|navigation|orientation|screenLayout|screenSize|smallestScreenSize|touchscreen|uiMode" android:configChanges="colorMode|density|fontScale|keyboard|keyboardHidden|layoutDirection|locale|mcc|mnc|navigation|orientation|screenLayout|screenSize|smallestScreenSize|touchscreen|uiMode"
@ -143,9 +144,9 @@
<category android:name="android.intent.category.BROWSABLE" /> <category android:name="android.intent.category.BROWSABLE" />
<data <data
android:host="lobste.rs" android:host="lobste.rs"
android:pathPattern="/u/......*" android:pathPattern="/u/......*"
android:scheme="https" /> android:scheme="https" />
</intent-filter> </intent-filter>
</activity> </activity>
<provider <provider
@ -153,10 +154,10 @@
android:authorities="${applicationId}.androidx-startup" android:authorities="${applicationId}.androidx-startup"
android:exported="false" android:exported="false"
tools:node="merge"> tools:node="merge">
<meta-data <meta-data
android:name="androidx.work.WorkManagerInitializer" android:name="androidx.work.WorkManagerInitializer"
android:value="androidx.startup" android:value="androidx.startup"
tools:node="remove" /> tools:node="remove" />
</provider> </provider>
</application> </application>
</manifest> </manifest>

View file

@ -14,10 +14,10 @@ class AndroidCommonPlugin : Plugin<Project> {
override fun apply(project: Project) { override fun apply(project: Project) {
project.pluginManager.apply(AndroidCacheFixPlugin::class) project.pluginManager.apply(AndroidCacheFixPlugin::class)
project.extensions.findByType<TestedExtension>()?.run { project.extensions.findByType<TestedExtension>()?.run {
setCompileSdkVersion(32) setCompileSdkVersion(33)
defaultConfig { defaultConfig {
minSdk = 26 minSdk = 26
targetSdk = 32 targetSdk = 33
} }
sourceSets { sourceSets {