Skip to content

Commit aac0de2

Browse files
Show a toast when downloading media in PostOptionsBottomSheetFragment.
1 parent c15f117 commit aac0de2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

app/src/main/java/ml/docilealligator/infinityforreddit/bottomsheetfragments/PostOptionsBottomSheetFragment.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
import android.view.LayoutInflater;
1010
import android.view.View;
1111
import android.view.ViewGroup;
12+
import android.widget.Toast;
1213

1314
import androidx.annotation.IntDef;
1415
import androidx.annotation.NonNull;
@@ -98,6 +99,7 @@ public View onCreateView(@NonNull LayoutInflater inflater, ViewGroup container,
9899

99100
if (binding.downloadTextViewPostOptionsBottomSheetFragment.getVisibility() == View.VISIBLE) {
100101
binding.downloadTextViewPostOptionsBottomSheetFragment.setOnClickListener(view -> {
102+
Toast.makeText(mBaseActivity, R.string.download_started, Toast.LENGTH_SHORT).show();
101103
if (mPost.getPostType() == Post.VIDEO_TYPE) {
102104
if (!mPost.isRedgifs() && !mPost.isStreamable() && !mPost.isImgur()) {
103105
PersistableBundle extras = new PersistableBundle();

0 commit comments

Comments
 (0)