Skip to content

Commit 8162621

Browse files
committed
fix spotbugs
Signed-off-by: alperozturk96 <alper_ozturk@proton.me>
1 parent 8d5d146 commit 8162621

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

app/src/main/java/com/nextcloud/client/preferences/AppPreferences.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
import com.nextcloud.appReview.AppReviewShownModel;
1414
import com.nextcloud.client.jobs.LogEntry;
1515
import com.owncloud.android.datamodel.OCFile;
16-
import com.owncloud.android.ui.fragment.FileListLayoutManager;
1716
import com.owncloud.android.ui.fragment.FolderLayout;
1817
import com.owncloud.android.utils.FileSortOrder;
1918

@@ -145,7 +144,7 @@ default void onDarkThemeModeChanged(DarkMode mode) {
145144
* @param layout FolderLayout which layout is being set
146145
* @param layoutName preference value
147146
*/
148-
void setFolderLayout(@Nullable FolderLayout layout, String layoutName);
147+
void setFolderLayout(@NonNull FolderLayout layout, String layoutName);
149148

150149
/**
151150
* Saves the path where the user selected to do the last upload of a file shared from other app.

app/src/main/java/com/nextcloud/client/preferences/AppPreferencesImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ public String getFolderLayout(FolderLayout layout) {
355355
}
356356

357357
@Override
358-
public void setFolderLayout(FolderLayout layout, String layoutName) {
358+
public void setFolderLayout(@NonNull FolderLayout layout, String layoutName) {
359359
if (layout instanceof FolderLayout.Child child) {
360360
setFolderPreference(context,
361361
userAccountManager.getUser(),

0 commit comments

Comments
 (0)