Drafts and scheduled posts (#217)
closes #100 closes #59 * enable saving as draft (scheduled) * add scheduled posts list * fix NoSuchMethodError * editable drafts/scheduled posts * ui for drafts * use instants between 9999-01-01 and 9999-12-31 * use save and draft strings * map scheduled status params to status * implement scheduling posts * improve save/discard draft dialog * persist scheduled date in state * add unsent posts button to toolbar * clean up imports
This commit is contained in:
@@ -103,4 +103,20 @@
|
||||
<string name="sk_reply_as">Reply with other account</string>
|
||||
<string name="sk_settings_uniform_icon_for_notifications">Uniform icon for all notifications</string>
|
||||
<string name="sk_forward_report_to">Forward to %s</string>
|
||||
<string name="sk_unsent_posts">Unsent posts</string>
|
||||
<string name="sk_draft">Draft</string>
|
||||
<string name="sk_schedule">Schedule</string>
|
||||
<string name="sk_confirm_delete_draft_title">Delete draft</string>
|
||||
<string name="sk_confirm_delete_draft">Are you sure you want to delete this drafted post?</string>
|
||||
<string name="sk_confirm_delete_scheduled_post_title">Delete scheduled post</string>
|
||||
<string name="sk_confirm_delete_scheduled_post">Are you sure you want to delete this scheduled post?</string>
|
||||
<string name="sk_draft_or_schedule">Draft or schedule</string>
|
||||
<string name="sk_compose_draft">Post will be saved as a draft.</string>
|
||||
<string name="sk_compose_scheduled">Scheduled for</string>
|
||||
<string name="sk_draft_saved">Draft saved</string>
|
||||
<string name="sk_post_scheduled">Post scheduled</string>
|
||||
<string name="sk_scheduled_too_soon_title">Scheduled time is too soon</string>
|
||||
<string name="sk_scheduled_too_soon">Post must be scheduled at least 10 minutes in the future.</string>
|
||||
<string name="sk_save_draft">Save draft?</string>
|
||||
<string name="sk_save_changes">Save changes?</string>
|
||||
</resources>
|
||||
@@ -29,6 +29,8 @@
|
||||
<item name="android:navigationBarColor">?android:statusBarColor</item>
|
||||
<item name="android:actionBarTheme">@style/Theme.Mastodon.Toolbar</item>
|
||||
<item name="android:alertDialogTheme">@style/Theme.Mastodon.Dialog.Alert</item>
|
||||
<item name="android:datePickerDialogTheme">@style/Theme.Mastodon.Dialog.Alert</item>
|
||||
<item name="android:timePickerDialogTheme">@style/Theme.Mastodon.Dialog.Alert</item>
|
||||
<item name="colorPollMostVoted">?colorPrimary500</item>
|
||||
<item name="colorPollVoted">?colorGray300</item>
|
||||
<item name="colorAccentLight">?colorPrimary600</item>
|
||||
@@ -123,6 +125,8 @@
|
||||
<item name="android:navigationBarColor">?android:statusBarColor</item>
|
||||
<item name="android:actionBarTheme">@style/Theme.Mastodon.Toolbar.Dark</item>
|
||||
<item name="android:alertDialogTheme">@style/Theme.Mastodon.Dialog.Alert.Dark</item>
|
||||
<item name="android:datePickerDialogTheme">@style/Theme.Mastodon.Dialog.Alert.Dark</item>
|
||||
<item name="android:timePickerDialogTheme">@style/Theme.Mastodon.Dialog.Alert.Dark</item>
|
||||
<item name="colorPollMostVoted">?colorPrimary700</item>
|
||||
<item name="colorPollVoted">?colorGray600</item>
|
||||
<item name="colorAccentLight">?colorPrimary600</item>
|
||||
@@ -318,6 +322,8 @@
|
||||
<item name="android:dialogPreferredPadding">24dp</item>
|
||||
<item name="android:windowBackground">@drawable/bg_alert</item>
|
||||
<item name="android:buttonBarButtonStyle">@style/Widget.Mastodon.ButtonBarButton</item>
|
||||
<item name="android:datePickerStyle">@style/Widget.Mastodon.DatePicker.Dark</item>
|
||||
<item name="android:timePickerStyle">@style/Widget.Mastodon.TimePicker.Dark</item>
|
||||
|
||||
<!-- colors -->
|
||||
<item name="android:colorAccent">?colorPrimary600</item>
|
||||
@@ -327,6 +333,15 @@
|
||||
<item name="android:textColorSecondary">?colorGray400</item>
|
||||
</style>
|
||||
|
||||
<style name="Widget.Mastodon.DatePicker.Dark" parent="@android:style/Widget.Material.DatePicker">
|
||||
<item name="android:headerBackground">?colorGray700</item>
|
||||
</style>
|
||||
|
||||
<style name="Widget.Mastodon.TimePicker.Dark" parent="@android:style/Widget.Material.TimePicker">
|
||||
<item name="android:headerBackground">?colorGray700</item>
|
||||
<item name="android:numbersBackgroundColor">?colorGray700</item>
|
||||
</style>
|
||||
|
||||
<style name="Widget.Mastodon.ButtonBarButton" parent="android:Widget.Material.Button.Borderless">
|
||||
<item name="android:textAllCaps">false</item>
|
||||
<item name="android:layout_marginEnd">8dp</item>
|
||||
|
||||
Reference in New Issue
Block a user