Browse Source

Revert auto-formatting fixes

Signed-off-by: ardevd <edvard.holst@gmail.com>
ardevd 6 năm trước cách đây
mục cha
commit
1f11845d35

+ 9 - 8
src/main/java/com/owncloud/android/ui/activity/LogHistoryActivity.java

@@ -168,7 +168,7 @@ public class LogHistoryActivity extends ToolbarActivity {
         try {
         try {
             startActivity(intent);
             startActivity(intent);
         } catch (ActivityNotFoundException e) {
         } catch (ActivityNotFoundException e) {
-            Snackbar.make(findViewById(android.R.id.content), R.string.log_send_no_mail_app, Snackbar.LENGTH_LONG).show();
+            Snackbar.make(findViewById(android.R.id.content),R.string.log_send_no_mail_app,Snackbar.LENGTH_LONG).show();
             Log_OC.i(TAG, "Could not find app for sending log history.");
             Log_OC.i(TAG, "Could not find app for sending log history.");
         }
         }
 
 
@@ -182,7 +182,7 @@ public class LogHistoryActivity extends ToolbarActivity {
 
 
         LoadingLogTask(TextView logTV) {
         LoadingLogTask(TextView logTV) {
             // Use of a WeakReference to ensure the TextView can be garbage collected
             // Use of a WeakReference to ensure the TextView can be garbage collected
-            textViewReference = new WeakReference<>(logTV);
+            textViewReference  = new WeakReference<>(logTV);
         }
         }
 
 
         protected String doInBackground(String... args) {
         protected String doInBackground(String... args) {
@@ -214,12 +214,12 @@ public class LogHistoryActivity extends ToolbarActivity {
             try {
             try {
                 String line;
                 String line;
 
 
-                for (int i = logFileName.length - 1; i >= 0; i--) {
-                    File file = new File(mLogPath, logFileName[i]);
+                for (int i = logFileName.length-1; i >= 0; i--) {
+                    File file = new File(mLogPath,logFileName[i]);
                     if (file.exists()) {
                     if (file.exists()) {
+                        // Check if FileReader is ready
                         try (InputStreamReader inputStreamReader = new InputStreamReader(new FileInputStream(file),
                         try (InputStreamReader inputStreamReader = new InputStreamReader(new FileInputStream(file),
                                                                                          Charset.forName("UTF-8"))) {
                                                                                          Charset.forName("UTF-8"))) {
-                            // Check if FileReader is ready
                             if (inputStreamReader.ready()) {
                             if (inputStreamReader.ready()) {
                                 br = new BufferedReader(inputStreamReader);
                                 br = new BufferedReader(inputStreamReader);
                                 while ((line = br.readLine()) != null) {
                                 while ((line = br.readLine()) != null) {
@@ -231,7 +231,8 @@ public class LogHistoryActivity extends ToolbarActivity {
                         }
                         }
                     }
                     }
                 }
                 }
-            } catch (IOException e) {
+            }
+            catch (IOException e) {
                 Log_OC.d(TAG, e.getMessage());
                 Log_OC.d(TAG, e.getMessage());
 
 
             } finally {
             } finally {
@@ -247,7 +248,7 @@ public class LogHistoryActivity extends ToolbarActivity {
 
 
             return text.toString();
             return text.toString();
         }
         }
-    }
+   }
 
 
     /**
     /**
      * Show loading dialog
      * Show loading dialog
@@ -263,7 +264,7 @@ public class LogHistoryActivity extends ToolbarActivity {
     /**
     /**
      * Dismiss loading dialog
      * Dismiss loading dialog
      */
      */
-    public void dismissLoadingDialog() {
+    public void dismissLoadingDialog(){
         Fragment frag = getSupportFragmentManager().findFragmentByTag(DIALOG_WAIT_TAG);
         Fragment frag = getSupportFragmentManager().findFragmentByTag(DIALOG_WAIT_TAG);
         if (frag != null) {
         if (frag != null) {
             LoadingDialog loading = (LoadingDialog) frag;
             LoadingDialog loading = (LoadingDialog) frag;