summaryrefslogtreecommitdiffhomepage
path: root/app
diff options
context:
space:
mode:
authorHarsh Shandilya <me@msfjarvis.dev>2018-06-05 19:52:08 +0530
committerHarsh Shandilya <me@msfjarvis.dev>2018-06-05 19:52:08 +0530
commitd8d6e99df138069aec60895947ff44ccd392c067 (patch)
tree9dd1aa9fb70df9122a2831fa65a45471c38b0726 /app
parent377ba1c9d1e459a7431815b0e8669bbb1c5a200f (diff)
MainActivity: Silence useless warning
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
Diffstat (limited to 'app')
-rw-r--r--app/src/main/java/com/wireguard/android/activity/MainActivity.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/src/main/java/com/wireguard/android/activity/MainActivity.java b/app/src/main/java/com/wireguard/android/activity/MainActivity.java
index e60fa8cf..3a0d9d7b 100644
--- a/app/src/main/java/com/wireguard/android/activity/MainActivity.java
+++ b/app/src/main/java/com/wireguard/android/activity/MainActivity.java
@@ -6,6 +6,7 @@
package com.wireguard.android.activity;
+import android.annotation.SuppressLint;
import android.content.Intent;
import android.os.Bundle;
import android.support.v4.app.Fragment;
@@ -82,6 +83,9 @@ public class MainActivity extends BaseActivity {
}
}
+ // We use onTouchListener here to avoid the UI click sound, hence
+ // calling View#performClick defeats the purpose of it.
+ @SuppressLint("ClickableViewAccessibility")
@Override
protected void onCreate(final Bundle savedInstanceState) {
super.onCreate(savedInstanceState);