diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml
index a548dad46..dbc40491c 100644
--- a/app/src/main/AndroidManifest.xml
+++ b/app/src/main/AndroidManifest.xml
@@ -22,7 +22,7 @@
android:supportsRtl="true"
android:theme="@style/Theme.Purple">
()
+ private val managedDelegates = LinkedList()
fun register(managed: Resettable) {
synchronized(managedDelegates) {
@@ -38,7 +38,7 @@ class ResettableLazy(val manager: ResettableLazyManager, val init: ()
lazyHolder = makeInitBlock()
}
- fun makeInitBlock(): Lazy {
+ private fun makeInitBlock(): Lazy {
return lazy {
manager.register(this)
init()
diff --git a/app/src/main/java/com/github/libretube/util/RetrofitInstance.kt b/app/src/main/java/com/github/libretube/util/RetrofitInstance.kt
index ebc6b9f7c..713d1671c 100644
--- a/app/src/main/java/com/github/libretube/util/RetrofitInstance.kt
+++ b/app/src/main/java/com/github/libretube/util/RetrofitInstance.kt
@@ -1,7 +1,5 @@
package com.github.libretube.util
-import com.github.libretube.resettableLazy
-import com.github.libretube.resettableManager
import retrofit2.Retrofit
import retrofit2.converter.jackson.JacksonConverterFactory
diff --git a/app/src/main/java/com/github/libretube/util/ThemeHelper.kt b/app/src/main/java/com/github/libretube/util/ThemeHelper.kt
index 3fb5cd385..af3fd368b 100644
--- a/app/src/main/java/com/github/libretube/util/ThemeHelper.kt
+++ b/app/src/main/java/com/github/libretube/util/ThemeHelper.kt
@@ -8,6 +8,7 @@ import android.content.pm.PackageManager
import androidx.appcompat.app.AppCompatActivity
import androidx.appcompat.app.AppCompatDelegate
import com.github.libretube.R
+import com.github.libretube.preferences.PreferenceHelper
object ThemeHelper {
diff --git a/app/src/main/java/com/github/libretube/util/CustomExoPlayerView.kt b/app/src/main/java/com/github/libretube/views/CustomExoPlayerView.kt
similarity index 96%
rename from app/src/main/java/com/github/libretube/util/CustomExoPlayerView.kt
rename to app/src/main/java/com/github/libretube/views/CustomExoPlayerView.kt
index acb87ce11..a3886f8ce 100644
--- a/app/src/main/java/com/github/libretube/util/CustomExoPlayerView.kt
+++ b/app/src/main/java/com/github/libretube/views/CustomExoPlayerView.kt
@@ -1,4 +1,4 @@
-package com.github.libretube.util
+package com.github.libretube.views
import android.annotation.SuppressLint
import android.content.Context
diff --git a/app/src/main/java/com/github/libretube/util/CustomSwipeToRefresh.kt b/app/src/main/java/com/github/libretube/views/CustomSwipeToRefresh.kt
similarity index 96%
rename from app/src/main/java/com/github/libretube/util/CustomSwipeToRefresh.kt
rename to app/src/main/java/com/github/libretube/views/CustomSwipeToRefresh.kt
index b71f587e3..87ee39d51 100644
--- a/app/src/main/java/com/github/libretube/util/CustomSwipeToRefresh.kt
+++ b/app/src/main/java/com/github/libretube/views/CustomSwipeToRefresh.kt
@@ -1,4 +1,4 @@
-package com.github.libretube.util
+package com.github.libretube.views
import android.content.Context
import android.util.AttributeSet
diff --git a/app/src/main/java/com/github/libretube/util/SingleViewTouchableMotionLayout.kt b/app/src/main/java/com/github/libretube/views/SingleViewTouchableMotionLayout.kt
similarity index 99%
rename from app/src/main/java/com/github/libretube/util/SingleViewTouchableMotionLayout.kt
rename to app/src/main/java/com/github/libretube/views/SingleViewTouchableMotionLayout.kt
index 8ec436fd0..9eb3060bb 100644
--- a/app/src/main/java/com/github/libretube/util/SingleViewTouchableMotionLayout.kt
+++ b/app/src/main/java/com/github/libretube/views/SingleViewTouchableMotionLayout.kt
@@ -1,4 +1,4 @@
-package com.github.libretube.util
+package com.github.libretube.views
import android.content.Context
import android.graphics.Rect
diff --git a/app/src/main/res/layout/activity_player.xml b/app/src/main/res/layout/activity_player.xml
index c9851ab3f..8075249cf 100644
--- a/app/src/main/res/layout/activity_player.xml
+++ b/app/src/main/res/layout/activity_player.xml
@@ -4,9 +4,9 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@android:color/black"
- tools:context=".util.Player">
+ tools:context=".activities.Player">
-
-
-
+
diff --git a/app/src/main/res/layout/fragment_library.xml b/app/src/main/res/layout/fragment_library.xml
index f79dff1e7..fe0f24e73 100644
--- a/app/src/main/res/layout/fragment_library.xml
+++ b/app/src/main/res/layout/fragment_library.xml
@@ -33,7 +33,7 @@
android:textStyle="bold" />
-
@@ -88,7 +88,7 @@
-
+
-
-
-
+
diff --git a/app/src/main/res/layout/fragment_subscriptions.xml b/app/src/main/res/layout/fragment_subscriptions.xml
index fc0ba8155..0082a2a97 100644
--- a/app/src/main/res/layout/fragment_subscriptions.xml
+++ b/app/src/main/res/layout/fragment_subscriptions.xml
@@ -39,7 +39,7 @@
android:textStyle="bold" />
-
@@ -101,5 +101,5 @@
-
+
diff --git a/app/src/main/res/layout/fragment_watch_history.xml b/app/src/main/res/layout/fragment_watch_history.xml
index daefe3a64..3e522b29d 100644
--- a/app/src/main/res/layout/fragment_watch_history.xml
+++ b/app/src/main/res/layout/fragment_watch_history.xml
@@ -6,37 +6,37 @@
+ android:orientation="vertical">
-
-
-
+ android:layout_marginBottom="8dp"
+ android:paddingHorizontal="8dp">
-
+
-
+
-
+
+
+