[Android] restore debug activity for Jellybean+
Geoffrey Métais
git at videolan.org
Tue Oct 27 10:48:04 CET 2015
vlc-ports/android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Tue Oct 27 10:47:26 2015 +0100| [4d4882bdd37cfe6fb5db006a15e833a3bdcd31dc] | committer: Geoffrey Métais
restore debug activity for Jellybean+
> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=4d4882bdd37cfe6fb5db006a15e833a3bdcd31dc
---
vlc-android/src/org/videolan/vlc/gui/preferences/Developer.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/vlc-android/src/org/videolan/vlc/gui/preferences/Developer.java b/vlc-android/src/org/videolan/vlc/gui/preferences/Developer.java
index 73a1001..cb9a5d5 100644
--- a/vlc-android/src/org/videolan/vlc/gui/preferences/Developer.java
+++ b/vlc-android/src/org/videolan/vlc/gui/preferences/Developer.java
@@ -52,8 +52,8 @@ public class Developer extends BasePreferenceFragment implements SharedPreferenc
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
- findPreference("debug_logs").setVisible(BuildConfig.DEBUG && (AndroidUtil.isJellyBeanMR1OrLater() ||
- getActivity().checkCallingOrSelfPermission(Manifest.permission.READ_LOGS) == PackageManager.PERMISSION_GRANTED));
+ findPreference("debug_logs").setVisible(AndroidUtil.isJellyBeanOrLater() ||
+ (BuildConfig.DEBUG && getActivity().checkCallingOrSelfPermission(Manifest.permission.READ_LOGS) == PackageManager.PERMISSION_GRANTED));
}
@Override
More information about the Android
mailing list