do not crash on bad BonjourManager status Intent

Only crash if its a debug build, so we can finally track this thing
down.

acra-crash-reports#178
f673b5c1f1
This commit is contained in:
Hans-Christoph Steiner
2023-06-12 22:08:38 +02:00
parent 90d1ae001f
commit ecd6d010ae

View File

@@ -1196,7 +1196,11 @@ public class SwapWorkflowActivity extends AppCompatActivity {
peopleNearbyText.setVisibility(View.VISIBLE);
peopleNearbyProgress.setVisibility(View.GONE);
default:
throw new IllegalArgumentException("Bad intent: " + intent);
String msg = "Bad intent: " + intent + " " + bonjourStatus;
Log.i(TAG, msg);
if (BuildConfig.DEBUG) {
throw new IllegalArgumentException(msg);
}
}
}
};