mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-21 15:19:53 +01:00
Allow Account Creation without Doze White-listing
This commit is contained in:
@@ -26,6 +26,7 @@ public class DozeFragment extends SetupFragment {
|
|||||||
|
|
||||||
private Button dozeButton;
|
private Button dozeButton;
|
||||||
private ProgressBar progressBar;
|
private ProgressBar progressBar;
|
||||||
|
private boolean secondAttempt = false;
|
||||||
|
|
||||||
public static DozeFragment newInstance() {
|
public static DozeFragment newInstance() {
|
||||||
return new DozeFragment();
|
return new DozeFragment();
|
||||||
@@ -64,10 +65,11 @@ public class DozeFragment extends SetupFragment {
|
|||||||
public void onActivityResult(int request, int result, Intent data) {
|
public void onActivityResult(int request, int result, Intent data) {
|
||||||
super.onActivityResult(request, result, data);
|
super.onActivityResult(request, result, data);
|
||||||
if (request == REQUEST_DOZE_WHITELISTING) {
|
if (request == REQUEST_DOZE_WHITELISTING) {
|
||||||
if (!setupController.needsDozeWhitelisting()) {
|
if (!setupController.needsDozeWhitelisting() || secondAttempt) {
|
||||||
dozeButton.setEnabled(false);
|
dozeButton.setEnabled(false);
|
||||||
onClick(dozeButton);
|
onClick(dozeButton);
|
||||||
} else {
|
} else {
|
||||||
|
secondAttempt = true;
|
||||||
showOnboardingDialog(getContext(), getHelpText());
|
showOnboardingDialog(getContext(), getHelpText());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user