- show bottom padding only when top bar is using static View
- hide wifi preference when ProgressBar is used
- show bottom padding when top bar is using static View and
wifi preference is hidden.
- rename wifi_config_padding to content_padding, as it is not
just for wifi config but for acquiring default hight of
@id/content
- update screen state correctly
Bug: 3502220
Change-Id: I86c89435f43d6bd016a78f7afeb5f477f63d0696
Major refactoring of Bluetooth settings classes.
- Moved all functionality from LocalBluetoothManager into new
LocalBluetoothAdapter and LocalBluetoothPreferences, and into
existing classes.
- Refactored functionality from BluetoothEventRedirector into new
BluetoothEventManager class, deleting the original version. New
version uses a HashMap from action Strings to implementers of the
BluetoothEventManager.Handler interface.
- Created new BluetoothDiscoveryReceiver to update shared preferences
timestamp for Bluetooth discovery start/finish. This is the only event
handling we need to do when the settings app is not visible, so it has
its own receiver entry in AndroidManifest.xml. Edits are written using
QueuedWork.singleThreadExecutor(), which BroadcastReceiver knows about
and will wait for completion, eliminating the need for PendingResult.
- Miscellaneous cleanups to code style and logic for readability.
- Pulled some large switch statement code blocks into new methods.
- Changed all Bluetooth state references to the new BluetoothProfile
constants.
- Changed use of deprecated Notification constructor in
BluetoothPairingRequest to use Notification.Builder.
- Moved Utf8ByteLengthFilter helper function from BluetoothNamePreference
into its own class, and moved test cases into the same package.
- Moved all LocalBluetoothProfileManager functionality related to
specific profiles into new top-level classes (A2dpProfile, etc.), all
implementing the LocalBluetoothProfile interface.
- Moved all UI-related methods from CachedBluetoothDevice into the class
that uses the method, or into the static Utils class for shared methods.
Change-Id: I6d49b7f4ae0c7d7dcf62551ee40b51ecb5fe4f47
replaced this kind of code
string + " " + number + "out of" + " " + number
with this
String.format("%1$d out of %2$d", number, number);
Change-Id: If1cc296da48dd6823e9081a55b6eab2e3fcee552
- remove delayed button enabler stuff including
"add network" and "refresh" buttons
- add bottom padding to stop moving bottom divider up/down
- add padding for the preference, which should have been
done in I1f8fb8eca11d52d9c18866301553110c2147b3ef
Bug: 3424645
Change-Id: Ifc8120c123ee154fbe11526474edc65c5943eea6
when music storage usage is clicked on, show music app
when downloads storage usage is clicked on, show download app
when pic/videos storage usage is clicked on, show gallery app
Change-Id: Ia1c341013e550acb537e6f8a4f4558030888cc45
We need View in addtion to ProgressBar, since the latter doesn't
allow us to control its padding on the bottom.
Bug: 3443287
Change-Id: I1f8fb8eca11d52d9c18866301553110c2147b3ef
This updates the disabled strings to give the user an idea
why the given methods are disabled. It's either because
the DevicePolicyAdmin disabled it ("administrator") or
because the device is encrypted.
Change-Id: I0e99742a838037d069f686ed98f9622754bafe13
We support sensorLandscape for a moment.
See also I45e30c652feab1d30c4f0379379f8ca4e455fa02
- Use sensorLandscape instead of default
- Modify paddings in default xmls to layout landscape stuffs
correctly
Change-Id: Ife03de69e4d1d2d898cd0e8de3cefd733aea8f19
- Add text to warn users about support
- Move proxy above IP settings based on UI recommendations
Bug: 3328410
Change-Id: I3b5aafd32b16adfcd2fadb572ebb2694afdeccbb