Skip to content

Commit

Permalink
Support Android 15
Browse files Browse the repository at this point in the history
  • Loading branch information
pcolby committed Oct 17, 2024
1 parent c819ddc commit d4d44ec
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 7 deletions.
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog[^1]

## [1.4.4][] (2024-10-17)

Support for Android 15.

## [1.4.3][] (2024-08-12)

Redirected long-tap to NFC Settings when granted `WRITE_SECURE_SETTINGS` permission.
Expand Down Expand Up @@ -46,7 +50,8 @@ Added translations for 86 languages.

Initial release.

[Unreleased]: https://github.com/pcolby/nfc-quick-settings/compare/v1.4.3...HEAD
[Unreleased]: https://github.com/pcolby/nfc-quick-settings/compare/v1.4.4...HEAD
[1.4.4]: https://github.com/pcolby/nfc-quick-settings/releases/tag/v1.4.4
[1.4.3]: https://github.com/pcolby/nfc-quick-settings/releases/tag/v1.4.3
[1.4.2]: https://github.com/pcolby/nfc-quick-settings/releases/tag/v1.4.2
[1.4.1]: https://github.com/pcolby/nfc-quick-settings/releases/tag/v1.4.1
Expand Down
6 changes: 3 additions & 3 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,14 @@ android {
}
}
namespace 'au.id.colby.nfcquicksettings'
compileSdk 34
compileSdk 35

defaultConfig {
applicationId "au.id.colby.nfcquicksettings"
minSdk 24
targetSdk 34
targetSdk 35
versionCode 14
versionName "1.4.4-pre"
versionName "1.4.4"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}

Expand Down
2 changes: 1 addition & 1 deletion app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
tools:targetApi="34">
tools:targetApi="35">

<activity
android:name=".NfcTilePreferencesActivity"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ class NfcTileService : TileService() {
* @return true if the [adapter]'s new state was successfully requested.
*/
private fun invertNfcState(adapter: NfcAdapter? = NfcAdapter.getDefaultAdapter(this)): Boolean {
return adapter?.run { setNfcAdapterState(this, !isEnabled) } ?: false
return adapter?.run { setNfcAdapterState(this, !isEnabled) } == true
}

/**
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/play/release-notes/en-US/default.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
- Redirected long-tap to NFC Settings, when granted WRITE_SECURE_SETTINGS permission
- Support for Android 15.

0 comments on commit d4d44ec

Please sign in to comment.