mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-20 06:39:54 +01:00
Wire feedback button to show feedback fragment
This commit is contained in:
committed by
Torsten Grote
parent
e39c99fd6c
commit
094024eb4f
@@ -4,6 +4,7 @@ import android.os.Bundle;
|
|||||||
import android.view.LayoutInflater;
|
import android.view.LayoutInflater;
|
||||||
import android.view.View;
|
import android.view.View;
|
||||||
import android.view.ViewGroup;
|
import android.view.ViewGroup;
|
||||||
|
import android.widget.Button;
|
||||||
import android.widget.TextView;
|
import android.widget.TextView;
|
||||||
|
|
||||||
import org.briarproject.bramble.api.nullsafety.MethodsNotNullByDefault;
|
import org.briarproject.bramble.api.nullsafety.MethodsNotNullByDefault;
|
||||||
@@ -13,6 +14,8 @@ import org.briarproject.briar.android.fragment.BaseFragment;
|
|||||||
|
|
||||||
import androidx.annotation.Nullable;
|
import androidx.annotation.Nullable;
|
||||||
|
|
||||||
|
import static org.briarproject.briar.android.util.UiUtils.triggerFeedback;
|
||||||
|
|
||||||
|
|
||||||
@MethodsNotNullByDefault
|
@MethodsNotNullByDefault
|
||||||
@ParametersNotNullByDefault
|
@ParametersNotNullByDefault
|
||||||
@@ -55,6 +58,14 @@ public class HotspotErrorFragment extends BaseFragment {
|
|||||||
.inflate(R.layout.fragment_hotspot_error, container, false);
|
.inflate(R.layout.fragment_hotspot_error, container, false);
|
||||||
TextView msg = v.findViewById(R.id.errorMessageDetail);
|
TextView msg = v.findViewById(R.id.errorMessageDetail);
|
||||||
msg.setText(errorMessage);
|
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;
|
return v;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user