#46276 プライバシーポリシーの追加
Showing
... | @@ -85,7 +85,8 @@ public class ABookSettingFragment extends PreferenceFragment { | ... | @@ -85,7 +85,8 @@ public class ABookSettingFragment extends PreferenceFragment { |
private static final String CHECK_APP_UPDATE = "checkAppUpdate"; | private static final String CHECK_APP_UPDATE = "checkAppUpdate"; | ||
private static final String ABOUT_A_BOOK = "aboutABook"; | private static final String ABOUT_A_BOOK = "aboutABook"; | ||
private static final String ABOOK_CHECK_MANUAL = "abookCheckManual"; | private static final String ABOOK_CHECK_MANUAL = "abookCheckManual"; | ||
private static final String PRIVACY_POLICY = "privacyPolicy"; | |||
protected Handler handler = new Handler(); | protected Handler handler = new Handler(); | ||
protected AlertDialog alertDialog = null; | protected AlertDialog alertDialog = null; | ||
private SharedPreferences pref; | private SharedPreferences pref; | ||
... | @@ -250,6 +251,17 @@ public class ABookSettingFragment extends PreferenceFragment { | ... | @@ -250,6 +251,17 @@ public class ABookSettingFragment extends PreferenceFragment { |
} | } | ||
}); | }); | ||
// プライバシーポリシー | |||
Preference privacyPolicy = findPreference(PRIVACY_POLICY); | |||
privacyPolicy.setOnPreferenceClickListener(new Preference.OnPreferenceClickListener() { | |||
@Override | |||
public boolean onPreferenceClick(Preference preference) { | |||
Intent browserIntent = new Intent(Intent.ACTION_VIEW, Uri.parse("https://www.agentec.jp/privacy/")); | |||
Please
register
or
sign in
to reply
|
|||
startActivity(browserIntent); | |||
return true; | |||
} | |||
}); | |||
// アップデート確認 | // アップデート確認 | ||
Preference checkAppUpdate = findPreference(CHECK_APP_UPDATE); | Preference checkAppUpdate = findPreference(CHECK_APP_UPDATE); | ||
if (getResources().getInteger(R.integer.check_app_update) == 1) { | if (getResources().getInteger(R.integer.check_app_update) == 1) { | ||
... | ... |