File tree Expand file tree Collapse file tree
app/src/main/java/org/schabi/newpipe Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11/*
2- * SPDX-FileCopyrightText: 2025 -2026 NewPipe e.V. <https://newpipe-ev.de >
2+ * SPDX-FileCopyrightText: 2015 -2026 NewPipe contributors <https://newpipe.net >
33 * SPDX-License-Identifier: GPL-3.0-or-later
44 */
55
6- package org.schabi.newpipe.ui
6+ package org.schabi.newpipe
77
88import android.graphics.Color
99import android.os.Build
@@ -17,25 +17,22 @@ import org.schabi.newpipe.ui.theme.AppTheme
1717
1818/* *
1919 * Base activity for Compose-based screens. Provides edge-to-edge display and
20- * wraps Compose content in [AppTheme].
20+ * wraps Compose content in [org.schabi.newpipe.ui.theme. AppTheme].
2121 *
2222 * Subclasses should be annotated with `@AndroidEntryPoint` if they need Hilt injection.
2323 */
2424open class BaseActivity : ComponentActivity () {
2525
2626 override fun onCreate (savedInstanceState : Bundle ? ) {
2727 enableEdgeToEdge(
28- navigationBarStyle = SystemBarStyle .auto(Color .TRANSPARENT , Color .TRANSPARENT )
28+ navigationBarStyle = SystemBarStyle .Companion . auto(Color .TRANSPARENT , Color .TRANSPARENT )
2929 )
3030 if (Build .VERSION .SDK_INT >= Build .VERSION_CODES .Q ) {
3131 window.isNavigationBarContrastEnforced = false
3232 }
3333 super .onCreate(savedInstanceState)
3434 }
3535
36- /* *
37- * Sets the Compose content wrapped in [AppTheme]. Call this instead of [setContent] directly.
38- */
3936 fun composeSetContent (content : @Composable () -> Unit ) {
4037 setContent {
4138 AppTheme (content = content)
Original file line number Diff line number Diff line change @@ -15,9 +15,9 @@ import com.grack.nanojson.JsonWriter
1515import dagger.hilt.android.AndroidEntryPoint
1616import java.time.ZonedDateTime
1717import java.time.format.DateTimeFormatter
18+ import org.schabi.newpipe.BaseActivity
1819import org.schabi.newpipe.BuildConfig
1920import org.schabi.newpipe.R
20- import org.schabi.newpipe.ui.BaseActivity
2121import org.schabi.newpipe.ui.screens.ErrorReportScreen
2222import org.schabi.newpipe.util.Localization
2323import org.schabi.newpipe.util.external_communication.ShareUtils
You can’t perform that action at this time.
0 commit comments