From 329813d1b351508e46cb61d69916944be18aaa96 Mon Sep 17 00:00:00 2001 From: ivan agosto Date: Sun, 10 Feb 2019 10:29:36 -0600 Subject: [PATCH] Videos per page settings added --- .../java/org/libre/agosto/p2play/ReproductorActivity.kt | 3 +-- app/src/main/res/layout/nav_header_main.xml | 7 +++---- app/src/main/res/values-es/strings.xml | 1 + app/src/main/res/values/strings.xml | 1 + app/src/main/res/xml/pref_general.xml | 8 ++++++++ 5 files changed, 14 insertions(+), 6 deletions(-) diff --git a/app/src/main/java/org/libre/agosto/p2play/ReproductorActivity.kt b/app/src/main/java/org/libre/agosto/p2play/ReproductorActivity.kt index afabc49..41614cb 100644 --- a/app/src/main/java/org/libre/agosto/p2play/ReproductorActivity.kt +++ b/app/src/main/java/org/libre/agosto/p2play/ReproductorActivity.kt @@ -272,12 +272,11 @@ class ReproductorActivity : AppCompatActivity() { return } try { - this.mCustomView = paramView this.mOriginalSystemUiVisibility = this@ReproductorActivity.window.decorView.systemUiVisibility this.mOriginalOrientation = this@ReproductorActivity.requestedOrientation this.mCustomViewCallback = paramCustomViewCallback - (this@ReproductorActivity.window.decorView as FrameLayout).addView(this.mCustomView, FrameLayout.LayoutParams(-1, -1)) + (this@ReproductorActivity.window.decorView as FrameLayout).addView(this.mCustomView, FrameLayout.LayoutParams(0, 0)) this@ReproductorActivity.window.decorView.systemUiVisibility = 3846 } catch (err: Exception){ diff --git a/app/src/main/res/layout/nav_header_main.xml b/app/src/main/res/layout/nav_header_main.xml index 98507c9..415dd63 100644 --- a/app/src/main/res/layout/nav_header_main.xml +++ b/app/src/main/res/layout/nav_header_main.xml @@ -14,11 +14,10 @@ + app:srcCompat="@drawable/default_avatar" /> Si es activado podria mostrar contenido para adultos o sencible. Instancia Peertube Reinicia para aplicar los cambios + Videos por pagina \ No newline at end of file diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 23826c0..718ff12 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -102,6 +102,7 @@ Peertube instance - Restart app to apply changes + Videos per page diff --git a/app/src/main/res/xml/pref_general.xml b/app/src/main/res/xml/pref_general.xml index 7c0d5ef..b0e6117 100644 --- a/app/src/main/res/xml/pref_general.xml +++ b/app/src/main/res/xml/pref_general.xml @@ -18,4 +18,12 @@ android:summary="@string/pref_nfsw_description" android:title="@string/pref_nfsw_title" /> + +