Commit cf4233a0 by Lee Jaebin

ヘルプ画面のABookCheck→@Form 設定画面の操作説明書項目非表示

parent 17e6e150
...@@ -277,26 +277,31 @@ public class ABookSettingFragment extends PreferenceFragment { ...@@ -277,26 +277,31 @@ public class ABookSettingFragment extends PreferenceFragment {
} }
Preference abookCheckManual = findPreference(ABOOK_CHECK_MANUAL); Preference abookCheckManual = findPreference(ABOOK_CHECK_MANUAL);
// リソースパターンの適用
abookCheckManual.setTitle(PatternStringUtil.patternToString(getActivity().getApplicationContext(), // TODO マニュアルが古いので一旦非表示
R.string.operation_manual, // 以下の処理が復活したら削除処理を消す
getUserPref(getActivity().getApplicationContext(), AppDefType.UserPrefKey.RESOURCE_PATTERN_TYPE, 0))); appInfo.removePreference(abookCheckManual);
abookCheckManual.setOnPreferenceClickListener(new Preference.OnPreferenceClickListener() {
@Override // // リソースパターンの適用
public boolean onPreferenceClick(Preference preference) { // abookCheckManual.setTitle(PatternStringUtil.patternToString(getActivity().getApplicationContext(),
try { // R.string.operation_manual,
Intent intent = new Intent(); // getUserPref(getActivity().getApplicationContext(), AppDefType.UserPrefKey.RESOURCE_PATTERN_TYPE, 0)));
intent.putExtra(ABookKeys.CONTENT_ID, 0L); // abookCheckManual.setOnPreferenceClickListener(new Preference.OnPreferenceClickListener() {
intent.putExtra("FILEPATH", ABVEnvironment.getInstance().getContentCacheDirectoryPath(0L)); // @Override
intent.putExtra("page", 0); // public boolean onPreferenceClick(Preference preference) {
intent.setClass(getActivity(), GuideViewActivity.class); // try {
startActivity(intent); // Intent intent = new Intent();
} catch (Exception e) { // intent.putExtra(ABookKeys.CONTENT_ID, 0L);
Logger.e(TAG, e); // intent.putExtra("FILEPATH", ABVEnvironment.getInstance().getContentCacheDirectoryPath(0L));
} // intent.putExtra("page", 0);
return true; // intent.setClass(getActivity(), GuideViewActivity.class);
} // startActivity(intent);
}); // } catch (Exception e) {
// Logger.e(TAG, e);
// }
// return true;
// }
// });
} }
private void showLicenseDialog() { private void showLicenseDialog() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment