mirror of
https://github.com/nextcloud/android.git
synced 2024-11-23 13:45:35 +03:00
Revert "Refactor calls to find views in ShareFileFragment"
This reverts commit 6143872543d30569e46fb4c5edc559f26cdd8bd6.
This commit is contained in:
parent
ceffd197a9
commit
3d8195795b
1 changed files with 7 additions and 7 deletions
|
@ -252,7 +252,7 @@ public class ShareFileFragment extends Fragment
|
|||
*/
|
||||
private void initShareViaLinkListener(View shareView) {
|
||||
mOnShareViaLinkSwitchCheckedChangeListener = new OnShareViaLinkListener();
|
||||
Switch shareViaLinkSwitch = getShareViaLinkSwitch();
|
||||
Switch shareViaLinkSwitch = (Switch) shareView.findViewById(R.id.shareViaLinkSectionSwitch);
|
||||
shareViaLinkSwitch.setOnCheckedChangeListener(mOnShareViaLinkSwitchCheckedChangeListener);
|
||||
}
|
||||
|
||||
|
@ -314,13 +314,13 @@ public class ShareFileFragment extends Fragment
|
|||
private void initExpirationListener(View shareView) {
|
||||
mOnExpirationDateInteractionListener = new OnExpirationDateInteractionListener();
|
||||
|
||||
getExpirationDateSwitch().
|
||||
((Switch) shareView.findViewById(R.id.shareViaLinkExpirationSwitch)).
|
||||
setOnCheckedChangeListener(mOnExpirationDateInteractionListener);
|
||||
|
||||
shareView.findViewById(R.id.shareViaLinkExpirationLabel).
|
||||
setOnClickListener(mOnExpirationDateInteractionListener);
|
||||
|
||||
getExpirationDateValue().
|
||||
shareView.findViewById(R.id.shareViaLinkExpirationValue).
|
||||
setOnClickListener(mOnExpirationDateInteractionListener);
|
||||
}
|
||||
|
||||
|
@ -398,13 +398,13 @@ public class ShareFileFragment extends Fragment
|
|||
private void initPasswordListener(View shareView) {
|
||||
mOnPasswordInteractionListener = new OnPasswordInteractionListener();
|
||||
|
||||
getPasswordSwitch().
|
||||
((Switch) shareView.findViewById(R.id.shareViaLinkPasswordSwitch)).
|
||||
setOnCheckedChangeListener(mOnPasswordInteractionListener);
|
||||
|
||||
shareView.findViewById(R.id.shareViaLinkPasswordLabel).
|
||||
setOnClickListener(mOnPasswordInteractionListener);
|
||||
|
||||
getPasswordValue().
|
||||
shareView.findViewById(R.id.shareViaLinkPasswordValue).
|
||||
setOnClickListener(mOnPasswordInteractionListener);
|
||||
}
|
||||
|
||||
|
@ -466,7 +466,7 @@ public class ShareFileFragment extends Fragment
|
|||
private void initEditPermissionListener(View shareView) {
|
||||
mOnEditPermissionInteractionListener = new OnEditPermissionInteractionListener();
|
||||
|
||||
getEditPermissionSwitch().
|
||||
((Switch) shareView.findViewById(R.id.shareViaLinkEditPermissionSwitch)).
|
||||
setOnCheckedChangeListener(mOnEditPermissionInteractionListener);
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue