diff options
author | Harsh Shandilya <msfjarvis@gmail.com> | 2020-05-27 21:23:44 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-27 17:53:44 +0200 |
commit | 4084727aadc4cf5e6d77f5af462084b17c2706bc (patch) | |
tree | cadc23d4d24414944f4f82c682e8694113cd8cc9 /app/src/main/java | |
parent | 15665244fc13b410b476da1bd93561583d76eba9 (diff) |
treewide: update fragments to use LayoutRes constructor (#802)
Third time's the charm
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
Diffstat (limited to 'app/src/main/java')
4 files changed, 4 insertions, 4 deletions
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) |