Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
StatInfo_1
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
chenyuling
StatInfo_1
Commits
f3847fe2
Commit
f3847fe2
authored
Sep 27, 2023
by
chenyuling
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
"优化配置信息置空情况"
parent
d2ea35d7
Pipeline
#1624
canceled with stages
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
0 deletions
+10
-0
ConfigDlgFragment.java
...om/srthinker/statinfo/uis/fragment/ConfigDlgFragment.java
+8
-0
SettingActivity.java
...java/com/srthinker/statinfo/uis/news/SettingActivity.java
+2
-0
No files found.
app/src/main/java/com/srthinker/statinfo/uis/fragment/ConfigDlgFragment.java
View file @
f3847fe2
...
...
@@ -24,6 +24,7 @@ import com.srthinker.statinfo.database.entity.ConfigEntity;
import
com.srthinker.statinfo.database.helper.ConfigHelper
;
import
com.srthinker.statinfo.databinding.DialogConfigBinding
;
import
com.srthinker.statinfo.listener.ConfigCallback
;
import
com.srthinker.statinfo.util.common.SharedUtil
;
import
com.srthinker.statinfo.util.common.Utils
;
import
com.srthinker.statinfo.wedget.EditView
;
...
...
@@ -146,6 +147,13 @@ public class ConfigDlgFragment extends DialogFragment {
Utils
.
showTips
(
context
,
"请输入IP!"
);
return
;
}
}
else
{
//清空配置信息的话,也需要清空连接状态
if
(
type
==
ENTER_TYPE
){
SharedUtil
.
getInstance
(
context
).
writeShared
(
"enter_connect"
,
false
);
}
else
if
(
type
==
LEAVE_TYPE
){
SharedUtil
.
getInstance
(
context
).
writeShared
(
"leave_connect"
,
false
);
}
}
//List<ConfigBean> configBeanList = new ArrayList<>();
List
<
ConfigEntity
>
configEntities
=
new
ArrayList
<>();
...
...
app/src/main/java/com/srthinker/statinfo/uis/news/SettingActivity.java
View file @
f3847fe2
...
...
@@ -434,6 +434,8 @@ public class SettingActivity extends BaseActivity implements ConfigCallback, Que
//表示更新了配置
isModified
=
true
;
SharedUtil
.
getInstance
(
this
).
writeShared
(
"isModified"
,
isModified
);
//更新连接状态
updateDeviceConnect
();
}
@Override
...
...
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