-
Notifications
You must be signed in to change notification settings - Fork 0
[VSP-1602] Added new Share link UI #368
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
base: develop
Are you sure you want to change the base?
Conversation
| requireParentFragment().requireParentFragment().findNavController() | ||
| .navigate(R.id.action_filesContainerFragment_to_shareLinkFragment, bundle) | ||
| //TODO Replace with new Share Link Settings | ||
| // requireParentFragment().requireParentFragment().findNavController() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should keep the old logic here, until we update the FileViewOptionsFragment with the new menu as well.
| true | ||
| } | ||
| //TODO Replace with new Share Link Settings | ||
| // R.id.shareLinkFragment -> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should keep the old logic here, until we update the FileViewOptionsFragment with the new menu as well.
| onRecordSelectedEvent.value = it | ||
| } | ||
|
|
||
| private fun showShareManagementFragment(record: Record?) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is called from a notification, we should not change this implementation yet.
| import org.permanent.permanent.viewmodels.ShareManagementViewModel | ||
| import java.util.Calendar | ||
|
|
||
| class ShareManagementFragment : PermanentBottomSheetFragment() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should keep the old implementation until we update the FileViewOptionsFragment with the new menu as well.
| Box( | ||
| modifier = Modifier | ||
| .fillMaxWidth() | ||
| .fillMaxHeight(0.9f) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would make it a bit higher like in the design and other screens we already have: .fillMaxHeight(0.95f)
| appContext.getString(R.string.share_management_share_link), _shareLink.value | ||
| ) | ||
| clipboard.setPrimaryClip(clip) | ||
| //showMessage.value = appContext.getString(R.string.share_management_link_copied) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove this please
| @@ -1,700 +0,0 @@ | |||
| <?xml version="1.0" encoding="utf-8"?> | |||
| <layout xmlns:android="http://schemas.android.com/apk/res/android" | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should keep the old implementation until we update the FileViewOptionsFragment with the new menu as well.
| app:destination="@id/fileMetadataFragment" | ||
| app:popEnterAnim="@android:anim/slide_in_left" | ||
| app:popExitAnim="@android:anim/slide_out_right" /> | ||
| <action |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should keep the old implementation until we update the FileViewOptionsFragment with the new menu as well.
| app:popExitAnim="@android:anim/slide_out_right" /> | ||
| </fragment> | ||
|
|
||
| <fragment |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should keep the old implementation until we update the FileViewOptionsFragment with the new menu as well.
| android:label="@string/main_navigation_title_search" | ||
| tools:layout="@layout/fragment_record_search" /> | ||
|
|
||
| <fragment |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should keep the old implementation until we update the FileViewOptionsFragment with the new menu as well.
| .wrapContentHeight() | ||
| ) { | ||
| SheetHeader( | ||
| title = "Share Item", onCloseClick = onClose |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Move please "Share item" to strings file.
No description provided.