Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
abook_check
Overview
Overview
Details
Activity
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abook_android
abook_check
Commits
28ce1e86
Commit
28ce1e86
authored
Jul 17, 2020
by
onuma
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
中心温度計、連続計測対応
parent
42d06081
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
6 deletions
+15
-6
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/common/activity/ABVCheckContentViewActivity.java
+15
-6
No files found.
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/common/activity/ABVCheckContentViewActivity.java
View file @
28ce1e86
...
@@ -257,7 +257,7 @@ public class ABVCheckContentViewActivity extends ABVContentViewActivity {
...
@@ -257,7 +257,7 @@ public class ABVCheckContentViewActivity extends ABVContentViewActivity {
if
(
StringUtil
.
isNullOrEmpty
(
message
))
{
if
(
StringUtil
.
isNullOrEmpty
(
message
))
{
// 接続するデバイスが存在しないと見做し、接続を切る
// 接続するデバイスが存在しないと見做し、接続を切る
// onuma
// onuma
bleManagerDisconnect
(
fals
e
);
bleManagerDisconnect
(
tru
e
);
}
else
{
}
else
{
// onuma
// onuma
isConnection
=
true
;
isConnection
=
true
;
...
@@ -284,7 +284,7 @@ public class ABVCheckContentViewActivity extends ABVContentViewActivity {
...
@@ -284,7 +284,7 @@ public class ABVCheckContentViewActivity extends ABVContentViewActivity {
Logger
.
d
(
TAG
,
"-------------------------------------------------"
);
Logger
.
d
(
TAG
,
"-------------------------------------------------"
);
setThermometerData
(
strTemp
);
setThermometerData
(
strTemp
);
// 取得できたら、ダイアログ消すだけ。
// 取得できたら、ダイアログ消すだけ。
// onuma
// onuma
切断しない
bleManagerDisconnect
(
false
);
bleManagerDisconnect
(
false
);
dismissWaitngDialog
();
dismissWaitngDialog
();
}
}
...
@@ -674,10 +674,19 @@ public class ABVCheckContentViewActivity extends ABVContentViewActivity {
...
@@ -674,10 +674,19 @@ public class ABVCheckContentViewActivity extends ABVContentViewActivity {
return
;
// 以下の処理にかからないようにreturnする
return
;
// 以下の処理にかからないようにreturnする
}
}
// 登録されている中心温度計がある
if
(
isConnection
)
{
showWaitingDialog
(
getString
(
R
.
string
.
center_thermometer
),
getString
(
R
.
string
.
ble_connecting
));
Logger
.
d
(
TAG
,
"-------------------------------------------------"
);
// 接続
Logger
.
d
(
TAG
,
"isConnection = true"
);
bleManagerUtil
.
connect
(
DeviceType
.
centerThermomete
,
deviceAddress
);
Logger
.
d
(
TAG
,
"-------------------------------------------------"
);
String
message
=
String
.
format
(
getString
(
R
.
string
.
msg_ble_connect_success
),
getString
(
R
.
string
.
center_thermometer
));
showWaitingDialog
(
getString
(
R
.
string
.
center_thermometer
),
message
);
}
else
{
// 登録されている中心温度計がある
showWaitingDialog
(
getString
(
R
.
string
.
center_thermometer
),
getString
(
R
.
string
.
ble_connecting
));
// 接続
bleManagerUtil
.
connect
(
DeviceType
.
centerThermomete
,
deviceAddress
);
}
}
}
}
}
...
...
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