about summary refs log tree commit diff stats
path: root/org.fox.ttrss/src/main/java
diff options
context:
space:
mode:
authorAndrew Dolgov <fox@fakecake.org>2025-05-06 08:53:41 +0300
committerAndrew Dolgov <fox@fakecake.org>2025-05-06 08:53:41 +0300
commit526c3d9897b585f2ee020b1eb67a84aa8cf4e235 (patch)
tree4000cd8c9203f2aa5841e6f075494abe7562dccf /org.fox.ttrss/src/main/java
parent04a932e7176859590b9acb76864d3f4682cacbec (diff)
downloadtt-rss-android-526c3d9897b585f2ee020b1eb67a84aa8cf4e235.tar.gz
tt-rss-android-526c3d9897b585f2ee020b1eb67a84aa8cf4e235.tar.xz
replace one more switch with if
Diffstat (limited to 'org.fox.ttrss/src/main/java')
-rwxr-xr-xorg.fox.ttrss/src/main/java/org/fox/ttrss/LogcatActivity.java22
1 files changed, 10 insertions, 12 deletions
diff --git a/org.fox.ttrss/src/main/java/org/fox/ttrss/LogcatActivity.java b/org.fox.ttrss/src/main/java/org/fox/ttrss/LogcatActivity.java
index 037e4d7c..75a9c268 100755
--- a/org.fox.ttrss/src/main/java/org/fox/ttrss/LogcatActivity.java
+++ b/org.fox.ttrss/src/main/java/org/fox/ttrss/LogcatActivity.java
@@ -92,19 +92,17 @@ public class LogcatActivity extends CommonActivity {
     public boolean onOptionsItemSelected(MenuItem item) {
         int id = item.getItemId();
 
-        switch (id) {
-            case android.R.id.home:
-                onBackPressed();
-                return true;
-            case R.id.logcat_copy:
-                shareLogcat();
-                return true;
-            case R.id.logcat_refresh:
-                refresh();
-                return true;
-            default:
-                return super.onOptionsItemSelected(item);
+        if (id == android.R.id.home) {
+            onBackPressed();
+            return true;
+        } else if (id == R.id.logcat_copy) {
+            shareLogcat();
+            return true;
+        } else if (id == R.id.logcat_refresh) {
+            refresh();
+            return true;
         }
+        return super.onOptionsItemSelected(item);
     }
 
     private void shareLogcat() {