@@ -67,7 +67,6 @@ class FileDetailsSharingProcessFragment :
6767 private const val ARG_OCSHARE = " arg_ocshare"
6868 private const val ARG_SCREEN_TYPE = " arg_screen_type"
6969 private const val ARG_RESHARE_SHOWN = " arg_reshare_shown"
70- private const val ARG_EXP_DATE_SHOWN = " arg_exp_date_shown"
7170 private const val ARG_SECURE_SHARE = " secure_share"
7271
7372 // types of screens to be displayed
@@ -101,17 +100,11 @@ class FileDetailsSharingProcessFragment :
101100 * fragment instance to be called while modifying existing share information
102101 */
103102 @JvmStatic
104- fun newInstance (
105- share : OCShare ,
106- screenType : Int ,
107- isReshareShown : Boolean ,
108- isExpirationDateShown : Boolean
109- ): FileDetailsSharingProcessFragment {
103+ fun newInstance (share : OCShare , screenType : Int , isReshareShown : Boolean ): FileDetailsSharingProcessFragment {
110104 val bundle = Bundle ().apply {
111105 putParcelable(ARG_OCSHARE , share)
112106 putInt(ARG_SCREEN_TYPE , screenType)
113107 putBoolean(ARG_RESHARE_SHOWN , isReshareShown)
114- putBoolean(ARG_EXP_DATE_SHOWN , isExpirationDateShown)
115108 }
116109
117110 return FileDetailsSharingProcessFragment ().apply {
@@ -138,7 +131,6 @@ class FileDetailsSharingProcessFragment :
138131
139132 private var share: OCShare ? = null
140133 private var isReShareShown: Boolean = true // show or hide reShare option
141- private var isExpDateShown: Boolean = true // show or hide expiry date option
142134 private var isSecureShare: Boolean = false
143135
144136 private lateinit var capabilities: OCCapability
@@ -183,7 +175,6 @@ class FileDetailsSharingProcessFragment :
183175
184176 shareProcessStep = it.getInt(ARG_SCREEN_TYPE , SCREEN_TYPE_PERMISSION )
185177 isReShareShown = it.getBoolean(ARG_RESHARE_SHOWN , true )
186- isExpDateShown = it.getBoolean(ARG_EXP_DATE_SHOWN , true )
187178 isSecureShare = it.getBoolean(ARG_SECURE_SHARE , false )
188179 }
189180 }
@@ -299,7 +290,7 @@ class FileDetailsSharingProcessFragment :
299290 updateView()
300291
301292 // show or hide expiry date
302- binding.shareProcessSetExpDateSwitch.setVisibleIf(isExpDateShown && ! isSecureShare)
293+ binding.shareProcessSetExpDateSwitch.setVisibleIf(! isSecureShare)
303294 shareProcessStep = SCREEN_TYPE_PERMISSION
304295 }
305296
0 commit comments