hide scheduling options when editing

closes sk22#364
This commit is contained in:
sk
2023-01-23 17:11:10 +01:00
committed by LucasGGamerM
parent 0b0fe98e2d
commit 338de2699f
2 changed files with 6 additions and 1 deletions

View File

@@ -822,6 +822,11 @@ public class ComposeFragment extends MastodonToolbarFragment implements OnBackPr
draftsBtn.setOnTouchListener(draftOptionsPopup.getDragToOpenListener()); draftsBtn.setOnTouchListener(draftOptionsPopup.getDragToOpenListener());
updateScheduledAt(scheduledAt != null ? scheduledAt : scheduledStatus != null ? scheduledStatus.scheduledAt : null); updateScheduledAt(scheduledAt != null ? scheduledAt : scheduledStatus != null ? scheduledStatus.scheduledAt : null);
buildLanguageSelector(languageButton); buildLanguageSelector(languageButton);
if (editingStatus != null && scheduledStatus == null) {
// editing an already published post
draftsBtn.setVisibility(View.GONE);
}
} }
private void navigateToUnsentPosts() { private void navigateToUnsentPosts() {

View File

@@ -45,7 +45,6 @@
android:id="@+id/drafts_btn" android:id="@+id/drafts_btn"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginEnd="8dp"
android:paddingHorizontal="8dp" android:paddingHorizontal="8dp"
android:drawableStart="@drawable/ic_fluent_clock_20_regular" android:drawableStart="@drawable/ic_fluent_clock_20_regular"
android:drawableTint="?android:textColorSecondary" android:drawableTint="?android:textColorSecondary"
@@ -69,6 +68,7 @@
android:id="@+id/publish_btn" android:id="@+id/publish_btn"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginStart="8dp"
android:singleLine="true" android:singleLine="true"
android:ellipsize="end" android:ellipsize="end"
android:visibility="gone" android:visibility="gone"