diff options
author | Robert Greenwalt <rgreenwalt@google.com> | 2011-06-30 18:23:34 -0700 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2011-06-30 18:23:34 -0700 |
commit | 7675faa70d2baa290bb80b11b75ecc9aa29b2109 (patch) | |
tree | 18dbd49164f37e5204c644594683b061d781a598 /telephony | |
parent | 0e0c2043913af15f06b2307e908f231aea66ff10 (diff) | |
parent | 8745caaf25e9f2d50125a793b7d02fc4522ba4ba (diff) | |
download | frameworks_base-7675faa70d2baa290bb80b11b75ecc9aa29b2109.zip frameworks_base-7675faa70d2baa290bb80b11b75ecc9aa29b2109.tar.gz frameworks_base-7675faa70d2baa290bb80b11b75ecc9aa29b2109.tar.bz2 |
am 8745caaf: am dbcc57c6: Fix dependencyMet issues regarding hipri APN.
* commit '8745caaf25e9f2d50125a793b7d02fc4522ba4ba':
Fix dependencyMet issues regarding hipri APN.
Diffstat (limited to 'telephony')
-rw-r--r-- | telephony/java/com/android/internal/telephony/gsm/GsmDataConnectionTracker.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/telephony/java/com/android/internal/telephony/gsm/GsmDataConnectionTracker.java b/telephony/java/com/android/internal/telephony/gsm/GsmDataConnectionTracker.java index 5fc0bf9..4f847b8 100644 --- a/telephony/java/com/android/internal/telephony/gsm/GsmDataConnectionTracker.java +++ b/telephony/java/com/android/internal/telephony/gsm/GsmDataConnectionTracker.java @@ -1535,6 +1535,9 @@ public final class GsmDataConnectionTracker extends DataConnectionTracker { @Override protected void onSetDependencyMet(String apnType, boolean met) { + // don't allow users to tweak hipri to work around default dependency not met + if (Phone.APN_TYPE_HIPRI.equals(apnType)) return; + ApnContext apnContext = mApnContexts.get(apnType); if (apnContext == null) { loge("onSetDependencyMet: ApnContext not found in onSetDependencyMet(" + @@ -1542,6 +1545,11 @@ public final class GsmDataConnectionTracker extends DataConnectionTracker { return; } applyNewState(apnContext, apnContext.isEnabled(), met); + if (Phone.APN_TYPE_DEFAULT.equals(apnType)) { + // tie actions on default to similar actions on HIPRI regarding dependencyMet + apnContext = mApnContexts.get(Phone.APN_TYPE_HIPRI); + if (apnContext != null) applyNewState(apnContext, apnContext.isEnabled(), met); + } } private void applyNewState(ApnContext apnContext, boolean enabled, boolean met) { |