mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-14 19:59:05 +01:00
Use FragmentContainerView for displaying FallbackFragment
This commit is contained in:
committed by
Torsten Grote
parent
aecd204efe
commit
9192ee32cf
@@ -15,7 +15,6 @@ import org.briarproject.briar.android.fragment.BaseFragment;
|
||||
import javax.inject.Inject;
|
||||
|
||||
import androidx.annotation.Nullable;
|
||||
import androidx.fragment.app.FragmentTransaction;
|
||||
import androidx.lifecycle.ViewModelProvider;
|
||||
|
||||
import static org.briarproject.briar.android.util.UiUtils.triggerFeedback;
|
||||
@@ -74,10 +73,6 @@ public class HotspotErrorFragment extends BaseFragment {
|
||||
Button feedbackButton = v.findViewById(R.id.feedbackButton);
|
||||
feedbackButton.setOnClickListener(
|
||||
button -> triggerFeedback(requireContext(), errorMessage));
|
||||
|
||||
FallbackFragment fallbackFragment = new FallbackFragment();
|
||||
FragmentTransaction ta = getChildFragmentManager().beginTransaction();
|
||||
ta.replace(R.id.fallbackPlaceholder, fallbackFragment).commit();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -11,7 +11,6 @@ import org.briarproject.briar.R;
|
||||
|
||||
import androidx.annotation.Nullable;
|
||||
import androidx.fragment.app.Fragment;
|
||||
import androidx.fragment.app.FragmentTransaction;
|
||||
|
||||
@MethodsNotNullByDefault
|
||||
@ParametersNotNullByDefault
|
||||
@@ -27,13 +26,4 @@ public class HotspotHelpFragment extends Fragment {
|
||||
.inflate(R.layout.fragment_hotspot_help, container, false);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onViewCreated(View v, @Nullable Bundle savedInstanceState) {
|
||||
super.onViewCreated(v, savedInstanceState);
|
||||
|
||||
FallbackFragment fallbackFragment = new FallbackFragment();
|
||||
FragmentTransaction ta = getChildFragmentManager().beginTransaction();
|
||||
ta.replace(R.id.fallbackPlaceholder, fallbackFragment).commit();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user