[Android] Set padding to debug activity

Geoffrey Métais git at videolan.org
Fri Dec 21 11:15:40 CET 2018


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Fri Dec 21 11:13:45 2018 +0100| [238e0b187ce6d6f46a66c7085ccedf9c3c1b567d] | committer: Geoffrey Métais

Set padding to debug activity

> https://code.videolan.org/videolan/vlc-android/commit/238e0b187ce6d6f46a66c7085ccedf9c3c1b567d
---

 vlc-android/res/layout/debug_log.xml                                 | 5 +++--
 .../src/org/videolan/vlc/gui/preferences/PreferencesAdvanced.java    | 2 +-
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/vlc-android/res/layout/debug_log.xml b/vlc-android/res/layout/debug_log.xml
index 7c19407ff..b9b12edef 100644
--- a/vlc-android/res/layout/debug_log.xml
+++ b/vlc-android/res/layout/debug_log.xml
@@ -2,11 +2,12 @@
 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
     android:layout_width="match_parent"
     android:layout_height="match_parent"
-    android:orientation="vertical">
+    android:orientation="vertical"
+    android:padding="16dp">
 
     <LinearLayout
         android:layout_width="match_parent"
-        android:layout_height="wrap_content">
+        android:layout_height="wrap_content" >
 
         <Button
             android:id="@+id/start_log"
diff --git a/vlc-android/src/org/videolan/vlc/gui/preferences/PreferencesAdvanced.java b/vlc-android/src/org/videolan/vlc/gui/preferences/PreferencesAdvanced.java
index e3531dcd8..61a7f813b 100644
--- a/vlc-android/src/org/videolan/vlc/gui/preferences/PreferencesAdvanced.java
+++ b/vlc-android/src/org/videolan/vlc/gui/preferences/PreferencesAdvanced.java
@@ -89,7 +89,7 @@ public class PreferencesAdvanced extends BasePreferenceFragment implements Share
                 startActivity(intent);
                 return true;
             case "clear_history":
-                new AlertDialog.Builder(getActivity())
+                new AlertDialog.Builder(requireContext())
                         .setTitle(R.string.clear_playback_history)
                         .setMessage(R.string.validation)
                         .setIcon(android.R.drawable.ic_dialog_alert)



More information about the Android mailing list