summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLinux Build Service Account <lnxbuild@localhost>2015-01-16 02:44:11 -0800
committerGerrit - the friendly Code Review server <code-review@localhost>2015-01-16 02:44:11 -0800
commitc8d0acd4ee2994cd21626b1407b4626be7cd3b78 (patch)
tree459c08ca5fe36197439e1156cdb8c76062c1b535
parent917a4f7267da619e39bb8a06ec6f2e0e8c828699 (diff)
parent787a6bb1167be8a58ccf3badce8fbf5d1163e1cc (diff)
downloadandroid_packages_apps_Gallery2-c8d0acd4ee2994cd21626b1407b4626be7cd3b78.tar.gz
android_packages_apps_Gallery2-c8d0acd4ee2994cd21626b1407b4626be7cd3b78.tar.bz2
android_packages_apps_Gallery2-c8d0acd4ee2994cd21626b1407b4626be7cd3b78.zip
Merge "Gallery2: Set APN setting intent's name"
-rwxr-xr-xsrc/org/codeaurora/gallery3d/video/SettingsActivity.java11
1 files changed, 4 insertions, 7 deletions
diff --git a/src/org/codeaurora/gallery3d/video/SettingsActivity.java b/src/org/codeaurora/gallery3d/video/SettingsActivity.java
index e2a60d49c..3d7fac573 100755
--- a/src/org/codeaurora/gallery3d/video/SettingsActivity.java
+++ b/src/org/codeaurora/gallery3d/video/SettingsActivity.java
@@ -286,22 +286,19 @@ public class SettingsActivity extends PreferenceActivity {
}
private void setApnListener() {
- final String CLASS_NAME = "com.android.settings.ApnSettings";
final String SUBSCRIPTION_KEY = "subscription";
-
mApn.setSummary(getDefaultApnName());
mApn.setOnPreferenceClickListener(new Preference.OnPreferenceClickListener() {
public boolean onPreferenceClick(Preference preference) {
- Intent intent = new Intent();
- intent.setClassName(PACKAGE_NAME, CLASS_NAME);
-
+ Intent intent = new Intent(Settings.ACTION_APN_SETTINGS);
int subscription = 0;
try {
subscription = Settings.Global.getInt(SettingsActivity.this.getContentResolver(),
Settings.Global.MULTI_SIM_DATA_CALL_SUBSCRIPTION);
- intent.putExtra(SUBSCRIPTION_KEY, subscription);
} catch (Exception e) {
- Log.d("SettingActivity", "Can't get subscription for Exception" + e);
+ Log.d("SettingActivity", "Can't get subscription for Exception: " + e);
+ } finally {
+ intent.putExtra(SUBSCRIPTION_KEY, subscription);
}
startActivityForResult(intent, SELECT_APN);
return true;