From aac0de2393bad37a56eabc5ebb4cb839bcdbe2e1 Mon Sep 17 00:00:00 2001 From: Docile-Alligator <25734209+Docile-Alligator@users.noreply.github.com> Date: Tue, 17 Sep 2024 10:06:21 -0400 Subject: Show a toast when downloading media in PostOptionsBottomSheetFragment. --- .../bottomsheetfragments/PostOptionsBottomSheetFragment.java | 2 ++ 1 file changed, 2 insertions(+) (limited to 'app/src/main') diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/bottomsheetfragments/PostOptionsBottomSheetFragment.java b/app/src/main/java/ml/docilealligator/infinityforreddit/bottomsheetfragments/PostOptionsBottomSheetFragment.java index d10e0d5d..faeb2b3d 100644 --- a/app/src/main/java/ml/docilealligator/infinityforreddit/bottomsheetfragments/PostOptionsBottomSheetFragment.java +++ b/app/src/main/java/ml/docilealligator/infinityforreddit/bottomsheetfragments/PostOptionsBottomSheetFragment.java @@ -9,6 +9,7 @@ import android.os.PersistableBundle; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; +import android.widget.Toast; import androidx.annotation.IntDef; import androidx.annotation.NonNull; @@ -98,6 +99,7 @@ public class PostOptionsBottomSheetFragment extends LandscapeExpandedRoundedBott if (binding.downloadTextViewPostOptionsBottomSheetFragment.getVisibility() == View.VISIBLE) { binding.downloadTextViewPostOptionsBottomSheetFragment.setOnClickListener(view -> { + Toast.makeText(mBaseActivity, R.string.download_started, Toast.LENGTH_SHORT).show(); if (mPost.getPostType() == Post.VIDEO_TYPE) { if (!mPost.isRedgifs() && !mPost.isStreamable() && !mPost.isImgur()) { PersistableBundle extras = new PersistableBundle(); -- cgit v1.2.3