diff options
author | Chia-chi Yeh <chiachi@android.com> | 2011-07-03 03:07:07 -0700 |
---|---|---|
committer | Chia-chi Yeh <chiachi@android.com> | 2011-07-03 03:07:07 -0700 |
commit | 34e7813e962de99df9813014678ef5901227c5f1 (patch) | |
tree | f61cbeefb7febbaf7b90792a16c6339ba7b4de9f /packages/VpnDialogs/src | |
parent | 44e27b5c74b5f441973561a4f945cb58e0cc45a4 (diff) | |
download | frameworks_base-34e7813e962de99df9813014678ef5901227c5f1.zip frameworks_base-34e7813e962de99df9813014678ef5901227c5f1.tar.gz frameworks_base-34e7813e962de99df9813014678ef5901227c5f1.tar.bz2 |
VPN: minor refinement.
Change-Id: I2b59cbe8554b6c6f8da48c465252489394f32653
Diffstat (limited to 'packages/VpnDialogs/src')
-rw-r--r-- | packages/VpnDialogs/src/com/android/vpndialogs/ManageDialog.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/packages/VpnDialogs/src/com/android/vpndialogs/ManageDialog.java b/packages/VpnDialogs/src/com/android/vpndialogs/ManageDialog.java index 206ce23..5559c3d 100644 --- a/packages/VpnDialogs/src/com/android/vpndialogs/ManageDialog.java +++ b/packages/VpnDialogs/src/com/android/vpndialogs/ManageDialog.java @@ -65,14 +65,14 @@ public class ManageDialog extends Activity implements Handler.Callback, ServiceManager.getService(Context.CONNECTIVITY_SERVICE)); View view = View.inflate(this, R.layout.manage, null); - if (mConfig.sessionName != null) { - ((TextView) view.findViewById(R.id.session)).setText(mConfig.sessionName); + if (mConfig.session != null) { + ((TextView) view.findViewById(R.id.session)).setText(mConfig.session); } mDuration = (TextView) view.findViewById(R.id.duration); mDataTransmitted = (TextView) view.findViewById(R.id.data_transmitted); mDataReceived = (TextView) view.findViewById(R.id.data_received); - if (mConfig.packageName.equals(VpnConfig.LEGACY_VPN)) { + if (mConfig.packagz.equals(VpnConfig.LEGACY_VPN)) { mDialog = new AlertDialog.Builder(this) .setIcon(android.R.drawable.ic_dialog_info) .setTitle(R.string.legacy_title) @@ -82,7 +82,7 @@ public class ManageDialog extends Activity implements Handler.Callback, .create(); } else { PackageManager pm = getPackageManager(); - ApplicationInfo app = pm.getApplicationInfo(mConfig.packageName, 0); + ApplicationInfo app = pm.getApplicationInfo(mConfig.packagz, 0); mDialog = new AlertDialog.Builder(this) .setIcon(app.loadIcon(pm)) @@ -169,7 +169,7 @@ public class ManageDialog extends Activity implements Handler.Callback, try { // See dev_seq_printf_stats() in net/core/dev.c. in = new DataInputStream(new FileInputStream("/proc/net/dev")); - String prefix = mConfig.interfaceName + ':'; + String prefix = mConfig.interfaze + ':'; while (true) { String line = in.readLine().trim(); |