From cbb42ecaf05149d0a34889a495f637f1973f0a1d Mon Sep 17 00:00:00 2001 From: Severiano Jaramillo Date: Thu, 18 Jan 2018 16:11:54 -0600 Subject: [PATCH] Created PinSecurityFragment --- .../fragments/PinSecurityFragment.java | 38 +++++++++++++++ .../fragments/SecuritySettingsFragment.java | 3 +- .../main/res/layout/fragment_pin_security.xml | 47 +++++++++++++++++++ 3 files changed, 86 insertions(+), 2 deletions(-) create mode 100644 app/src/main/java/cy/agorise/crystalwallet/fragments/PinSecurityFragment.java create mode 100644 app/src/main/res/layout/fragment_pin_security.xml diff --git a/app/src/main/java/cy/agorise/crystalwallet/fragments/PinSecurityFragment.java b/app/src/main/java/cy/agorise/crystalwallet/fragments/PinSecurityFragment.java new file mode 100644 index 0000000..52e2c55 --- /dev/null +++ b/app/src/main/java/cy/agorise/crystalwallet/fragments/PinSecurityFragment.java @@ -0,0 +1,38 @@ +package cy.agorise.crystalwallet.fragments; + +import android.os.Bundle; +import android.support.v4.app.Fragment; +import android.view.LayoutInflater; +import android.view.View; +import android.view.ViewGroup; + +import butterknife.ButterKnife; +import cy.agorise.crystalwallet.R; + +/** + * Created by xd on 1/18/18. + */ + +public class PinSecurityFragment extends Fragment { + + public PinSecurityFragment() { + // Required empty public constructor + } + + public static PinSecurityFragment newInstance() { + PinSecurityFragment fragment = new PinSecurityFragment(); + Bundle args = new Bundle(); + fragment.setArguments(args); + return fragment; + } + + @Override + public View onCreateView(LayoutInflater inflater, ViewGroup container, + Bundle savedInstanceState) { + // Inflate the layout for this fragment + View v = inflater.inflate(R.layout.fragment_pin_security, container, false); + ButterKnife.bind(this, v); + + return v; + } +} diff --git a/app/src/main/java/cy/agorise/crystalwallet/fragments/SecuritySettingsFragment.java b/app/src/main/java/cy/agorise/crystalwallet/fragments/SecuritySettingsFragment.java index e47e8c3..c20e65d 100644 --- a/app/src/main/java/cy/agorise/crystalwallet/fragments/SecuritySettingsFragment.java +++ b/app/src/main/java/cy/agorise/crystalwallet/fragments/SecuritySettingsFragment.java @@ -65,12 +65,11 @@ public class SecuritySettingsFragment extends Fragment { case 0: //return new GeneralSettingsFragment(); case 1: - //return new SecuritySettingsFragment(); + return new PinSecurityFragment(); case 2: return new BackupsSettingsFragment(); } - return null; //new OnConstructionFragment(); } diff --git a/app/src/main/res/layout/fragment_pin_security.xml b/app/src/main/res/layout/fragment_pin_security.xml new file mode 100644 index 0000000..2f70a6b --- /dev/null +++ b/app/src/main/res/layout/fragment_pin_security.xml @@ -0,0 +1,47 @@ + + + + + + + + + + + + \ No newline at end of file