Fix code analytics

Signed-off-by: alperozturk <alper_ozturk@proton.me>
This commit is contained in:
alperozturk 2024-06-20 12:12:25 +02:00 committed by Alper Öztürk
parent a8d96d0319
commit d1d8c58c76
3 changed files with 6 additions and 7 deletions

View file

@ -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);
}

View file

@ -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) {

View file

@ -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);