Commit Graph

2984 Commits

Author SHA1 Message Date
Daisuke Miyakawa
a93196f165 Take care of null in Wifi setup.
The preference isn't available in Wifi setup launched from
SetupWizard, causing NPE.

Bug: 3404998
Change-Id: Ia0dabea95e5e7424698a269c0851d610fd305309
2011-01-29 11:55:24 -08:00
Irfan Sheriff
abeff000fd Change sleep policy strings
Bug: 3404049
Change-Id: I8ad3eae778c1695fc98aaca01ef26677fa8106f1
2011-01-29 09:10:13 -08:00
Hung-ying Tyan
27682b0aff Merge "Clear mDialogFragment when it's detached" into honeycomb 2011-01-29 02:29:15 -08:00
Vasu Nori
a0098bd346 Merge "bug:3402846 fix settings->storage" into honeycomb 2011-01-28 18:39:38 -08:00
Vasu Nori
a3314e2bdb bug:3402846 fix settings->storage
Change-Id: Icb9e33cb0336f87f43797330f56e9c8fcbe2dfd0
2011-01-28 17:14:38 -08:00
Irfan Sheriff
7bdf0e73d0 Move sleep policy to main settings page
Bug: 3404049
Change-Id: I091abd737894a4adb9ebfc08b8e63bc3224b971c
2011-01-28 17:00:37 -08:00
Daisuke Miyakawa
46f4b754e1 Merge "Enlarge texts and fit the other elements" into honeycomb 2011-01-28 16:23:45 -08:00
Eric Fischer
335387dafe Merge "Import revised translations. DO NOT MERGE" into honeycomb 2011-01-28 15:10:11 -08:00
Eric Fischer
2eb1edc446 Import revised translations. DO NOT MERGE
Change-Id: Ifb50963e88a2d7c48440f0be4b411ede41ec0998
2011-01-28 14:58:24 -08:00
Daisuke Miyakawa
7893447987 Enlarge texts and fit the other elements
Basically set text size to 18sp and change layouts
along with the new design.

- Add custom list item xml for Wi-Fi security field
  rename existing "custom_list_item.xml" to appropriate
  name so that we won't be confused with their naming.
- Use the custom xml just in SetupWizard.

Bug: 3364731
Change-Id: I014903277a03c359ea193dd0f0a37c84ade19fa1
2011-01-28 14:22:48 -08:00
Jake Hamby
e1f883a38c Merge "Don't display extra A2DP profile icon for OPP." into honeycomb 2011-01-28 14:21:19 -08:00
Daisuke Miyakawa
a71551418c Merge "Disable "add network" button." into honeycomb 2011-01-28 12:36:07 -08:00
Daisuke Miyakawa
6ca5354727 Disable "add network" button.
It has broken UI which possibly get users stuck.

Bug: 3400715
Change-Id: Ic618078bc70a7db35ec22e6382b9486e92630120
2011-01-28 12:08:02 -08:00
Hung-ying Tyan
18eb39d085 Clear mDialogFragment when it's detached
and re-associate it when it's re-created.

Before this CL, the association is gone when fragment goes through the pause-resume
cycle.

Similarly, restore onDismiss and onCancel listeners in VpnSettings.onCreateDialog(),
restore states in onCreate() instead of onActivityCreated() so that screen rotation
can be handled correctly.

Now that profiles are shared between Settings instances, always handle state change
in VpnSettings.changeState() so that state changed in one instance can be conveyed
to the other and preferences can be correctly enabled/disabled.

In additions, fix some trivial mistakes in VpnSettings.

Bug: 3396394
Change-Id: I242e1ed6c6d410b4dfefb373d8f98266fc9b46d0
2011-01-28 23:39:45 +08:00
satok
c9cd29ddb8 Remove invalid call of "clearFocus" in SetupWizard......
Bug: 3398097

- Also disabled logging......
- Once you call "clearFocus", onFocusChanged will be called and
  EditText will try to show the keyboard again. And while bringing up the keyboard,
  the activity is changed and it will end up with the keyboard being shown in the next activity...

