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
bd1b9918
Commit
bd1b9918
authored
Jun 22, 2022
by
onuma
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
サービスオプションで、アルコールチェッカー連携がOFFの時は設定項目から消す
parent
3e48ada3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
4 deletions
+12
-4
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/home/activity/ABookSettingFragment.java
+12
-4
No files found.
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/home/activity/ABookSettingFragment.java
View file @
bd1b9918
...
...
@@ -483,13 +483,21 @@ public class ABookSettingFragment extends PreferenceFragment {
// 機器連携のペアリング設定
private
void
setPairingSetting
()
{
PreferenceGroup
devicePairing
=
(
PreferenceGroup
)
findPreference
(
SET_ALC_PAIRING
);
// アルコールチェッカーHW設定がOFFの場合は、設定のカテゴリを表示しない
PreferenceGroup
devicePairing
=
(
PreferenceGroup
)
findPreference
(
SET_PAIRING
);
if
(!
ABVDataCache
.
getInstance
().
serviceOption
.
isAlcoholCheckerHw
())
{
// Preference alcoholChecker = (Preference) findPreference(SET_ALC_PAIRING);
// devicePairing.removePreference(alcoholChecker);
Preference
alcoholChecker
=
(
Preference
)
findPreference
(
SET_ALC_PAIRING
);
devicePairing
.
removePreference
(
alcoholChecker
);
// カテゴリーも消す
PreferenceScreen
preferenceScreen
=
getPreferenceScreen
();
Preference
pref2
=
getPreferenceManager
().
findPreference
(
SET_PAIRING
);
preferenceScreen
.
removePreference
(
pref2
);
return
;
}
//PreferenceUtil ppp = devicePairing.findPreference(SET_ALC_PAIRING);
devicePairing
.
setOnPreferenceClickListener
(
new
OnPreferenceClickListener
()
{
@Override
public
boolean
onPreferenceClick
(
Preference
preference
)
{
...
...
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