summaryrefslogtreecommitdiffstats
path: root/packages/VpnServices
diff options
context:
space:
mode:
authorChung-yih Wang <cywang@google.com>2009-08-03 15:01:58 +0800
committerChung-yih Wang <cywang@google.com>2009-08-03 15:11:36 +0800
commitdc1d5704a725d207b98de1b117847297958d9148 (patch)
treedd2e823cd931992d8bbafd054dcfedf567bf7055 /packages/VpnServices
parentb86bad9493a331a09dd765bc6e725c0aec969ff6 (diff)
downloadframeworks_base-dc1d5704a725d207b98de1b117847297958d9148.zip
frameworks_base-dc1d5704a725d207b98de1b117847297958d9148.tar.gz
frameworks_base-dc1d5704a725d207b98de1b117847297958d9148.tar.bz2
Fix the auto notification cleanup when vpn is disconnected.
+ add the log print if the browser give the incorrect data in addCertificate().
Diffstat (limited to 'packages/VpnServices')
-rw-r--r--packages/VpnServices/src/com/android/server/vpn/VpnService.java7
1 files changed, 0 insertions, 7 deletions
diff --git a/packages/VpnServices/src/com/android/server/vpn/VpnService.java b/packages/VpnServices/src/com/android/server/vpn/VpnService.java
index b107c7d..b85005c 100644
--- a/packages/VpnServices/src/com/android/server/vpn/VpnService.java
+++ b/packages/VpnServices/src/com/android/server/vpn/VpnService.java
@@ -256,9 +256,6 @@ abstract class VpnService<E extends VpnProfile> implements Serializable {
if (mState == VpnState.IDLE) return;
- // keep the notification when error occurs
- if (!anyError()) mNotification.disableNotification();
-
restoreOriginalDns();
restoreOriginalDomainSuffices();
mState = VpnState.IDLE;
@@ -269,10 +266,6 @@ abstract class VpnService<E extends VpnProfile> implements Serializable {
mContext.stopSelf();
}
- private boolean anyError() {
- return (mError != null);
- }
-
private void restoreOriginalDns() {
// restore only if they are not overridden
String vpnDns1 = SystemProperties.get(VPN_DNS1);