Change-Id: If4d3876d4950bb2583c5588f462a94d022d6a7cf
2011-01-28 18:03:47 +09:00
Dianne Hackborn
a5082305e8 Merge "Fix issue #3400255 Dialog fragments crash on rotation in Settings app" into honeycomb 2011-01-27 23:19:13 -08:00
Dianne Hackborn
300768fea5 Fix issue #3400255 Dialog fragments crash on rotation in Settings app
Change-Id: I337c1fb41e3fbedd7982418df497487481bb35d2
2011-01-27 20:39:21 -08:00
Jake Hamby
a6d9fce2e1 Don't display extra A2DP profile icon for OPP.
The getDrawableResource() method for OppProfileManager was returning
the resource ID for the A2DP icon. This was causing an extra headset
icon to be drawn for devices supporting OPP, when no icon should be
shown for this profile. Changed to return 0.

Bug: 3368197
Change-Id: Idcadaf59fe53301544cda215ca24f15608b2d727
2011-01-27 20:32:21 -08:00
Justin Ho
3b3af8d3b0 Merge "Updating Delete and Refresh icons to Honeycomb style" into honeycomb 2011-01-27 19:06:24 -08:00
Jake Hamby
3d1fd57e30 Increase size of BT profile icons and decrease alpha for inactive profiles
Increase the size of the Bluetooth profile icons from 20dp to 30dp.
Decrease the alpha for disabled profile icons to 50% of theme default.

Bug: 3400851
Change-Id: Ieb5ecb01ccbd7185d383828e0d9c9f78525ee0c4
2011-01-27 18:33:17 -08:00
Justin Ho
8472b1b60d Updating Delete and Refresh icons to Honeycomb style
Bug: 3362749
Change-Id: Ib4b61c9e7db05b0627c1f353d3747268455dab6c
2011-01-27 17:59:23 -08:00
Amith Yamasani
a4035aef92 Merge "Use the correct resource id for Battery use shortcut title." into honeycomb 2011-01-27 15:08:34 -08:00
Amith Yamasani
3e9ab63c60 Use the correct resource id for Battery use shortcut title.
Bug: 3399262

When displaying a list of shortcuts to settings screens, "Storage
settings" was used instead of "Battery use".

Change-Id: I4d445f188fc45d66623dc83e9eb2f9b045899561
2011-01-27 14:58:21 -08:00
Jake Hamby
6d509d2f35 Merge "Fix settings NPE crash on launch." into honeycomb 2011-01-27 14:05:44 -08:00
Justin Ho
c5708925c6 Adding missing hdpi assets
Change-Id: I791d331d7dbc93af6869d741eaa4282e7558a874
2011-01-27 10:14:54 -08:00
Jason parks
b1ab46b8cb Merge "Fix the build." into honeycomb 2011-01-27 10:11:00 -08:00
Jason parks
1b066aeff7 Fix the build.
I think I checked in the wrong file before.

Change-Id: Ie426bb5e865ea17f219ee07d3eb8cdd6f06e8cc7
2011-01-27 12:08:44 -06:00
Justin Ho
565d0eb808 Merge "New tab assets for Honeycomb" into honeycomb 2011-01-27 09:48:18 -08:00
Justin Ho
636bdc5ac9 New tab assets for Honeycomb
Change-Id: Ia955180781142295991df179fa419690fd0ffeee
2011-01-27 09:47:35 -08:00
Jason parks
f821730407 More work on the Crypt Keeper.
* Use the DPM to determine if we are encrypted.
* Fix misspelling (Comfirm -> Confirm).
* Animate to black when enabling encryption.
* Add holo droid background.
* Change the progress bar to indterminate.
* Display the percentage complete in the status line.
* Fixed bug 3388097. You will no longer have to unplug your device to start encryption. This line is intentionally long. I could make it shorter but I am proving a point: <magic>overflow: auto;</magic>.
* Actually hold onto the wakelock to prvent the device from sleeping.
* Implement onStop() as a orientation change can happen at boot. This will start the activity twice and there will be multiple handlers with messages.

Change-Id: Ia752d106c39e0d81431e856f8f500182e8ec1abd
2011-01-27 11:26:58 -06:00
Jake Hamby
632a10f470 Fix settings NPE crash on launch.
Sometimes when the settings app is resumed, HeadsetProfileManager's
getConnectedDevices() method is called before the onServiceConnected()
callback gives us the proxy object, causing an NPE. Check that we
have the proxy object, and return an empty list otherwise. The
correct states will be shown in the UI because the
onServiceConnected() callback makes its own call to getConnectedDevices()
to set the correct headset profile state.

