Rename files

This commit is contained in:
MrLetsplay 2023-06-20 21:41:24 +02:00
parent 5cd27b6861
commit 80ae3dfad0
Signed by: mr
SSH Key Fingerprint: SHA256:92jBH80vpXyaZHjaIl47pjRq+Yt7XGTArqQg1V7hSqg
2 changed files with 7 additions and 62 deletions

View File

@ -1,48 +0,0 @@
package com.cringe_studios.cringe_authenticator.fragment;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import androidx.annotation.NonNull;
import androidx.fragment.app.Fragment;
import com.cringe_studios.cringe_authenticator.databinding.FragmentFirstBinding;
import com.cringe_studios.cringe_authenticator.util.NavigationUtil;
public class FirstFragment extends Fragment {
private FragmentFirstBinding binding;
@Override
public View onCreateView(
LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState
) {
binding = FragmentFirstBinding.inflate(inflater, container, false);
return binding.getRoot();
}
public void onViewCreated(@NonNull View view, Bundle savedInstanceState) {
super.onViewCreated(view, savedInstanceState);
binding.buttonFirst.setOnClickListener(view1 -> {
/*NavHostFragment.findNavController(FirstFragment.this)
.navigate(R.id.action_FirstFragment_to_SecondFragment);*/
Bundle b = new Bundle();
b.putString("sus", "Impostor");
NavigationUtil.navigate(this, DynamicFragment.class, b);
});
}
@Override
public void onDestroyView() {
super.onDestroyView();
binding = null;
}
}

View File

@ -8,30 +8,23 @@ import android.view.ViewGroup;
import androidx.annotation.NonNull; import androidx.annotation.NonNull;
import androidx.fragment.app.Fragment; import androidx.fragment.app.Fragment;
import com.cringe_studios.cringe_authenticator.databinding.FragmentSecondBinding; import com.cringe_studios.cringe_authenticator.databinding.FragmentHomeBinding;
import com.cringe_studios.cringe_authenticator.util.NavigationUtil; import com.cringe_studios.cringe_authenticator.util.FabUtil;
public class SecondFragment extends Fragment { public class HomeFragment extends Fragment {
private FragmentSecondBinding binding; private FragmentHomeBinding binding;
@Override @Override
public View onCreateView( public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
LayoutInflater inflater, ViewGroup container, binding = FragmentHomeBinding.inflate(inflater, container, false);
Bundle savedInstanceState FabUtil.hideFabs(getActivity());
) {
binding = FragmentSecondBinding.inflate(inflater, container, false);
return binding.getRoot(); return binding.getRoot();
} }
public void onViewCreated(@NonNull View view, Bundle savedInstanceState) { public void onViewCreated(@NonNull View view, Bundle savedInstanceState) {
super.onViewCreated(view, savedInstanceState); super.onViewCreated(view, savedInstanceState);
binding.buttonSecond.setOnClickListener(view1 -> {
NavigationUtil.navigate(this, FirstFragment.class, null);
});
} }
@Override @Override