fix bugreport for kiosk
This commit is contained in:
parent
c13e761c3f
commit
a0f74e715a
|
@ -54,7 +54,8 @@ dependencies {
|
||||||
exclude module: 'support-annotations'
|
exclude module: 'support-annotations'
|
||||||
}
|
}
|
||||||
|
|
||||||
implementation 'com.github.TeamNewPipe:NewPipeExtractor:f787b375e5fb6d'
|
implementation 'com.github.TeamNewPipe:NewPipeExtractor:a6b6235644474'
|
||||||
|
|
||||||
|
|
||||||
testImplementation 'junit:junit:4.12'
|
testImplementation 'junit:junit:4.12'
|
||||||
testImplementation 'org.mockito:mockito-core:1.10.19'
|
testImplementation 'org.mockito:mockito-core:1.10.19'
|
||||||
|
|
|
@ -168,7 +168,7 @@ public class KioskFragment extends BaseListInfoFragment<KioskInfo> {
|
||||||
|
|
||||||
if (!result.getErrors().isEmpty()) {
|
if (!result.getErrors().isEmpty()) {
|
||||||
showSnackBarError(result.getErrors(),
|
showSnackBarError(result.getErrors(),
|
||||||
UserAction.REQUESTED_PLAYLIST,
|
UserAction.REQUESTED_KIOSK,
|
||||||
NewPipe.getNameOfService(result.getServiceId()), result.getUrl(), 0);
|
NewPipe.getNameOfService(result.getServiceId()), result.getUrl(), 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -89,7 +89,8 @@ public class ErrorActivity extends AppCompatActivity {
|
||||||
private TextView errorMessageView;
|
private TextView errorMessageView;
|
||||||
|
|
||||||
public static void reportUiError(final AppCompatActivity activity, final Throwable el) {
|
public static void reportUiError(final AppCompatActivity activity, final Throwable el) {
|
||||||
reportError(activity, el, activity.getClass(), null, ErrorInfo.make(UserAction.UI_ERROR, "none", "", R.string.app_ui_crash));
|
reportError(activity, el, activity.getClass(), null,
|
||||||
|
ErrorInfo.make(UserAction.UI_ERROR, "none", "", R.string.app_ui_crash));
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void reportError(final Context context, final List<Throwable> el,
|
public static void reportError(final Context context, final List<Throwable> el,
|
||||||
|
@ -97,12 +98,8 @@ public class ErrorActivity extends AppCompatActivity {
|
||||||
if (rootView != null) {
|
if (rootView != null) {
|
||||||
Snackbar.make(rootView, R.string.error_snackbar_message, 15 * 1000)
|
Snackbar.make(rootView, R.string.error_snackbar_message, 15 * 1000)
|
||||||
.setActionTextColor(Color.YELLOW)
|
.setActionTextColor(Color.YELLOW)
|
||||||
.setAction(R.string.error_snackbar_action, new View.OnClickListener() {
|
.setAction(R.string.error_snackbar_action, v ->
|
||||||
@Override
|
startErrorActivity(returnActivity, context, errorInfo, el)).show();
|
||||||
public void onClick(View v) {
|
|
||||||
startErrorActivity(returnActivity, context, errorInfo, el);
|
|
||||||
}
|
|
||||||
}).show();
|
|
||||||
} else {
|
} else {
|
||||||
startErrorActivity(returnActivity, context, errorInfo, el);
|
startErrorActivity(returnActivity, context, errorInfo, el);
|
||||||
}
|
}
|
||||||
|
|
|
@ -13,7 +13,8 @@ public enum UserAction {
|
||||||
GET_SUGGESTIONS("get suggestions"),
|
GET_SUGGESTIONS("get suggestions"),
|
||||||
REQUESTED_STREAM("requested stream"),
|
REQUESTED_STREAM("requested stream"),
|
||||||
REQUESTED_CHANNEL("requested channel"),
|
REQUESTED_CHANNEL("requested channel"),
|
||||||
REQUESTED_PLAYLIST("requested playlist");
|
REQUESTED_PLAYLIST("requested playlist"),
|
||||||
|
REQUESTED_KIOSK("requested kiosk");
|
||||||
|
|
||||||
|
|
||||||
private final String message;
|
private final String message;
|
||||||
|
|
Loading…
Reference in New Issue