Skip to content

Commit

Permalink
Bump activity-compose from 1.8.2 to 1.9.0 (#4376)
Browse files Browse the repository at this point in the history
* Bump activity-compose from 1.8.2 to 1.9.0

Bumps `activity-compose` from 1.8.2 to 1.9.0.

Updates `androidx.activity:activity-compose` from 1.8.2 to 1.9.0

Updates `androidx.activity:activity-ktx` from 1.8.2 to 1.9.0

---
updated-dependencies:
- dependency-name: androidx.activity:activity-compose
  dependency-type: direct:production
  update-type: version-update:semver-minor
- dependency-name: androidx.activity:activity-ktx
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* Update nullability for overrides in app

* Update nullability for overrides in wear

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Joris Pelgröm <joris.pelgrom@gmail.com>
  • Loading branch information
dependabot[bot] and jpelgrom committed May 3, 2024
1 parent 1039b8a commit a8f924d
Show file tree
Hide file tree
Showing 13 changed files with 28 additions and 28 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ class MatterCommissioningActivity : AppCompatActivity() {
}
}

override fun onNewIntent(intent: Intent?) {
override fun onNewIntent(intent: Intent) {
super.onNewIntent(intent)
this.intent = intent // Data is handled by check in onResume()
newMatterDevice = true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ class AssistActivity : BaseActivity() {
viewModel.onDestroy()
}

override fun onNewIntent(intent: Intent?) {
override fun onNewIntent(intent: Intent) {
super.onNewIntent(intent)
this.intent = intent

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,10 +122,10 @@ class AssistViewModel @Inject constructor(
* @param intent the updated intent
* @param lockedMatches whether the locked state changed and contents should be cleared
*/
fun onNewIntent(intent: Intent?, lockedMatches: Boolean) {
fun onNewIntent(intent: Intent, lockedMatches: Boolean) {
if (
(intent?.flags != null && intent.flags and Intent.FLAG_ACTIVITY_BROUGHT_TO_FRONT != 0) ||
intent?.action in listOf(Intent.ACTION_ASSIST, "android.intent.action.VOICE_ASSIST", Intent.ACTION_VOICE_COMMAND)
(intent.flags and Intent.FLAG_ACTIVITY_BROUGHT_TO_FRONT != 0) ||
intent.action in listOf(Intent.ACTION_ASSIST, "android.intent.action.VOICE_ASSIST", Intent.ACTION_VOICE_COMMAND)
) {
if (!lockedMatches && inputMode != AssistInputMode.BLOCKED) {
_conversation.clear()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,10 @@ class OnboardingActivity : BaseActivity() {
}
}

override fun dispatchKeyEvent(event: KeyEvent?): Boolean {
// Temporary workaround to sideload on Android TV and use a remote for basic navigation in WebView
override fun dispatchKeyEvent(event: KeyEvent): Boolean {
// Workaround to sideload on Android TV and use a remote for basic navigation in WebView
val fragmentManager = supportFragmentManager.findFragmentByTag(AUTHENTICATION_FRAGMENT)
if (event?.keyCode == KeyEvent.KEYCODE_DPAD_DOWN && event.action == KeyEvent.ACTION_DOWN &&
if (event.keyCode == KeyEvent.KEYCODE_DPAD_DOWN && event.action == KeyEvent.ACTION_DOWN &&
fragmentManager != null && fragmentManager.isVisible
) {
dispatchKeyEvent(KeyEvent(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_TAB))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1589,9 +1589,9 @@ class WebViewActivity : BaseActivity(), io.homeassistant.companion.android.webvi
}
}

override fun dispatchKeyEvent(event: KeyEvent?): Boolean {
// Temporary workaround to sideload on Android TV and use a remote for basic navigation in WebView
if (event?.keyCode == KeyEvent.KEYCODE_DPAD_DOWN && event.action == KeyEvent.ACTION_DOWN) {
override fun dispatchKeyEvent(event: KeyEvent): Boolean {
// Workaround to sideload on Android TV and use a remote for basic navigation in WebView
if (event.keyCode == KeyEvent.KEYCODE_DPAD_DOWN && event.action == KeyEvent.ACTION_DOWN) {
dispatchKeyEvent(KeyEvent(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_TAB))
return true
}
Expand Down Expand Up @@ -1656,10 +1656,10 @@ class WebViewActivity : BaseActivity(), io.homeassistant.companion.android.webvi
}
}

override fun onNewIntent(intent: Intent?) {
override fun onNewIntent(intent: Intent) {
super.onNewIntent(intent)
this.intent = intent
if (intent?.extras?.containsKey(EXTRA_SERVER) == true) {
if (intent.extras?.containsKey(EXTRA_SERVER) == true) {
intent.extras?.getInt(EXTRA_SERVER)?.let {
presenter.setActiveServer(it)
intent.removeExtra(EXTRA_SERVER)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -366,9 +366,9 @@ class ButtonWidgetConfigureActivity : BaseWidgetConfigureActivity() {
}
}

override fun onNewIntent(intent: Intent?) {
override fun onNewIntent(intent: Intent) {
super.onNewIntent(intent)
if (intent != null && intent.extras != null && intent.hasExtra(PIN_WIDGET_CALLBACK)) {
if (intent.extras != null && intent.hasExtra(PIN_WIDGET_CALLBACK)) {
appWidgetId = intent.extras!!.getInt(
AppWidgetManager.EXTRA_APPWIDGET_ID,
AppWidgetManager.INVALID_APPWIDGET_ID
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -214,9 +214,9 @@ class CameraWidgetConfigureActivity : BaseWidgetConfigureActivity() {
}
}

override fun onNewIntent(intent: Intent?) {
override fun onNewIntent(intent: Intent) {
super.onNewIntent(intent)
if (intent != null && intent.extras != null && intent.hasExtra(PIN_WIDGET_CALLBACK)) {
if (intent.extras != null && intent.hasExtra(PIN_WIDGET_CALLBACK)) {
appWidgetId = intent.extras!!.getInt(
AppWidgetManager.EXTRA_APPWIDGET_ID,
AppWidgetManager.INVALID_APPWIDGET_ID
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -423,9 +423,9 @@ class EntityWidgetConfigureActivity : BaseWidgetConfigureActivity() {
}
}

override fun onNewIntent(intent: Intent?) {
override fun onNewIntent(intent: Intent) {
super.onNewIntent(intent)
if (intent != null && intent.extras != null && intent.hasExtra(PIN_WIDGET_CALLBACK)) {
if (intent?.extras != null && intent.hasExtra(PIN_WIDGET_CALLBACK)) {
appWidgetId = intent.extras!!.getInt(
AppWidgetManager.EXTRA_APPWIDGET_ID,
AppWidgetManager.INVALID_APPWIDGET_ID
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -280,9 +280,9 @@ class MediaPlayerControlsWidgetConfigureActivity : BaseWidgetConfigureActivity()
}
}

override fun onNewIntent(intent: Intent?) {
override fun onNewIntent(intent: Intent) {
super.onNewIntent(intent)
if (intent != null && intent.extras != null && intent.hasExtra(PIN_WIDGET_CALLBACK)) {
if (intent.extras != null && intent.hasExtra(PIN_WIDGET_CALLBACK)) {
appWidgetId = intent.extras!!.getInt(
AppWidgetManager.EXTRA_APPWIDGET_ID,
AppWidgetManager.INVALID_APPWIDGET_ID
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -213,9 +213,9 @@ class TemplateWidgetConfigureActivity : BaseWidgetConfigureActivity() {
finish()
}

override fun onNewIntent(intent: Intent?) {
override fun onNewIntent(intent: Intent) {
super.onNewIntent(intent)
if (intent != null && intent.extras != null && intent.hasExtra(PIN_WIDGET_CALLBACK)) {
if (intent.extras != null && intent.hasExtra(PIN_WIDGET_CALLBACK)) {
appWidgetId = intent.extras!!.getInt(
AppWidgetManager.EXTRA_APPWIDGET_ID,
AppWidgetManager.INVALID_APPWIDGET_ID
Expand Down
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[versions]
accompanist = "0.34.0"
activity-compose = "1.8.2"
activity-compose = "1.9.0"
androidBeaconLibrary = "2.20.4"
androidJunit5 = "1.9.3.0"
androidPlugin = "8.4.0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ class ConversationActivity : ComponentActivity() {
}
}

override fun onNewIntent(intent: Intent?) {
override fun onNewIntent(intent: Intent) {
super.onNewIntent(intent)
this.intent = intent

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,11 +112,11 @@ class ConversationViewModel @Inject constructor(
}

/** @return `true` if the voice input intent should be fired */
fun onNewIntent(intent: Intent?): Boolean {
fun onNewIntent(intent: Intent): Boolean {
if (
(
(intent?.flags != null && intent.flags and Intent.FLAG_ACTIVITY_BROUGHT_TO_FRONT != 0) ||
intent?.action in listOf(Intent.ACTION_ASSIST, "android.intent.action.VOICE_ASSIST")
(intent.flags and Intent.FLAG_ACTIVITY_BROUGHT_TO_FRONT != 0) ||
intent.action in listOf(Intent.ACTION_ASSIST, "android.intent.action.VOICE_ASSIST")
) &&
inputMode != AssistInputMode.BLOCKED
) {
Expand Down

0 comments on commit a8f924d

Please sign in to comment.