|
|
|
@ -8,7 +8,6 @@ import android.graphics.PorterDuff;
|
|
|
|
|
import android.support.annotation.AttrRes;
|
|
|
|
|
import android.support.annotation.NonNull;
|
|
|
|
|
import android.support.annotation.Nullable;
|
|
|
|
|
import android.support.v4.graphics.drawable.DrawableCompat;
|
|
|
|
|
import android.util.AttributeSet;
|
|
|
|
|
import android.view.View;
|
|
|
|
|
import android.view.ViewGroup;
|
|
|
|
@ -147,16 +146,11 @@ public class DocumentView extends FrameLayout {
|
|
|
|
|
return "";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Subscribe(sticky = true, threadMode = ThreadMode.ASYNC)
|
|
|
|
|
@Subscribe(sticky = true, threadMode = ThreadMode.MAIN)
|
|
|
|
|
public void onEventAsync(final PartProgressEvent event) {
|
|
|
|
|
if (documentSlide != null && event.attachment.equals(this.documentSlide.asAttachment())) {
|
|
|
|
|
Util.runOnMain(new Runnable() {
|
|
|
|
|
@Override
|
|
|
|
|
public void run() {
|
|
|
|
|
if (documentSlide != null && event.attachment.equals(documentSlide.asAttachment())) {
|
|
|
|
|
downloadProgress.setInstantProgress(((float) event.progress) / event.total);
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private class DownloadClickedListener implements View.OnClickListener {
|
|
|
|
|