Skip to content

Commit

Permalink
Gplay: do not allow to download APK/AAB
Browse files Browse the repository at this point in the history
Signed-off-by: tobiasKaminsky <[email protected]>

[skip ci]
  • Loading branch information
tobiasKaminsky authored and backportbot[bot] committed Aug 23, 2024
1 parent 27d2970 commit 9b35582
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1024,6 +1024,12 @@ private void folderOnItemClick(OCFile file, int position) {
}

private void fileOnItemClick(OCFile file) {
if (isAPKorAAB(Set.of(file))) {
Snackbar.make(getRecyclerView(),
R.string.gplay_restriction,
Snackbar.LENGTH_LONG).show();
return;
}
if (PreviewImageFragment.canBePreviewed(file)) {
// preview image - it handles the download, if needed
if (searchFragment) {
Expand Down

0 comments on commit 9b35582

Please sign in to comment.