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" />
<application
android:name=".ClawApplication"
android:enableOnBackInvokedCallback="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher"
android:supportsRtl="true"
android:theme="@style/Theme.Claw.SplashScreen">
<profileable
android:shell="true"
tools:targetApi="29" />
android:shell="true"
tools:targetApi="29" />
<activity
android:name=".MainActivity"
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" />
<data
android:host="lobste.rs"
android:pathPattern="/u/......*"
android:scheme="https" />
android:host="lobste.rs"
android:pathPattern="/u/......*"
android:scheme="https" />
</intent-filter>
</activity>
<provider
@ -153,10 +154,10 @@
android:authorities="${applicationId}.androidx-startup"
android:exported="false"
tools:node="merge">
<meta-data
android:name="androidx.work.WorkManagerInitializer"
android:value="androidx.startup"
tools:node="remove" />
<meta-data
android:name="androidx.work.WorkManagerInitializer"
android:value="androidx.startup"
tools:node="remove" />
</provider>
</application>
</manifest>

View file

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