-When PIN is configured it should not be showed at the beginning of the app

-When PIN is configuren it should not be  showed at the beginning of security settings app
This commit is contained in:
dtvv 2018-10-14 02:24:46 -05:00
parent 013a3b841f
commit cd160c9832
2 changed files with 3 additions and 3 deletions

View file

@ -111,7 +111,7 @@ public class IntroActivity extends CustomActivity {
} }
}); });
this.getApplication().registerActivityLifecycleCallbacks(CrystalSecurityMonitor.getInstance(this)); //this.getApplication().registerActivityLifecycleCallbacks(CrystalSecurityMonitor.getInstance(this));

View file

@ -86,7 +86,7 @@ public class SecuritySettingsFragment extends Fragment {
securityPagerAdapter = new SecurityPagerAdapter(getChildFragmentManager()); securityPagerAdapter = new SecurityPagerAdapter(getChildFragmentManager());
mPager.setAdapter(securityPagerAdapter); mPager.setAdapter(securityPagerAdapter);
switch(CrystalSecurityMonitor.getInstance(null).actualSecurity()) { switch(CrystalSecurityMonitor.getInstance(getActivity()).actualSecurity()) {
case GeneralSetting.SETTING_PASSWORD: case GeneralSetting.SETTING_PASSWORD:
mPager.setCurrentItem(1); mPager.setCurrentItem(1);
break; break;
@ -117,7 +117,7 @@ public class SecuritySettingsFragment extends Fragment {
public void setUserVisibleHint(boolean isVisibleToUser) { public void setUserVisibleHint(boolean isVisibleToUser) {
super.setUserVisibleHint(isVisibleToUser); super.setUserVisibleHint(isVisibleToUser);
if (isVisibleToUser) { if (isVisibleToUser) {
CrystalSecurityMonitor.getInstance(null).callPasswordRequest(this.getActivity()); //CrystalSecurityMonitor.getInstance(null).callPasswordRequest(this.getActivity());
} }
} }