Wire feedback button to show feedback fragment

This commit is contained in:
Sebastian Kürten
2021-05-29 07:51:27 +02:00
parent 8ef21637a9
commit 79dae27c24

View File

@@ -4,6 +4,7 @@ import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.TextView;
import org.briarproject.bramble.api.nullsafety.MethodsNotNullByDefault;
@@ -13,6 +14,8 @@ import org.briarproject.briar.android.fragment.BaseFragment;
import androidx.annotation.Nullable;
import static org.briarproject.briar.android.util.UiUtils.triggerFeedback;
@MethodsNotNullByDefault
@ParametersNotNullByDefault
@@ -55,6 +58,14 @@ public class HotspotErrorFragment extends BaseFragment {
.inflate(R.layout.fragment_hotspot_error, container, false);
TextView msg = v.findViewById(R.id.errorMessageDetail);
msg.setText(errorMessage);
Button feedbackButton = v.findViewById(R.id.feedbackButton);
feedbackButton.setOnClickListener(
button -> triggerFeedback(requireContext()));
Button fallbackButton = v.findViewById(R.id.fallbackButton);
// TODO: export apk
return v;
}