mirror of
https://github.com/f-droid/fdroidclient.git
synced 2026-04-19 22:37:09 -04:00
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:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user