mirror of
https://github.com/Docile-Alligator/Infinity-For-Reddit.git
synced 2026-02-25 02:15:52 +00:00
Show a toast when downloading media in PostOptionsBottomSheetFragment.
This commit is contained in:
@ -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();
|
||||
|
||||
Reference in New Issue
Block a user