소스 검색

Update app/src/main/java/com/owncloud/android/ui/preview/PreviewImageActivity.java

Co-authored-by: Tom <70907959+ZetaTom@users.noreply.github.com>
Signed-off-by: Alper Öztürk <67455295+alperozturk96@users.noreply.github.com>
Alper Öztürk 1 년 전
부모
커밋
2ac1b51560
1개의 변경된 파일2개의 추가작업 그리고 5개의 파일을 삭제
  1. 2 5
      app/src/main/java/com/owncloud/android/ui/preview/PreviewImageActivity.java

+ 2 - 5
app/src/main/java/com/owncloud/android/ui/preview/PreviewImageActivity.java

@@ -195,7 +195,6 @@ public class PreviewImageActivity extends FileActivity implements
 
     @Override
     public boolean onOptionsItemSelected(MenuItem item) {
-        boolean returnValue;
         if (item.getItemId() == android.R.id.home) {
             sendRefreshSearchEventBroadcast();
 
@@ -204,12 +203,10 @@ public class PreviewImageActivity extends FileActivity implements
             } else {
                 backToDisplayActivity();
             }
-            returnValue = true;
+            return true;
         } else {
-            returnValue = super.onOptionsItemSelected(item);
+            return onOptionsItemSelected(item);
         }
-
-        return returnValue;
     }
 
     private void sendRefreshSearchEventBroadcast() {