| | |
| | | import com.dollearn.student.utils.extention.ViewClickDelay.lastClickTime |
| | | import com.dollearn.student.utils.glide.GlideUtil |
| | | import com.dollearn.student.utils.interfaces.StringCallback |
| | | import com.github.promeg.pinyinhelper.Pinyin |
| | | import kotlinx.android.synthetic.main.activity_course_deatil.* |
| | | import org.jetbrains.anko.toast |
| | | import top.zibin.luban.Luban |
| | | import top.zibin.luban.OnCompressListener |
| | | import java.io.File |
| | | |
| | | fun String.getInitial():String = if (startsWith("重庆")) "C" else Pinyin.toPinyin(this[0])[0].toString() |
| | | |
| | | fun String.uploadWithCompress(act: BaseActivity, callback: StringCallback){ |
| | | Luban.with(act).load(File(this)) |