diff --git a/app/src/main/java/com/m2049r/xmrwallet/fragment/home/HomeFragment.java b/app/src/main/java/com/m2049r/xmrwallet/fragment/home/HomeFragment.java index 932b02d..bd12d91 100644 --- a/app/src/main/java/com/m2049r/xmrwallet/fragment/home/HomeFragment.java +++ b/app/src/main/java/com/m2049r/xmrwallet/fragment/home/HomeFragment.java @@ -54,17 +54,13 @@ public class HomeFragment extends Fragment implements TransactionInfoAdapter.TxI super.onViewCreated(view, savedInstanceState); MainActivity mainActivity = (MainActivity)getActivity(); mViewModel = new ViewModelProvider(this).get(HomeViewModel.class); + bindObservers(view); + bindListeners(view); - boolean usesPassword = PrefService.getInstance().getBoolean(Constants.PREF_USES_PASSWORD, false); - if(!usesPassword) { + mainActivity.restartEvents.observe(getViewLifecycleOwner(), o -> { bindObservers(view); bindListeners(view); - } else { - mainActivity.restartEvents.observe(getViewLifecycleOwner(), o -> { - bindObservers(view); - bindListeners(view); - }); - } + }); } private void bindListeners(View view) { diff --git a/app/src/main/res/layout/fragment_onboarding.xml b/app/src/main/res/layout/fragment_onboarding.xml new file mode 100644 index 0000000..dec3e0f --- /dev/null +++ b/app/src/main/res/layout/fragment_onboarding.xml @@ -0,0 +1,45 @@ + + + + + +