Skip to content

Commit

Permalink
Fix app crash on some devices
Browse files Browse the repository at this point in the history
  • Loading branch information
roozbehzarei authored Sep 22, 2022
2 parents 56841ff + 5eb4f66 commit 6e22e3f
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ android {
applicationId "com.roozbehzarei.filester"
minSdk 21
targetSdk 33
versionCode 2
versionName "2.0.0"
versionCode 3
versionName "2.0.1"

testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
Expand Down
6 changes: 3 additions & 3 deletions app/release/output-metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@
"type": "APK",
"kind": "Directory"
},
"applicationId": "com.rouzbehzarei.filester",
"applicationId": "com.roozbehzarei.filester",
"variantName": "release",
"elements": [
{
"type": "SINGLE",
"filters": [],
"attributes": [],
"versionCode": 1,
"versionName": "1.0",
"versionCode": 3,
"versionName": "2.0.1",
"outputFile": "app-release.apk"
}
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ class MainActivity : AppCompatActivity() {
super.onCreate(savedInstanceState)
// Inflate the layout XML file using Binding object instance
binding = ActivityMainBinding.inflate(layoutInflater)
setContentView(binding.root)

/**
* Display content edge-to-edge
Expand Down Expand Up @@ -79,8 +80,6 @@ class MainActivity : AppCompatActivity() {
// Set up the app bar for use with the NavController
binding.appBar.setupWithNavController(navController)

setContentView(binding.root)

createNotificationChannel()
}

Expand Down
6 changes: 3 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
buildscript {
ext {
nav_version = "2.5.2"
fragment_version = "1.5.2"
fragment_version = "1.5.3"
lifecycle_version = "2.5.1"
retrofit_version = "2.9.0"
work_version = "2.7.1"
Expand All @@ -15,8 +15,8 @@ buildscript {
}

plugins {
id 'com.android.application' version '7.2.2' apply false
id 'com.android.library' version '7.2.2' apply false
id 'com.android.application' version '7.3.0' apply false
id 'com.android.library' version '7.3.0' apply false
id 'org.jetbrains.kotlin.android' version '1.6.10' apply false
}

Expand Down
1 change: 1 addition & 0 deletions fastlane/metadata/android/en-US/changelogs/3.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- Fixed a bug where the app crashes on launch on some devices.

0 comments on commit 6e22e3f

Please sign in to comment.