From bb5c82aa60c61749ea578386c41bf4ec94396e5d Mon Sep 17 00:00:00 2001 From: Balazs Toldi Date: Sat, 29 Jul 2023 22:04:48 +0200 Subject: [PATCH] Remove post types incompatible with Lemmy --- .../PostTypeBottomSheetFragment.java | 20 ------- .../fragment_post_type_bottom_sheet.xml | 57 ------------------- 2 files changed, 77 deletions(-) diff --git a/app/src/main/java/eu/toldi/infinityforlemmy/bottomsheetfragments/PostTypeBottomSheetFragment.java b/app/src/main/java/eu/toldi/infinityforlemmy/bottomsheetfragments/PostTypeBottomSheetFragment.java index 56d7299a..bf912540 100644 --- a/app/src/main/java/eu/toldi/infinityforlemmy/bottomsheetfragments/PostTypeBottomSheetFragment.java +++ b/app/src/main/java/eu/toldi/infinityforlemmy/bottomsheetfragments/PostTypeBottomSheetFragment.java @@ -38,12 +38,6 @@ public class PostTypeBottomSheetFragment extends LandscapeExpandedRoundedBottomS TextView linkTypeTextView; @BindView(R.id.image_type_linear_layout_post_type_bottom_sheet_fragment) TextView imageTypeTextView; - @BindView(R.id.video_type_linear_layout_post_type_bottom_sheet_fragment) - TextView videoTypeTextView; - @BindView(R.id.gallery_type_linear_layout_post_type_bottom_sheet_fragment) - TextView galleryTypeTextView; - @BindView(R.id.poll_type_linear_layout_post_type_bottom_sheet_fragment) - TextView pollTypeTextView; private BaseActivity activity; public PostTypeBottomSheetFragment() { @@ -76,20 +70,6 @@ public class PostTypeBottomSheetFragment extends LandscapeExpandedRoundedBottomS dismiss(); }); - videoTypeTextView.setOnClickListener(view -> { - ((PostTypeSelectionCallback) activity).postTypeSelected(TYPE_VIDEO); - dismiss(); - }); - - galleryTypeTextView.setOnClickListener(view -> { - ((PostTypeSelectionCallback) activity).postTypeSelected(TYPE_GALLERY); - dismiss(); - }); - - pollTypeTextView.setOnClickListener(view -> { - ((PostTypeSelectionCallback) activity).postTypeSelected(TYPE_POLL); - dismiss(); - }); if (activity.typeface != null) { Utils.setFontToAllTextViews(rootView, activity.typeface); diff --git a/app/src/main/res/layout/fragment_post_type_bottom_sheet.xml b/app/src/main/res/layout/fragment_post_type_bottom_sheet.xml index a597db67..abf9273f 100644 --- a/app/src/main/res/layout/fragment_post_type_bottom_sheet.xml +++ b/app/src/main/res/layout/fragment_post_type_bottom_sheet.xml @@ -48,25 +48,6 @@ android:focusable="true" android:background="?attr/selectableItemBackground" /> - - - - - - \ No newline at end of file