Commit ee089db6 authored by 赵鹏翔's avatar 赵鹏翔

update

parent 81a403da
......@@ -6,7 +6,7 @@ import com.fastcashier.lib_common.base.BaseActivity
import com.fastcashier.lib_common.util.LogFileUtils
import com.fastcashier.lib_common.util.clickWithTrigger
import com.miya.fastcashier.databinding.ActivityFunctionCenterBinding
import com.miya.fastcashier.util.manage.log.LFilePickerManage
import com.miya.fastcashier.util.manage.log.LFilePickerManageKit
import com.miya.fastcashier.ui.dialog.SystemParameterDialog
/**
......@@ -37,7 +37,7 @@ class FunctionCenterActivity : BaseActivity() {
}
fun toUploadLog() {
LFilePickerManage()
LFilePickerManageKit()
.withActivity(this)
.withStartPath(LogFileUtils.CACHE_FILE_PATH) //指定初始显示路径
.withIsGreater(true) //过滤文件大小 小于指定大小的文件
......
......@@ -12,7 +12,7 @@ import com.miya.fastcashier.ui.LFilePickerActivity
/**
* 功能中心日志界面跳转配置管理类
*/
class LFilePickerManage {
class LFilePickerManageKit {
private var mActivity: Activity? = null
private var mFragment: Fragment? = null
......@@ -41,7 +41,7 @@ class LFilePickerManage {
* @param activity
* @return
*/
fun withActivity(activity: Activity?): LFilePickerManage {
fun withActivity(activity: Activity?): LFilePickerManageKit {
mActivity = activity
return this
}
......@@ -52,7 +52,7 @@ class LFilePickerManage {
* @param fragment
* @return
*/
fun withFragment(fragment: Fragment?): LFilePickerManage {
fun withFragment(fragment: Fragment?): LFilePickerManageKit {
mFragment = fragment
return this
}
......@@ -63,7 +63,7 @@ class LFilePickerManage {
* @param title
* @return
*/
fun withTitle(title: String?): LFilePickerManage {
fun withTitle(title: String?): LFilePickerManageKit {
mTitle = title
return this
}
......@@ -75,7 +75,7 @@ class LFilePickerManage {
* @return
*/
@Deprecated("")
fun withTitleColor(color: String?): LFilePickerManage {
fun withTitleColor(color: String?): LFilePickerManageKit {
mTitleColor = color
return this
}
......@@ -86,7 +86,7 @@ class LFilePickerManage {
* @param theme
* @return
*/
fun withTheme(@StyleRes theme: Int): LFilePickerManage {
fun withTheme(@StyleRes theme: Int): LFilePickerManageKit {
this.theme = theme
return this
}
......@@ -97,7 +97,7 @@ class LFilePickerManage {
* @param style
* @return
*/
fun withTitleStyle(@StyleRes style: Int): LFilePickerManage {
fun withTitleStyle(@StyleRes style: Int): LFilePickerManageKit {
mTitleStyle = style
return this
}
......@@ -108,7 +108,7 @@ class LFilePickerManage {
* @param color
* @return
*/
fun withBackgroundColor(color: String?): LFilePickerManage {
fun withBackgroundColor(color: String?): LFilePickerManageKit {
mBackgroundColor = color
return this
}
......@@ -119,7 +119,7 @@ class LFilePickerManage {
* @param requestCode
* @return
*/
fun withRequestCode(requestCode: Int): LFilePickerManage {
fun withRequestCode(requestCode: Int): LFilePickerManageKit {
mRequestCode = requestCode
return this
}
......@@ -130,7 +130,7 @@ class LFilePickerManage {
* @param backStyle
* @return
*/
fun withBackIcon(backStyle: Int): LFilePickerManage {
fun withBackIcon(backStyle: Int): LFilePickerManageKit {
mBackStyle = 0 //默认样式
mBackStyle = backStyle
return this
......@@ -142,7 +142,7 @@ class LFilePickerManage {
* @param isMutily
* @return
*/
fun withMutilyMode(isMutily: Boolean): LFilePickerManage {
fun withMutilyMode(isMutily: Boolean): LFilePickerManageKit {
mMutilyMode = isMutily
return this
}
......@@ -153,7 +153,7 @@ class LFilePickerManage {
* @param text
* @return
*/
fun withAddText(text: String?): LFilePickerManage {
fun withAddText(text: String?): LFilePickerManageKit {
mAddText = text
return this
}
......@@ -164,12 +164,12 @@ class LFilePickerManage {
* @param style
* @return
*/
fun withIconStyle(style: Int): LFilePickerManage {
fun withIconStyle(style: Int): LFilePickerManageKit {
mIconStyle = style
return this
}
fun withFileFilter(arrs: Array<String>): LFilePickerManage {
fun withFileFilter(arrs: Array<String>): LFilePickerManageKit {
mFileTypes = arrs
return this
}
......@@ -180,7 +180,7 @@ class LFilePickerManage {
* @param notFoundFiles
* @return
*/
fun withNotFoundBooks(notFoundFiles: String?): LFilePickerManage {
fun withNotFoundBooks(notFoundFiles: String?): LFilePickerManageKit {
mNotFoundFiles = notFoundFiles
return this
}
......@@ -191,7 +191,7 @@ class LFilePickerManage {
* @param num
* @return
*/
fun withMaxNum(num: Int): LFilePickerManage {
fun withMaxNum(num: Int): LFilePickerManageKit {
mMaxNum = num
return this
}
......@@ -202,7 +202,7 @@ class LFilePickerManage {
* @param fileName
* @return
*/
fun withFileName(fileName: String?): LFilePickerManage {
fun withFileName(fileName: String?): LFilePickerManageKit {
mFileName = fileName
return this
}
......@@ -213,7 +213,7 @@ class LFilePickerManage {
* @param path
* @return
*/
fun withStartPath(path: String?): LFilePickerManage {
fun withStartPath(path: String?): LFilePickerManageKit {
mStartPath = path
return this
}
......@@ -224,7 +224,7 @@ class LFilePickerManage {
* @param chooseMode
* @return
*/
fun withChooseMode(chooseMode: Boolean): LFilePickerManage {
fun withChooseMode(chooseMode: Boolean): LFilePickerManageKit {
mChooseMode = chooseMode
return this
}
......@@ -235,7 +235,7 @@ class LFilePickerManage {
* @param isGreater true:大于 ;false:小于,同时包含指定大小在内
* @return
*/
fun withIsGreater(isGreater: Boolean): LFilePickerManage {
fun withIsGreater(isGreater: Boolean): LFilePickerManageKit {
mIsGreater = isGreater
return this
}
......@@ -246,7 +246,7 @@ class LFilePickerManage {
* @param fileSize
* @return
*/
fun withFileSize(fileSize: Long): LFilePickerManage {
fun withFileSize(fileSize: Long): LFilePickerManageKit {
mFileSize = fileSize
return this
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment