Also block all callbacks if the listener is not connected.
Also update the documentation to make lifecycle restictions
more clear.
Bug: 27582839
Change-Id: I029304e1fb87bd8d754cfb4641ba8cc095fc2b2e
updateRunningAccountsH() should check syncs against all accounts
on the device, not only running accounts.
Also add code to restore wrongly-canceled periodic syncs, saving
users from a bad state where the only alternative is to remove and
readd affected accounts.
Bug: 27733283
Change-Id: I96bce87571c3b7c6cd1934cc967f11257f891f55
Add an inner class for the updating-logic to differentiate that logic
from the rest of the service (logic such as keeping track of
relro-creation and the current WebView implementation).
The fallback logic doesn't hold any state but instead just checks the
state of the system to determine whether to enable/disable the fallback
package and therefore that logic doesn't really need its own class.
Since the minimumVersionCode check stores state we here move that into
the inner class containing the updating-logic.
Bug: 27635535
Change-Id: I0afdb74c12139439ca66bfbd1c173ad98662ed31
These were static, but since we load Strings from a given context
we should load them each time (e.g. Locale might have changed).
Bug: 28035606
Change-Id: I3dd654c29a2632bfd93ea791457fac5d9d0f6aa8
Introduces the ability to display a shortcut item as
an image (if it has a resource attached). Also added
vector drawables for: up, down, left, right, enter, meta
and backspace.
Note that accessibilty wise the drawables dynamically scale
to the height of the text items (which have the text size
set in sp).
Bug: 27455410
Change-Id: I49739313d83cf661bea9378108a1fa3d6c51bd2e
Now that we support disabling packages before downgrading them we can
do this for the webview fallback mechanism to avoid disabling a fallback
asynchronously (downgrading a package is an asynchronous operation).
We also check that the package is an upgraded app before downgrading it,
to not try to downgrade it unnecessarily.
Bug: 27894939
Change-Id: I541c2fcfe8016e4bcc2d5afff6e393c81e2749a2
By setting width to the ListView, the width of the containing text view
won't match with parent.
I locally verified this doesn't revive issue 27341560.
Bug: 28034210
Change-Id: I67886a752ef110d3433dddd6aa8447a9027f8e19
There are a handful of looper threads in the system_process that
are shared by dozens of different internal services. To help track
down what these operations are, tag the processing of each message
with a string that tries describing where it originated from: the
class name of the Handler, and the message number or class name of the
Runnable.
Bug: 28046299
Change-Id: I409ec43fea8daaae4fd70df05d4fed929a7249ae
* changes:
Set status bar color to material_blue_grey_950 as specified by UX.
Revert 'Make Files drawer appear behind system ui bars' because of action mode bug
On the lock screen the inline controls and gear behind the
notifications may be activated by accident. This CL alters them
to close after a certain period of time has occurred without
interaction.
Bug: 27335311
Change-Id: Ib3b0575571076a5912e23c7d2da5209e9a523fc8
This forces everyone to go through sdcardfs, instead of letting them
around the back door.
Bug: 27992761
Change-Id: If1d4d5daa4b32bb3be7de10102bab24d63552b65
Shouldn't animate the whole view, use the translatable views so that
they get clipped on tablet / landscape.
Additionally this changes the behavior in the case where the gear
might be showing, previously that would hide prior to the dismiss
all animation, UX prefers this to just have the notification cover
the gear and slide away or the gear fade away depending on the side
it's showing.
Bug: 28006639
Change-Id: I43027cb29410496de5b6e09c4a0c57a69484295c