[Android] DebugLogActivity: fix indent problem

Edward Wang git at videolan.org
Wed Jul 16 18:38:10 CEST 2014


vlc-ports/android | branch: master | Edward Wang <edward.c.wang at compdigitec.com> | Wed Jul 16 12:34:16 2014 -0400| [a307eb5a3109cf580a4df3a86fddbe916ff3916d] | committer: Edward Wang

DebugLogActivity: fix indent problem

> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=a307eb5a3109cf580a4df3a86fddbe916ff3916d
---

 vlc-android/src/org/videolan/vlc/gui/DebugLogActivity.java |    5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/vlc-android/src/org/videolan/vlc/gui/DebugLogActivity.java b/vlc-android/src/org/videolan/vlc/gui/DebugLogActivity.java
index e3af213..c3c1586 100644
--- a/vlc-android/src/org/videolan/vlc/gui/DebugLogActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/DebugLogActivity.java
@@ -81,9 +81,8 @@ public class DebugLogActivity extends Activity {
         updateTextView(instance);
 
         Button copyToClipboard = (Button)findViewById(R.id.copy_to_clipboard);
-        if(((TextView)findViewById(R.id.textview)).getText().length() > 0)
-            copyToClipboard.setEnabled(true);
-            copyToClipboard.setOnClickListener(new View.OnClickListener() {
+        copyToClipboard.setEnabled(((TextView)findViewById(R.id.textview)).getText().length() > 0);
+        copyToClipboard.setOnClickListener(new View.OnClickListener() {
             @Override
             public void onClick(View v) {
                 copyTextToClipboard();



More information about the Android mailing list