diff --git a/.gitignore b/.gitignore index 7bccc3132..a5219720c 100644 --- a/.gitignore +++ b/.gitignore @@ -19,3 +19,6 @@ app/release/ bin/ .vscode/ *.code-workspace + +# logs +*.log diff --git a/app/src/androidTest/java/org/schabi/newpipe/ui/components/common/CommentSectionErrorTest.kt b/app/src/androidTest/java/org/schabi/newpipe/error/ErrorInfoCommentsTest.kt similarity index 93% rename from app/src/androidTest/java/org/schabi/newpipe/ui/components/common/CommentSectionErrorTest.kt rename to app/src/androidTest/java/org/schabi/newpipe/error/ErrorInfoCommentsTest.kt index 010cab7a7..454964b44 100644 --- a/app/src/androidTest/java/org/schabi/newpipe/ui/components/common/CommentSectionErrorTest.kt +++ b/app/src/androidTest/java/org/schabi/newpipe/error/ErrorInfoCommentsTest.kt @@ -1,4 +1,4 @@ -package org.schabi.newpipe.ui.components.common +package org.schabi.newpipe.error import android.content.Context import androidx.test.core.app.ApplicationProvider @@ -7,14 +7,12 @@ import org.junit.Assert import org.junit.Test import org.junit.runner.RunWith import org.schabi.newpipe.R -import org.schabi.newpipe.error.ErrorInfo -import org.schabi.newpipe.error.UserAction import org.schabi.newpipe.extractor.exceptions.ReCaptchaException import java.io.IOException import java.net.SocketTimeoutException @RunWith(AndroidJUnit4::class) -class CommentSectionErrorTest { +class ErrorInfoCommentsTest { private val context: Context by lazy { ApplicationProvider.getApplicationContext() } // Test 1: Network error on initial load (Resource.Error) @Test diff --git a/app/src/main/java/org/schabi/newpipe/ui/components/video/comment/CommentSection.kt b/app/src/main/java/org/schabi/newpipe/ui/components/video/comment/CommentSection.kt index a774a0114..23f13a342 100644 --- a/app/src/main/java/org/schabi/newpipe/ui/components/video/comment/CommentSection.kt +++ b/app/src/main/java/org/schabi/newpipe/ui/components/video/comment/CommentSection.kt @@ -16,7 +16,6 @@ import androidx.compose.runtime.getValue import androidx.compose.ui.Alignment import androidx.compose.ui.Modifier import androidx.compose.ui.input.nestedscroll.nestedScroll -import androidx.compose.ui.platform.LocalContext import androidx.compose.ui.platform.rememberNestedScrollInteropConnection import androidx.compose.ui.res.pluralStringResource import androidx.compose.ui.tooling.preview.Preview @@ -57,7 +56,6 @@ private fun CommentSection( val comments = commentsFlow.collectAsLazyPagingItems() val nestedScrollInterop = rememberNestedScrollInteropConnection() val state = rememberLazyListState() - val context = LocalContext.current LazyColumnThemedScrollbar(state = state) { LazyColumn( diff --git a/app/src/main/res/layout/fragment_video_detail.xml b/app/src/main/res/layout/fragment_video_detail.xml index d7e2e5a3c..abf1509b1 100644 --- a/app/src/main/res/layout/fragment_video_detail.xml +++ b/app/src/main/res/layout/fragment_video_detail.xml @@ -214,15 +214,6 @@ android:layout_marginTop="@dimen/video_item_detail_error_panel_margin" android:visibility="gone" tools:visibility="gone" /> - -