Initial commit
This commit is contained in:
26
sources/com/ubt/jimu/widgets/error/ErrorAgent.java
Normal file
26
sources/com/ubt/jimu/widgets/error/ErrorAgent.java
Normal file
@@ -0,0 +1,26 @@
|
||||
package com.ubt.jimu.widgets.error;
|
||||
|
||||
import com.baidu.cloud.media.player.IMediaPlayer;
|
||||
import com.ubt.jimu.R;
|
||||
import com.ubtech.view.widget.ErrorView;
|
||||
|
||||
/* loaded from: classes2.dex */
|
||||
public class ErrorAgent implements ErrorView.ResAgent {
|
||||
@Override // com.ubtech.view.widget.ErrorView.ResAgent
|
||||
public ErrorView.ResData[] a() {
|
||||
ErrorView.ResData[] b = b();
|
||||
ErrorView.ResData[] c = c();
|
||||
ErrorView.ResData[] resDataArr = new ErrorView.ResData[b.length + c.length];
|
||||
System.arraycopy(b, 0, resDataArr, 0, b.length);
|
||||
System.arraycopy(c, 0, resDataArr, b.length, c.length);
|
||||
return resDataArr;
|
||||
}
|
||||
|
||||
public ErrorView.ResData[] b() {
|
||||
return new ErrorView.ResData[]{new ErrorView.ResData(10001, R.drawable.ic_network_error, R.string.video_network_error), new ErrorView.ResData(10002, R.drawable.ic_try_reload, R.string.loading_service_error), new ErrorView.ResData(IMediaPlayer.MEDIA_INFO_FRAMECHASING_START, R.drawable.icon_no_login, R.string.login_tip_text), new ErrorView.ResData(IMediaPlayer.MEDIA_INFO_FRAMECHASING_END, R.drawable.icon_favourate_empty, R.string.search_no_content)};
|
||||
}
|
||||
|
||||
public ErrorView.ResData[] c() {
|
||||
return new ErrorView.ResData[0];
|
||||
}
|
||||
}
|
25
sources/com/ubt/jimu/widgets/error/UErrorView.java
Normal file
25
sources/com/ubt/jimu/widgets/error/UErrorView.java
Normal file
@@ -0,0 +1,25 @@
|
||||
package com.ubt.jimu.widgets.error;
|
||||
|
||||
import android.content.Context;
|
||||
import android.util.AttributeSet;
|
||||
import com.ubtech.view.widget.ErrorView;
|
||||
|
||||
/* loaded from: classes2.dex */
|
||||
public class UErrorView extends ErrorView {
|
||||
public UErrorView(Context context) {
|
||||
this(context, null);
|
||||
}
|
||||
|
||||
public UErrorView(Context context, AttributeSet attributeSet) {
|
||||
this(context, attributeSet, 0);
|
||||
}
|
||||
|
||||
public UErrorView(Context context, AttributeSet attributeSet, int i) {
|
||||
this(context, attributeSet, i, 0);
|
||||
}
|
||||
|
||||
public UErrorView(Context context, AttributeSet attributeSet, int i, int i2) {
|
||||
super(context, attributeSet, i, i2);
|
||||
a(new ErrorAgent());
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user