Bug: 3378431
Change-Id: I364ade0804fb2090378438c8721afef6cac2b0b8
2011-01-26 17:49:20 -08:00
Dianne Hackborn
f955eda877 Merge "Import revised translations. DO NOT MERGE" into honeycomb 2011-01-26 17:35:59 -08:00
Eric Fischer
a1871544e8 Import revised translations. DO NOT MERGE
Change-Id: I00d851d7635880d85a4880e5a9201cbcabc101c9
2011-01-26 16:39:47 -08:00
Roy West
e2c557d4c0 Merge "Fix build; dumb syntax error." into honeycomb 2011-01-26 16:34:40 -08:00
Roy West
cbebe591d7 Fix build; dumb syntax error.
Change-Id: I1204650796df7a49c5221821f2d485fa7e312be6
2011-01-26 16:31:21 -08:00
Jim Miller
f484f23a53 Merge "Fix 3395616: Show IME by default when seting/changing password" into honeycomb 2011-01-26 16:25:32 -08:00
Jim Miller
165bf2fbbf Fix 3395616: Show IME by default when seting/changing password
Change-Id: I2c110042e58420bdc937582e840227edb93909a5
2011-01-26 16:10:26 -08:00
Roy West
ae3e318812 Merge "Editing encryption strings." into honeycomb 2011-01-26 15:41:11 -08:00
Roy West
302c14a241 Editing encryption strings.
Change-Id: Ia7c12ea353f1a2dfee3125d2c620980ddd825570
2011-01-26 15:38:38 -08:00
Jake Hamby
1f5be05ee5 Merge "Implement "show received files" preference item." into honeycomb 2011-01-26 13:40:37 -08:00
Amith Yamasani
ae71d89a6b Merge "Update airplane mode checkbox when toggled from system bar." into honeycomb 2011-01-26 13:16:30 -08:00
Roy West
5f765f7ca0 Fix to bug 3389385.
Change-Id: Ibf0d0ec3272c3b59fb20b837a739aaa99b1986b5
2011-01-26 12:27:44 -08:00
Amith Yamasani
fa782f5ee3 Merge "Hidden AddAccount activity doesn't need to deal with orientation changes." into honeycomb 2011-01-26 10:51:36 -08:00
Jake Hamby
4ee12032a3 Implement "show received files" preference item.
Add handler to send an intent to the Bluetooth OPP app to show the
list of received files to the user.

Bug: 3167219
Change-Id: I59e18559a0c35add7f1be56a5f040dae4dccc7f1
2011-01-26 10:51:32 -08:00
Amith Yamasani
585eda6191 Hidden AddAccount activity doesn't need to deal with orientation changes.
Bug: 3300523
Change-Id: I53e02e390267b1a88a6ae424aca18df439501f6d
2011-01-26 10:37:17 -08:00
Amith Yamasani
b98c00e710 Update airplane mode checkbox when toggled from system bar.
Bug: 3148095

Also fix an NPE crash I saw when exiting Settings immediately after toggling
the airplane mode.

Change-Id: I83eb2d90e203fd56b09269cf9fa8f74a4354834f
2011-01-26 09:56:44 -08:00
Chung-yih Wang
09b77105fb Make sure the profile list is consistent.
Since we may have more than one instance of VpnSettings, we have to make
the VPN profile list consistent between instances.

bug:3381902

Change-Id: Ic3128646c7fc6ee2a8c0ea6ce339d76115d7c05b
2011-01-26 16:17:24 +08:00
Hung-ying Tyan
f6ac42968f Merge "Fix alert dialogs in VpnSettings." into honeycomb 2011-01-26 00:07:38 -08:00
Hung-ying Tyan
adc83d8312 Fix alert dialogs in VpnSettings.
+ Don't check mDialogFragment.isVisible() in SettingsPreferenceFragment.removeDialog()
  as mDialogFragment may not be visible in parent fragment's onResume().
+ Replace mConnectDialog with mConnectDialogShowing and remove
  removeConnectDialog().
+ Dismiss alert dialogs in onPause() so that we don't need to maintain extra
  states during pause-resume cycle.

In addition, fix a NPE when startVpnTypeSelection().

Bug: 3381434
Bug: 3289365

Change-Id: Ic4aa87c7a618d95e86e45d6617f2ad7dab35f019
2011-01-26 15:50:33 +08:00
Dianne Hackborn
579a7ddb22 Merge "Fix issue #3343297 Settings force close when try to..." into honeycomb 2011-01-25 22:37:42 -08:00