private void assignPlayStoreIntentToPreference(int preferenceId, String url) {
final PreferenceGroup category = (PreferenceGroup) findPreferenceByResId(
R.string.pref_category_miscellaneous_key);
final Preference pref = findPreferenceByResId(preferenceId);
if (pref == null) {
return;
}
Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(url));
if (!canHandleIntent(intent)) {
category.removePreference(pref);
return;
}
pref.setIntent(intent);
}
TalkBackPreferencesActivity.java 文件源码
java
阅读 26
收藏 0
点赞 0
评论 0
项目:talkback
作者:
评论列表
文章目录