Skip to content

Commit 1f3ba28

Browse files
committed
Apply some copilot suggestions
1 parent 8c88dd9 commit 1f3ba28

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

app/src/main/kotlin/io/homeassistant/companion/android/frontend/navigation/FrontendTarget.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ sealed interface FrontendTarget : Parcelable {
3535
}
3636

3737
/**
38-
* Serializes this target back to the raw path string, persisted
38+
* Serializes this target back to the raw path string
3939
* Returns `null` for [FrontendTarget.Default].
4040
*/
4141
internal fun FrontendTarget.toRawPath(): String? = when (this) {

app/src/main/kotlin/io/homeassistant/companion/android/util/compose/GlanceExt.kt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,14 @@ import androidx.glance.action.Action
99
import androidx.glance.appwidget.action.actionStartActivity
1010
import io.homeassistant.companion.android.frontend.navigation.FrontendTarget
1111
import io.homeassistant.companion.android.launch.intentLaunchWithNavigateTo
12-
import io.homeassistant.companion.android.webview.WebViewActivity
1312

1413
@Composable
1514
@ReadOnlyComposable
1615
fun glanceStringResource(@StringRes id: Int, vararg arguments: Any): String =
1716
LocalContext.current.getString(id, *arguments)
1817

1918
/**
20-
* Get an Action that will open the [WebViewActivity] for the given [path]
19+
* Get an Action that will open the frontend for the given [path]
2120
*/
2221
@Composable
2322
fun actionStartWebView(path: String, serverId: Int): Action {

0 commit comments

Comments
 (0)