diff --git a/app/src/main/java/cy/agorise/crystalwallet/activities/IntroActivity.java b/app/src/main/java/cy/agorise/crystalwallet/activities/IntroActivity.java index 7a2f75f..1d76247 100644 --- a/app/src/main/java/cy/agorise/crystalwallet/activities/IntroActivity.java +++ b/app/src/main/java/cy/agorise/crystalwallet/activities/IntroActivity.java @@ -111,7 +111,7 @@ public class IntroActivity extends CustomActivity { } }); - this.getApplication().registerActivityLifecycleCallbacks(CrystalSecurityMonitor.getInstance(this)); + //this.getApplication().registerActivityLifecycleCallbacks(CrystalSecurityMonitor.getInstance(this)); 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 b48a029..7b5ee8c 100644 --- a/app/src/main/java/cy/agorise/crystalwallet/fragments/SecuritySettingsFragment.java +++ b/app/src/main/java/cy/agorise/crystalwallet/fragments/SecuritySettingsFragment.java @@ -86,7 +86,7 @@ public class SecuritySettingsFragment extends Fragment { securityPagerAdapter = new SecurityPagerAdapter(getChildFragmentManager()); mPager.setAdapter(securityPagerAdapter); - switch(CrystalSecurityMonitor.getInstance(null).actualSecurity()) { + switch(CrystalSecurityMonitor.getInstance(getActivity()).actualSecurity()) { case GeneralSetting.SETTING_PASSWORD: mPager.setCurrentItem(1); break; @@ -117,7 +117,7 @@ public class SecuritySettingsFragment extends Fragment { public void setUserVisibleHint(boolean isVisibleToUser) { super.setUserVisibleHint(isVisibleToUser); if (isVisibleToUser) { - CrystalSecurityMonitor.getInstance(null).callPasswordRequest(this.getActivity()); + //CrystalSecurityMonitor.getInstance(null).callPasswordRequest(this.getActivity()); } }