Skip to content

Commit

Permalink
fix for v40
Browse files Browse the repository at this point in the history
  • Loading branch information
basti564 committed May 25, 2022
1 parent c90a8a3 commit e9806b6
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 3 deletions.
1 change: 1 addition & 0 deletions .idea/gradle.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ android {
applicationId "com.basti564.settingsshortcut"
minSdkVersion 29
targetSdkVersion 30
versionCode 1
versionName "1.0"
versionCode 2
versionName "1.1"

testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@ import android.provider.Settings
class MainActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
startActivity(Intent(Settings.ACTION_SETTINGS))
val intentSettings = Intent()
intentSettings.setPackage("com.android.settings")
intentSettings.addCategory(Intent.CATEGORY_LAUNCHER)
startActivity(intentSettings)
super.finish()
}
}

0 comments on commit e9806b6

Please sign in to comment.