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
7f39d0c5
Commit
7f39d0c5
authored
Jul 22, 2020
by
Kim Jinsung
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
THETA SC2端末で露出情報表示問題対応
parent
fe935b79
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletions
+11
-1
ABVJE_UI_Android/src/com/theta/network/HttpConnector.java
+11
-1
No files found.
ABVJE_UI_Android/src/com/theta/network/HttpConnector.java
View file @
7f39d0c5
...
...
@@ -17,6 +17,8 @@ import java.io.IOException;
import
java.io.InputStream
;
import
java.io.InputStreamReader
;
import
java.io.OutputStream
;
import
java.math.BigDecimal
;
import
java.math.RoundingMode
;
import
java.net.HttpURLConnection
;
import
java.net.MalformedURLException
;
import
java.net.URL
;
...
...
@@ -1435,7 +1437,15 @@ public class HttpConnector {
if
(
status
.
equals
(
"done"
))
{
JSONObject
results
=
output
.
getJSONObject
(
"results"
);
JSONObject
options
=
results
.
getJSONObject
(
"options"
);
exposureCompensation
=
options
.
getString
(
"exposureCompensation"
);
double
exposure
=
options
.
getDouble
(
"exposureCompensation"
);
if
(
exposure
==
0
)
{
exposureCompensation
=
"0.0"
;
}
else
{
BigDecimal
decimal
=
new
BigDecimal
(
String
.
valueOf
(
exposure
));
BigDecimal
halfUp
=
decimal
.
setScale
(
1
,
RoundingMode
.
HALF_UP
);
//小数点1桁まで表示し、2桁で切り上げ
exposureCompensation
=
halfUp
.
toPlainString
();
}
}
}
catch
(
IOException
e
)
{
Logger
.
e
(
TAG
,
e
);
...
...
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