Skip to content

Conversation

@radusabau-tech
Copy link

No description provided.

requireParentFragment().requireParentFragment().findNavController()
.navigate(R.id.action_filesContainerFragment_to_shareLinkFragment, bundle)
//TODO Replace with new Share Link Settings
// requireParentFragment().requireParentFragment().findNavController()
Copy link
Contributor

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 -> {
Copy link
Contributor

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?) {
Copy link
Contributor

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() {
Copy link
Contributor

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)
Copy link
Contributor

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)
Copy link
Contributor

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"
Copy link
Contributor

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
Copy link
Contributor

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
Copy link
Contributor

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
Copy link
Contributor

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
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants