Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
MiYaFastCashier
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
jiangjiantao
MiYaFastCashier
Commits
ee089db6
Commit
ee089db6
authored
Jul 05, 2022
by
赵鹏翔
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
81a403da
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
23 deletions
+23
-23
FunctionCenterActivity.kt
...in/java/com/miya/fastcashier/ui/FunctionCenterActivity.kt
+2
-2
LFilePickerManageKit.kt
.../miya/fastcashier/util/manage/log/LFilePickerManageKit.kt
+21
-21
No files found.
app/src/main/java/com/miya/fastcashier/ui/FunctionCenterActivity.kt
View file @
ee089db6
...
...
@@ -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.LFilePickerManage
Kit
import
com.miya.fastcashier.ui.dialog.SystemParameterDialog
/**
...
...
@@ -37,7 +37,7 @@ class FunctionCenterActivity : BaseActivity() {
}
fun
toUploadLog
()
{
LFilePickerManage
()
LFilePickerManage
Kit
()
.
withActivity
(
this
)
.
withStartPath
(
LogFileUtils
.
CACHE_FILE_PATH
)
//指定初始显示路径
.
withIsGreater
(
true
)
//过滤文件大小 小于指定大小的文件
...
...
app/src/main/java/com/miya/fastcashier/util/manage/log/LFilePickerManage.kt
→
app/src/main/java/com/miya/fastcashier/util/manage/log/LFilePickerManage
Kit
.kt
View file @
ee089db6
...
...
@@ -12,7 +12,7 @@ import com.miya.fastcashier.ui.LFilePickerActivity
/**
* 功能中心日志界面跳转配置管理类
*/
class
LFilePickerManage
{
class
LFilePickerManage
Kit
{
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
?):
LFilePickerManage
Kit
{
mActivity
=
activity
return
this
}
...
...
@@ -52,7 +52,7 @@ class LFilePickerManage {
* @param fragment
* @return
*/
fun
withFragment
(
fragment
:
Fragment
?):
LFilePickerManage
{
fun
withFragment
(
fragment
:
Fragment
?):
LFilePickerManage
Kit
{
mFragment
=
fragment
return
this
}
...
...
@@ -63,7 +63,7 @@ class LFilePickerManage {
* @param title
* @return
*/
fun
withTitle
(
title
:
String
?):
LFilePickerManage
{
fun
withTitle
(
title
:
String
?):
LFilePickerManage
Kit
{
mTitle
=
title
return
this
}
...
...
@@ -75,7 +75,7 @@ class LFilePickerManage {
* @return
*/
@Deprecated
(
""
)
fun
withTitleColor
(
color
:
String
?):
LFilePickerManage
{
fun
withTitleColor
(
color
:
String
?):
LFilePickerManage
Kit
{
mTitleColor
=
color
return
this
}
...
...
@@ -86,7 +86,7 @@ class LFilePickerManage {
* @param theme
* @return
*/
fun
withTheme
(
@StyleRes
theme
:
Int
):
LFilePickerManage
{
fun
withTheme
(
@StyleRes
theme
:
Int
):
LFilePickerManage
Kit
{
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
):
LFilePickerManage
Kit
{
mTitleStyle
=
style
return
this
}
...
...
@@ -108,7 +108,7 @@ class LFilePickerManage {
* @param color
* @return
*/
fun
withBackgroundColor
(
color
:
String
?):
LFilePickerManage
{
fun
withBackgroundColor
(
color
:
String
?):
LFilePickerManage
Kit
{
mBackgroundColor
=
color
return
this
}
...
...
@@ -119,7 +119,7 @@ class LFilePickerManage {
* @param requestCode
* @return
*/
fun
withRequestCode
(
requestCode
:
Int
):
LFilePickerManage
{
fun
withRequestCode
(
requestCode
:
Int
):
LFilePickerManage
Kit
{
mRequestCode
=
requestCode
return
this
}
...
...
@@ -130,7 +130,7 @@ class LFilePickerManage {
* @param backStyle
* @return
*/
fun
withBackIcon
(
backStyle
:
Int
):
LFilePickerManage
{
fun
withBackIcon
(
backStyle
:
Int
):
LFilePickerManage
Kit
{
mBackStyle
=
0
//默认样式
mBackStyle
=
backStyle
return
this
...
...
@@ -142,7 +142,7 @@ class LFilePickerManage {
* @param isMutily
* @return
*/
fun
withMutilyMode
(
isMutily
:
Boolean
):
LFilePickerManage
{
fun
withMutilyMode
(
isMutily
:
Boolean
):
LFilePickerManage
Kit
{
mMutilyMode
=
isMutily
return
this
}
...
...
@@ -153,7 +153,7 @@ class LFilePickerManage {
* @param text
* @return
*/
fun
withAddText
(
text
:
String
?):
LFilePickerManage
{
fun
withAddText
(
text
:
String
?):
LFilePickerManage
Kit
{
mAddText
=
text
return
this
}
...
...
@@ -164,12 +164,12 @@ class LFilePickerManage {
* @param style
* @return
*/
fun
withIconStyle
(
style
:
Int
):
LFilePickerManage
{
fun
withIconStyle
(
style
:
Int
):
LFilePickerManage
Kit
{
mIconStyle
=
style
return
this
}
fun
withFileFilter
(
arrs
:
Array
<
String
>):
LFilePickerManage
{
fun
withFileFilter
(
arrs
:
Array
<
String
>):
LFilePickerManage
Kit
{
mFileTypes
=
arrs
return
this
}
...
...
@@ -180,7 +180,7 @@ class LFilePickerManage {
* @param notFoundFiles
* @return
*/
fun
withNotFoundBooks
(
notFoundFiles
:
String
?):
LFilePickerManage
{
fun
withNotFoundBooks
(
notFoundFiles
:
String
?):
LFilePickerManage
Kit
{
mNotFoundFiles
=
notFoundFiles
return
this
}
...
...
@@ -191,7 +191,7 @@ class LFilePickerManage {
* @param num
* @return
*/
fun
withMaxNum
(
num
:
Int
):
LFilePickerManage
{
fun
withMaxNum
(
num
:
Int
):
LFilePickerManage
Kit
{
mMaxNum
=
num
return
this
}
...
...
@@ -202,7 +202,7 @@ class LFilePickerManage {
* @param fileName
* @return
*/
fun
withFileName
(
fileName
:
String
?):
LFilePickerManage
{
fun
withFileName
(
fileName
:
String
?):
LFilePickerManage
Kit
{
mFileName
=
fileName
return
this
}
...
...
@@ -213,7 +213,7 @@ class LFilePickerManage {
* @param path
* @return
*/
fun
withStartPath
(
path
:
String
?):
LFilePickerManage
{
fun
withStartPath
(
path
:
String
?):
LFilePickerManage
Kit
{
mStartPath
=
path
return
this
}
...
...
@@ -224,7 +224,7 @@ class LFilePickerManage {
* @param chooseMode
* @return
*/
fun
withChooseMode
(
chooseMode
:
Boolean
):
LFilePickerManage
{
fun
withChooseMode
(
chooseMode
:
Boolean
):
LFilePickerManage
Kit
{
mChooseMode
=
chooseMode
return
this
}
...
...
@@ -235,7 +235,7 @@ class LFilePickerManage {
* @param isGreater true:大于 ;false:小于,同时包含指定大小在内
* @return
*/
fun
withIsGreater
(
isGreater
:
Boolean
):
LFilePickerManage
{
fun
withIsGreater
(
isGreater
:
Boolean
):
LFilePickerManage
Kit
{
mIsGreater
=
isGreater
return
this
}
...
...
@@ -246,7 +246,7 @@ class LFilePickerManage {
* @param fileSize
* @return
*/
fun
withFileSize
(
fileSize
:
Long
):
LFilePickerManage
{
fun
withFileSize
(
fileSize
:
Long
):
LFilePickerManage
Kit
{
mFileSize
=
fileSize
return
this
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment