Get rid of old mainActivity variable

This commit is contained in:
pokkst 2022-09-07 15:10:24 -05:00
parent e2face7c33
commit b0f4462838
No known key found for this signature in database
GPG Key ID: 90C2ED85E67A50FF

View File

@ -39,8 +39,6 @@ public class HomeFragment extends Fragment {
public void onViewCreated(@NonNull View view, @Nullable Bundle savedInstanceState) { public void onViewCreated(@NonNull View view, @Nullable Bundle savedInstanceState) {
super.onViewCreated(view, savedInstanceState); super.onViewCreated(view, savedInstanceState);
mViewModel = new ViewModelProvider(this).get(HomeViewModel.class); mViewModel = new ViewModelProvider(this).get(HomeViewModel.class);
MainActivity mainActivity = (MainActivity) getActivity();
if (mainActivity == null) return;
ImageView settingsImageView = view.findViewById(R.id.settings_imageview); ImageView settingsImageView = view.findViewById(R.id.settings_imageview);
ImageView addressImageView = view.findViewById(R.id.monero_qr_imageview); ImageView addressImageView = view.findViewById(R.id.monero_qr_imageview);