Allow ErrorInfo messages with formatArgs
- ErrorInfo.getMessage() now returns an ErrorMessage instance that can be formatted into a string using a context (this allows the construction of an ErrorInfo to remain independent of a Context) - now the service ID is used in ErrorInfo.getMessage() to customize some messages based on the currently selected service - player HTTP invalid statuses are now included in the message - building a custom error message for AccountTerminatedException was moved from ErrorPanelHelper to ErrorInfo
This commit is contained in:
parent
28218408cc
commit
fc567dae55
72 changed files with 154 additions and 146 deletions
|
|
@ -563,11 +563,11 @@ public class MissionAdapter extends Adapter<ViewHolder> implements Handler.Callb
|
|||
}
|
||||
request.append("]");
|
||||
|
||||
String service;
|
||||
Integer service;
|
||||
try {
|
||||
service = NewPipe.getServiceByUrl(mission.source).getServiceInfo().getName();
|
||||
service = NewPipe.getServiceByUrl(mission.source).getServiceId();
|
||||
} catch (Exception e) {
|
||||
service = ErrorInfo.SERVICE_NONE;
|
||||
service = null;
|
||||
}
|
||||
|
||||
ErrorUtil.createNotification(mContext,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue