summaryrefslogtreecommitdiff
path: root/org.fox.ttrss
diff options
context:
space:
mode:
Diffstat (limited to 'org.fox.ttrss')
-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() {