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
4a91468a
Commit
4a91468a
authored
Jun 30, 2020
by
yuichiro ogawa
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/features/1.2.300' into features/1.2.0_ogawa-y
parents
824da76b
bea667ab
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
44 additions
and
17 deletions
+44
-17
ABVJE_UI_Android/src/com/theta/helper/ThetaHelper.java
+37
-0
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/viewer/activity/CheckOZDViewActivity.java
+1
-8
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/viewer/activity/ContentViewActivity.java
+3
-5
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/viewer/activity/ParentWebViewActivity.java
+3
-4
No files found.
ABVJE_UI_Android/src/com/theta/helper/ThetaHelper.java
View file @
4a91468a
...
...
@@ -253,8 +253,45 @@ public class ThetaHelper {
wifiManager
.
disableNetwork
(
wifi_inf
.
getNetworkId
());
wifiManager
.
disconnect
();
}
//通常Wi-Fi再接続処理
// boolean disconnect = true;
// for (WifiConfiguration configuration : wifiManager.getConfiguredNetworks()) {
// if (wifi_inf.getNetworkId() == configuration.networkId) {
// String packageName = mContext.getPackageName();
// int result = configuration.toString().indexOf(packageName);
// if (result != -1) {
// disconnect = false;
// break;
// }
// }
// }
// if (disconnect) {
// //一番近くにあるの通常Wi-Fiに接続
// List<ScanResult> results = wifiManager.getScanResults();
// int level = 0;
// int networkId = -1;
// for (WifiConfiguration configuration : wifiManager.getConfiguredNetworks()) {
// int index = configuration.SSID.indexOf(ABookValues.THETA_MODEL_NAME_THETA);
// if (index != -1) {
// continue;
// }
// for (ScanResult scanResult : results) {
// if (configuration.SSID.indexOf(scanResult.SSID) != -1) {
// if (level == 0 || WifiManager.compareSignalLevel(level, scanResult.level) < 0) {
// level = scanResult.level;
// networkId = configuration.networkId;
// }
// break;
// }
// }
// }
// if (networkId != -1) {
// wifiManager.enableNetwork(networkId, true);
// }
// }
}
/**
* ConnectivityManagerを利用してアプリ(プロセス)全体のネットワークを設定します。
*/
...
...
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/viewer/activity/CheckOZDViewActivity.java
View file @
4a91468a
...
...
@@ -364,14 +364,7 @@ public class CheckOZDViewActivity extends ABVContentViewActivity {
@Override
public
boolean
onKeyUp
(
int
keyCode
,
KeyEvent
event
)
{
if
(
keyCode
==
KeyEvent
.
KEYCODE_BACK
)
{
if
(
mAddReport
)
{
ozdCancelProcess
();
// Ozd作業画面を閉じる
}
else
{
// 作業追加区分がなしの場合
goToMain
();
// 一覧画面に遷移
}
}
else
{
if
(
keyCode
!=
KeyEvent
.
KEYCODE_BACK
)
{
return
super
.
onKeyUp
(
keyCode
,
event
);
}
return
false
;
...
...
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/viewer/activity/ContentViewActivity.java
View file @
4a91468a
...
...
@@ -1535,10 +1535,6 @@ public class ContentViewActivity extends ABVContentViewActivity {
public
boolean
onKeyUp
(
int
keyCode
,
KeyEvent
event
)
{
if
(
keyCode
==
KeyEvent
.
KEYCODE_BACK
)
{
Logger
.
d
(
TAG
,
"KeyEvent.KEYCODE_BACK"
);
if
(
mOperationId
!=
null
&&
mOperationId
>
-
1
)
{
putUserPref
(
AppDefType
.
UserPrefKey
.
SYNC_TARGET_OPERATION_ID
,
mOperationId
);
}
if
(
isVideoMax
)
{
videoMaxToDefault
();
}
else
if
(
isMarking
)
{
...
...
@@ -1560,7 +1556,9 @@ public class ContentViewActivity extends ABVContentViewActivity {
if
(
isLinkedContent
)
{
goToBack
();
}
else
{
moveToBack
();
if
(
mOperationId
==
-
1
)
{
//通常PDFコンテンツのみ戻る機能有効
moveToBack
();
}
}
}
return
false
;
...
...
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/viewer/activity/ParentWebViewActivity.java
View file @
4a91468a
...
...
@@ -222,13 +222,12 @@ public class ParentWebViewActivity extends ABVContentViewActivity {
if
(
mXWalkOpenType
==
Constant
.
XWalkOpenType
.
PANO_EDIT
)
{
showConfirmSavePanoEdit
();
}
else
{
if
(
mOperationId
!=
null
&&
mOperationId
>
-
1
)
{
putUserPref
(
AppDefType
.
UserPrefKey
.
SYNC_TARGET_OPERATION_ID
,
mOperationId
);
}
if
(
isLinkedContent
)
{
goToBack
();
}
else
{
finishActivity
();
if
(
mOperationId
==
-
1
)
{
//通常リンクコンテンツのみ戻る機能有効
finishActivity
();
}
}
}
}
else
{
...
...
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