From b0f44628383ad0f1edea4c4ca144f791858c4d0d Mon Sep 17 00:00:00 2001 From: pokkst Date: Wed, 7 Sep 2022 15:10:24 -0500 Subject: [PATCH] Get rid of old mainActivity variable --- .../java/com/m2049r/xmrwallet/fragment/home/HomeFragment.java | 2 -- 1 file changed, 2 deletions(-) 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 896d1cb..579ec9c 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 @@ -39,8 +39,6 @@ public class HomeFragment extends Fragment { public void onViewCreated(@NonNull View view, @Nullable Bundle savedInstanceState) { super.onViewCreated(view, savedInstanceState); mViewModel = new ViewModelProvider(this).get(HomeViewModel.class); - MainActivity mainActivity = (MainActivity) getActivity(); - if (mainActivity == null) return; ImageView settingsImageView = view.findViewById(R.id.settings_imageview); ImageView addressImageView = view.findViewById(R.id.monero_qr_imageview);