diff --git a/app/src/main/java/com/owncloud/android/ui/fragment/FileDetailSharingFragment.java b/app/src/main/java/com/owncloud/android/ui/fragment/FileDetailSharingFragment.java index 6aa21b6ff8..071faeee46 100644 --- a/app/src/main/java/com/owncloud/android/ui/fragment/FileDetailSharingFragment.java +++ b/app/src/main/java/com/owncloud/android/ui/fragment/FileDetailSharingFragment.java @@ -81,7 +81,7 @@ public class FileDetailSharingFragment extends Fragment implements ShareeListAda DisplayUtils.AvatarGenerationListener, Injectable, FileDetailsSharingMenuBottomSheetActions, QuickSharingPermissionsBottomSheetDialog.QuickPermissionSharingBottomSheetActions { - private final String tag = "FileDetailSharingFragment"; + private static final String TAG = "FileDetailSharingFragment"; private static final String ARG_FILE = "FILE"; private static final String ARG_USER = "USER"; @@ -543,7 +543,7 @@ public class FileDetailSharingFragment extends Fragment implements ShareeListAda @Override public void onSaveInstanceState(@NonNull Bundle outState) { super.onSaveInstanceState(outState); - FileExtensionsKt.logFileSize(file, tag); + FileExtensionsKt.logFileSize(file, TAG); outState.putParcelable(ARG_FILE, file); outState.putParcelable(ARG_USER, user); } diff --git a/app/src/main/java/com/owncloud/android/ui/fragment/GalleryFragment.java b/app/src/main/java/com/owncloud/android/ui/fragment/GalleryFragment.java index 14675325b7..d1d2fa8b5e 100644 --- a/app/src/main/java/com/owncloud/android/ui/fragment/GalleryFragment.java +++ b/app/src/main/java/com/owncloud/android/ui/fragment/GalleryFragment.java @@ -67,8 +67,8 @@ public class GalleryFragment extends OCFileListFragment implements GalleryFragme private GalleryFragmentBottomSheetDialog galleryFragmentBottomSheetDialog; @Inject FileDataStorageManager fileDataStorageManager; - private final int maxColumnSizeLandscape = 5; - private final int maxColumnSizePortrait = 2; + private final static int maxColumnSizeLandscape = 5; + private final static int maxColumnSizePortrait = 2; private int columnSize; protected void setPhotoSearchQueryRunning(boolean value) { diff --git a/app/src/main/java/com/owncloud/android/ui/preview/PreviewTextStringFragment.java b/app/src/main/java/com/owncloud/android/ui/preview/PreviewTextStringFragment.java index 7229e453e5..28b63b979a 100644 --- a/app/src/main/java/com/owncloud/android/ui/preview/PreviewTextStringFragment.java +++ b/app/src/main/java/com/owncloud/android/ui/preview/PreviewTextStringFragment.java @@ -22,7 +22,6 @@ import com.nextcloud.client.account.UserAccountManager; import com.nextcloud.utils.extensions.FileExtensionsKt; import com.owncloud.android.R; import com.owncloud.android.lib.common.operations.RemoteOperationResult; -import com.owncloud.android.lib.common.utils.Log_OC; import com.owncloud.android.ui.activity.FileDisplayActivity; import com.owncloud.android.utils.DisplayUtils; import com.owncloud.android.utils.theme.ViewThemeUtils; @@ -39,7 +38,7 @@ public class PreviewTextStringFragment extends PreviewTextFragment { @Inject UserAccountManager accountManager; @Inject ViewThemeUtils viewThemeUtils; - private final String tag = "PreviewTextStringFragment"; + private final static String TAG = "PreviewTextStringFragment"; private boolean isEditorWebviewLaunched = false; /** @@ -73,7 +72,7 @@ public class PreviewTextStringFragment extends PreviewTextFragment { */ @Override public void onSaveInstanceState(@NonNull Bundle outState) { - FileExtensionsKt.logFileSize(getFile(), tag); + FileExtensionsKt.logFileSize(getFile(), TAG); outState.putParcelable(PreviewTextStringFragment.EXTRA_FILE, getFile()); super.onSaveInstanceState(outState);