From 4084727aadc4cf5e6d77f5af462084b17c2706bc Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Wed, 27 May 2020 21:23:44 +0530 Subject: treewide: update fragments to use LayoutRes constructor (#802) Third time's the charm Signed-off-by: Harsh Shandilya --- app/src/main/java/com/zeapo/pwdstore/PasswordFragment.kt | 2 +- app/src/main/java/com/zeapo/pwdstore/SelectFolderFragment.kt | 2 +- app/src/main/java/com/zeapo/pwdstore/ToCloneOrNot.kt | 2 +- app/src/main/java/com/zeapo/pwdstore/sshkeygen/SshKeyGenFragment.kt | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) (limited to 'app/src/main') diff --git a/app/src/main/java/com/zeapo/pwdstore/PasswordFragment.kt b/app/src/main/java/com/zeapo/pwdstore/PasswordFragment.kt index 140c71bb..03f2cfe1 100644 --- a/app/src/main/java/com/zeapo/pwdstore/PasswordFragment.kt +++ b/app/src/main/java/com/zeapo/pwdstore/PasswordFragment.kt @@ -36,7 +36,7 @@ import me.zhanghai.android.fastscroll.FastScrollerBuilder import java.io.File import java.util.Stack -class PasswordFragment : Fragment() { +class PasswordFragment : Fragment(R.layout.password_recycler_view) { private lateinit var recyclerAdapter: PasswordItemRecyclerAdapter private lateinit var listener: OnFragmentInteractionListener private lateinit var settings: SharedPreferences diff --git a/app/src/main/java/com/zeapo/pwdstore/SelectFolderFragment.kt b/app/src/main/java/com/zeapo/pwdstore/SelectFolderFragment.kt index 41c9443b..ea90c1a8 100644 --- a/app/src/main/java/com/zeapo/pwdstore/SelectFolderFragment.kt +++ b/app/src/main/java/com/zeapo/pwdstore/SelectFolderFragment.kt @@ -19,7 +19,7 @@ import com.zeapo.pwdstore.utils.viewBinding import me.zhanghai.android.fastscroll.FastScrollerBuilder import java.io.File -class SelectFolderFragment : Fragment() { +class SelectFolderFragment : Fragment(R.layout.password_recycler_view) { private val binding by viewBinding(PasswordRecyclerViewBinding::bind) private lateinit var recyclerAdapter: PasswordItemRecyclerAdapter private lateinit var listener: OnFragmentInteractionListener diff --git a/app/src/main/java/com/zeapo/pwdstore/ToCloneOrNot.kt b/app/src/main/java/com/zeapo/pwdstore/ToCloneOrNot.kt index f235fe46..66a450f0 100644 --- a/app/src/main/java/com/zeapo/pwdstore/ToCloneOrNot.kt +++ b/app/src/main/java/com/zeapo/pwdstore/ToCloneOrNot.kt @@ -11,7 +11,7 @@ import androidx.fragment.app.Fragment import com.zeapo.pwdstore.databinding.FragmentToCloneOrNotBinding import com.zeapo.pwdstore.utils.viewBinding -class ToCloneOrNot : Fragment() { +class ToCloneOrNot : Fragment(R.layout.fragment_to_clone_or_not) { private val binding by viewBinding(FragmentToCloneOrNotBinding::bind) diff --git a/app/src/main/java/com/zeapo/pwdstore/sshkeygen/SshKeyGenFragment.kt b/app/src/main/java/com/zeapo/pwdstore/sshkeygen/SshKeyGenFragment.kt index 34806e0e..a7ed82b8 100644 --- a/app/src/main/java/com/zeapo/pwdstore/sshkeygen/SshKeyGenFragment.kt +++ b/app/src/main/java/com/zeapo/pwdstore/sshkeygen/SshKeyGenFragment.kt @@ -24,7 +24,7 @@ import kotlinx.coroutines.withContext import java.io.File import java.io.FileOutputStream -class SshKeyGenFragment : Fragment() { +class SshKeyGenFragment : Fragment(R.layout.fragment_ssh_keygen) { private var keyLength = 4096 private val binding by viewBinding(FragmentSshKeygenBinding::bind) -- cgit v1.2.3