Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for archive actions #4698

Closed
wants to merge 9 commits into from
Closed

Support for archive actions #4698

wants to merge 9 commits into from

Conversation

moxie0
Copy link
Contributor

@moxie0 moxie0 commented Nov 23, 2015

// FREEBIE

@moxie0 moxie0 added this to the 3.6.0 milestone Nov 23, 2015
@@ -27,7 +28,7 @@

</LinearLayout>

<com.melnykov.fab.FloatingActionButton
<android.support.design.widget.FloatingActionButton
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

last I checked there were lots of bugs in this FAB implementation across platforms, which versions did you test this on?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

works on GB, not with the coordinatorlayout stuff, but neither does the 3rd party

@2-4601
Copy link
Contributor

2-4601 commented Nov 24, 2015

Tested on Huawei U8800, Android 4.0.4.
Looks like you can archive the Archived conversations (n) item itself and then Signal will crash:
screenshot_2015-11-24-17-37-06

E/AndroidRuntime(21254): FATAL EXCEPTION: main
E/AndroidRuntime(21254): java.lang.ClassCastException: org.thoughtcrime.securesms.ConversationListItemAction cannot be cast to org.thoughtcrime.securesms.ConversationListItem
E/AndroidRuntime(21254):    at org.thoughtcrime.securesms.ConversationListFragment$ArchiveListenerCallback.onSwiped(ConversationListFragment.java:380)
E/AndroidRuntime(21254):    at android.support.v7.widget.helper.ItemTouchHelper$4.run(ItemTouchHelper.java:669)
E/AndroidRuntime(21254):    at android.os.Handler.handleCallback(Handler.java:605)
E/AndroidRuntime(21254):    at android.os.Handler.dispatchMessage(Handler.java:92)
E/AndroidRuntime(21254):    at android.os.Looper.loop(Looper.java:137)
E/AndroidRuntime(21254):    at android.app.ActivityThread.main(ActivityThread.java:4424)
E/AndroidRuntime(21254):    at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime(21254):    at java.lang.reflect.Method.invoke(Method.java:511)
E/AndroidRuntime(21254):    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:787)
E/AndroidRuntime(21254):    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:554)
E/AndroidRuntime(21254):    at dalvik.system.NativeStart.main(Native Method)
W/ActivityManager(  292):   Force finishing activity org.thoughtcrime.securesms/.RoutingActivity

@moxie0
Copy link
Contributor Author

moxie0 commented Nov 24, 2015

lol good one

@moxie0
Copy link
Contributor Author

moxie0 commented Nov 24, 2015

updated

getString(R.string.ConversationListFragment_moved_conversation_to_inbox),
getString(R.string.ConversationListFragment_undo),
getResources().getColor(R.color.amber_500),
Snackbar.LENGTH_SHORT)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

short is super short, especially the first time

@mcginty
Copy link
Contributor

mcginty commented Nov 24, 2015

Another thing Inbox does which makes sense is once you unarchive the last item, the archive should close and bring you back to the inbox.

@mcginty
Copy link
Contributor

mcginty commented Nov 24, 2015

Batch-selecting archived conversations and choosing unarchive says "Archived conversations" in the Snackbar

@mcginty
Copy link
Contributor

mcginty commented Nov 24, 2015

If there's a "delete conversation" menu item within the conversation overflow menu, is it strange not to be able to archive/unarchive from within a conversation as well?

@mcginty
Copy link
Contributor

mcginty commented Nov 24, 2015

Swiping to archive conversations in fast-ish succession sometimes ends up with a snackbar not being displayed for the final swipe.

@moxie0
Copy link
Contributor Author

moxie0 commented Nov 24, 2015

@mcginty thoughts on removing "delete conversation" from the menu conversation activity overflow menu?

@mcginty
Copy link
Contributor

mcginty commented Nov 24, 2015

sounds good to me.

@moxie0
Copy link
Contributor Author

moxie0 commented Nov 25, 2015

updated

@2-4601
Copy link
Contributor

2-4601 commented Nov 25, 2015

When I archived my first conversation by swiping it to the right and then went to the archive list to see where it went my first intuition was to unarchive the conversation by swiping it back to the left. That's because visually the main conversation list is on the left and the archive list is on the right. But currently both archive and unarchive are swipe to to the right gestures.

It just feels more real if you can toss them left and right.

But if another swipe action (such as delete) is introduced later then I guess the above doesn't make sense any more.

@moxie0
Copy link
Contributor Author

moxie0 commented Nov 25, 2015

@2-4601 Yeah that's my concern.

@moxie0 moxie0 closed this in 2ab0029 Nov 27, 2015
BLeQuerrec pushed a commit to SilenceIM/Silence that referenced this pull request Dec 10, 2015
@ehrenkret-signal ehrenkret-signal deleted the moxie/archive_rebase branch January 27, 2022 16:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants