Skip to content

Commit

Permalink
Update project
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelbel committed Dec 4, 2024
1 parent f6809c4 commit f010aa7
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions auto/src/main/kotlin/org/michaelbel/template/MainActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package org.michaelbel.template

import android.os.Bundle
import android.view.Window
import android.view.WindowManager
import android.view.WindowManager.LayoutParams
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
Expand All @@ -25,8 +24,8 @@ class MainActivity: ComponentActivity() {
}
}

fun Window.updateAttributes(block: WindowManager.LayoutParams.() -> Unit) {
val layoutParams = WindowManager.LayoutParams()
fun Window.updateAttributes(block: LayoutParams.() -> Unit) {
val layoutParams = LayoutParams()
layoutParams.copyFrom(this.attributes)
layoutParams.apply(block)
this.attributes = layoutParams
Expand Down

0 comments on commit f010aa7

Please sign in to comment.