Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Table of Contents

* [Changelog for unreleased](#changelog-for-owncloud-android-client-unreleased-unreleased)
* [Changelog for 4.8.2](#changelog-for-owncloud-android-client-482-2026-06-30)
* [Changelog for 4.8.1](#changelog-for-owncloud-android-client-481-2026-06-09)
* [Changelog for 4.8.0](#changelog-for-owncloud-android-client-480-2026-05-18)
* [Changelog for 4.7.0](#changelog-for-owncloud-android-client-470-2025-11-17)
Expand Down Expand Up @@ -33,12 +33,12 @@
* [Changelog for 2.18.1](#changelog-for-owncloud-android-client-2181-2021-07-20)
* [Changelog for 2.18.0](#changelog-for-owncloud-android-client-2180-2021-05-24)
* [Changelog for 2.17 versions and below](#changelog-for-217-versions-and-below)
# Changelog for ownCloud Android Client [unreleased] (UNRELEASED)
# Changelog for ownCloud Android Client [4.8.2] (2026-06-30)

The following sections list the changes in ownCloud Android Client unreleased relevant to
The following sections list the changes in ownCloud Android Client 4.8.2 relevant to
ownCloud admins and users.

[unreleased]: https://github.com/owncloud/android/compare/v4.8.1...master
[4.8.2]: https://github.com/owncloud/android/compare/v4.8.1...v4.8.2

## Summary

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions owncloudApp/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,8 @@ android {

testInstrumentationRunner "com.owncloud.android.utils.OCTestAndroidJUnitRunner"

versionCode = 48000100
versionName = "4.8.1"
versionCode = 48000200
versionName = "4.8.2"

buildConfigField "String", gitRemote, "\"" + getGitOriginRemote() + "\""
buildConfigField "String", commitSHA1, "\"" + getLatestGitHash() + "\""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,17 +96,19 @@ fun Activity.showMessageInSnackbar(
message: CharSequence,
duration: Int = Snackbar.LENGTH_LONG
) {
Snackbar.make(findViewById(layoutId), message, duration).show()
Snackbar.make(findViewById(layoutId), message, duration)
.setAnchorView(findViewById(R.id.bottom_nav_view))
.show()
}

fun Activity.showSnackbarWithAction(
message: CharSequence,
actionText: CharSequence,
action: () -> Unit,
duration: Int = Snackbar.LENGTH_LONG,
layoutId: Int = android.R.id.content
) {
Snackbar.make(findViewById(layoutId), message, duration)
Snackbar.make(findViewById(android.R.id.content), message, duration)
.setAnchorView(findViewById(R.id.bottom_nav_view))
.setAction(actionText) { action() }
.show()
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@
*
* @author David González Verdugo
* @author Juan Carlos Garrote Gascón
* @author Jorge Aguado Recio
*
* Copyright (C) 2023 ownCloud GmbH.
* Copyright (C) 2026 ownCloud GmbH.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2,
Expand Down Expand Up @@ -47,8 +48,10 @@ fun Fragment.showMessageInSnackbar(
message: CharSequence,
duration: Int = Snackbar.LENGTH_LONG
) {
val requiredView = view ?: return
Snackbar.make(requiredView, message, duration).show()
val requiredView = view?.rootView ?: return
Snackbar.make(requiredView, message, duration)
.setAnchorView(requiredView.findViewById(R.id.bottom_nav_view))
.show()
}

fun Fragment.showSnackbarWithAction(
Expand All @@ -57,8 +60,9 @@ fun Fragment.showSnackbarWithAction(
action: () -> Unit,
duration: Int = Snackbar.LENGTH_LONG
) {
val requiredView = view ?: return
val requiredView = view?.rootView ?: return
Snackbar.make(requiredView, message, duration)
.setAnchorView(requiredView.findViewById(R.id.bottom_nav_view))
.setAction(actionText) { action() }
.show()
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* @author Juan Carlos Garrote Gascón
* @author Jorge Aguado Recio
*
* Copyright (C) 2025 ownCloud GmbH.
* Copyright (C) 2026 ownCloud GmbH.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2,
Expand Down Expand Up @@ -88,7 +88,7 @@ class TransferListFragment : Fragment() {
view,
getString(R.string.local_file_not_found_toast),
Snackbar.LENGTH_LONG
).show()
).setAnchorView(view.rootView.findViewById(R.id.bottom_nav_view)).show()
}
}
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* ownCloud Android client application
* <p>
* Copyright (C) 2022 ownCloud GmbH.
* Copyright (C) 2026 ownCloud GmbH.
* <p>
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2,
Expand Down Expand Up @@ -35,6 +35,7 @@
import androidx.fragment.app.FragmentTransaction;
import com.google.android.material.snackbar.Snackbar;
import com.owncloud.android.MainApp;
import com.owncloud.android.R;
import com.owncloud.android.presentation.authentication.AccountUtils;
import com.owncloud.android.datamodel.FileDataStorageManager;
import com.owncloud.android.domain.files.model.OCFile;
Expand Down Expand Up @@ -325,6 +326,8 @@ public void showSnackMessage(String message) {
Toast.makeText(this, message, Toast.LENGTH_LONG).show();
return;
}
Snackbar.make(rootView, message, Snackbar.LENGTH_LONG).show();
Snackbar.make(rootView, message, Snackbar.LENGTH_LONG)
.setAnchorView(findViewById(R.id.bottom_nav_view))
.show();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -289,8 +289,7 @@ protected void showRequestAccountChangeNotice(String errorMessage, boolean mustC
requestCredentialsUpdate();
return Unit.INSTANCE;
},
Snackbar.LENGTH_INDEFINITE,
android.R.id.content
Snackbar.LENGTH_INDEFINITE
);
}
}
Expand All @@ -304,8 +303,7 @@ protected void showRequestRegainAccess() {
requestCredentialsUpdate();
return Unit.INSTANCE;
},
Snackbar.LENGTH_INDEFINITE,
android.R.id.content
Snackbar.LENGTH_INDEFINITE
);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1178,7 +1178,6 @@ class FileDisplayActivity : FileActivity(),
}
updateBottombar(targetFolderSpace)
},
layoutId = R.id.list_layout
)
} else {
showMessageInSnackbar(R.id.list_layout, message)
Expand Down