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
55aeeca4
Commit
55aeeca4
authored
Dec 04, 2019
by
Lee Jaebin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
GPS送信の重複処理対応
parent
7afa8cd8
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/common/activity/ABVContentViewActivity.java
+6
-0
No files found.
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/common/activity/ABVContentViewActivity.java
View file @
55aeeca4
...
@@ -137,6 +137,8 @@ public abstract class ABVContentViewActivity extends ABVAuthenticatedActivity {
...
@@ -137,6 +137,8 @@ public abstract class ABVContentViewActivity extends ABVAuthenticatedActivity {
public
int
mButtonStatus
;
// 保存ボタンチェック
public
int
mButtonStatus
;
// 保存ボタンチェック
protected
boolean
mAddReport
;
// 作業追加区分
protected
boolean
mAddReport
;
// 作業追加区分
private
boolean
mLocationSendResult
;
// GPS送信フラグ
@Override
@Override
protected
void
onCreate
(
Bundle
savedInstanceState
)
{
protected
void
onCreate
(
Bundle
savedInstanceState
)
{
super
.
onCreate
(
savedInstanceState
);
super
.
onCreate
(
savedInstanceState
);
...
@@ -1162,6 +1164,7 @@ public abstract class ABVContentViewActivity extends ABVAuthenticatedActivity {
...
@@ -1162,6 +1164,7 @@ public abstract class ABVContentViewActivity extends ABVAuthenticatedActivity {
*/
*/
// #32926 作業報告画面改善 start
// #32926 作業報告画面改善 start
protected
void
setLocation
(
final
boolean
showPermissionDialogFlg
)
{
protected
void
setLocation
(
final
boolean
showPermissionDialogFlg
)
{
mLocationSendResult
=
false
;
// #32926 作業報告画面改善 end
// #32926 作業報告画面改善 end
ABookPermissionHelper
helper
=
new
ABookPermissionHelper
(
this
,
Constant
.
ABookPermissionType
.
AccessFineLocation
,
null
);
ABookPermissionHelper
helper
=
new
ABookPermissionHelper
(
this
,
Constant
.
ABookPermissionType
.
AccessFineLocation
,
null
);
if
(
helper
.
checkMultiPermissions
(
showPermissionDialogFlg
))
{
if
(
helper
.
checkMultiPermissions
(
showPermissionDialogFlg
))
{
...
@@ -1178,6 +1181,7 @@ public abstract class ABVContentViewActivity extends ABVAuthenticatedActivity {
...
@@ -1178,6 +1181,7 @@ public abstract class ABVContentViewActivity extends ABVAuthenticatedActivity {
@Override
@Override
public
void
onGetLocation
(
final
Location
location
)
{
public
void
onGetLocation
(
final
Location
location
)
{
if
(!
mLocationSendResult
)
{
latitude
=
location
.
getLatitude
();
latitude
=
location
.
getLatitude
();
longitude
=
location
.
getLongitude
();
longitude
=
location
.
getLongitude
();
Logger
.
v
(
TAG
,
"location latitude(%s), longitude(%s)"
,
latitude
,
longitude
);
Logger
.
v
(
TAG
,
"location latitude(%s), longitude(%s)"
,
latitude
,
longitude
);
...
@@ -1190,6 +1194,8 @@ public abstract class ABVContentViewActivity extends ABVAuthenticatedActivity {
...
@@ -1190,6 +1194,8 @@ public abstract class ABVContentViewActivity extends ABVAuthenticatedActivity {
afterABookCheckApi
(
mCmd
,
""
,
0
,
""
,
json
.
toString
());
afterABookCheckApi
(
mCmd
,
""
,
0
,
""
,
json
.
toString
());
};
};
});
});
mLocationSendResult
=
true
;
}
}
}
});
});
locationManagerUtil
.
startLocationService
();
locationManagerUtil
.
startLocationService
();
...
...
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