| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
| |
Persist the user state until they disable it.
Ticket: CYNGNOS-3135
Change-Id: I9956f78419e94cc63b6a6ecabd28075a32192c2a
Signed-off-by: Roman Birg <roman@cyngn.com>
|
|
|
|
|
|
|
|
|
|
| |
Resolves the themes tile having the default android activity icon. Also
resolves other dynamic tiles not being queried properly.
Ticket: OSS NIGHTLIES-2967
Change-Id: I532eeaef417195f3148915b777e7ab175b1089aa
Signed-off-by: Roman Birg <roman@cyngn.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
When the user hasn't visisted the quick settings tile area for some time
(currently 10s), we need to reset the page back to the first one.
We can't go off whether we are listening to events because when the user
turns the screen off, listening is set to true, so the page would never
reset if the user turned their screen off.
We now key off whether we are expanded, which represents whether the
user is interacting with the panel.
Change-Id: I010aaa9e9ea84eb96308184dad606d47ce136748
Signed-off-by: Roman Birg <roman@cyngn.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- Check whether NFC is supported based on device features
- Don't hold a reference to the NFC adapter - query it when we need it
(not using getDefault, but the internal method, if we use the default,
querying for the adapter before the service was spun up would lead to
systemui never having a valid refernce to an adpater).
Ticket: CYNGNOS-1943, CYNGNOS-2866
Change-Id: Iba8b668406ca96183aafcf9a55d60c6d89d70061
Signed-off-by: Roman Birg <roman@cyngn.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Don't try to fit the detail views, but allow the user to scroll freely
while detail view is showing and we are in landscape. The user can still
fling up and down and the velocity flings are respected in the detail
scroll lock mode.
Hitting done will always return the user
to the QS panel, or they can close the detail view manually.
Ticket: FEIJ-201
Change-Id: Id8b16a682ba5cebdc57c0455d81aa38fd5e90cbd
Signed-off-by: Roman Birg <roman@cyngn.com>
|
|
|
|
| |
Change-Id: I4409d1e9e7310530b47ac7d48db8c4796f0ae49e
|
|
|
|
|
|
|
| |
Ticket: CYNGNOS-2814
Change-Id: I305ac5eca862ffa5c525ec6b39bfeddf03719227
Signed-off-by: Roman Birg <roman@cyngn.com>
|
|
|
|
|
|
|
|
| |
Adapter callback to disconnect device was not being set after
scrollable tiles bringup. This resulted in a broken disconnect
button in the details item list.
Change-Id: Ibbc96d9d379b95b04b4376f4767fd877226c0c95
|
|
|
|
|
|
| |
CYNGNOS-2837
Change-Id: I9a0f9febe22e046a1fb3297e6a4b3ab1f8fafa87
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The blank tiles were an artifact of precaching custom tiles. We need to
not show them or count them if they don't have an actual tile attached
to them yet.
Also, allow disabled tiles to be edited.
Ticket: CYNGNOS-2530
Change-Id: Ie6e0e6e18435eb53e9b419a05d780bdd1ee808b7
Signed-off-by: Roman Birg <roman@cyngn.com>
|
|
|
|
|
|
|
|
|
|
|
|
| |
Use new persisted key which does not use the tiles' ID (which changes
usually across reboots with every tile). When the Custom tile service
comes up, it will update the placeholder tiles created with their real
values and the order is preserved properly.
Ticket: CYNGNOS-2530
Change-Id: I5e75c739553969f1d92c249f521a476259fe0cd6
Signed-off-by: Roman Birg <roman@cyngn.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
We previously had no mechanism of knowing which tiles the user had
manually removed, leading to the tiles returning when the publishing
application decided it was time to update.
Now, when the user removes a custom tile; set a flag and hide it in the
tile list. The removed tiles will be enumerated in the Add tile detail
view if the user decides they want it back.
Ticket: CYNGNOS-2530
Change-Id: Ia4fe74ef580af7139279a2fb78e240e872f8dbb0
Signed-off-by: Roman Birg <roman@cyngn.com>
|
|
|
|
|
|
|
| |
If a tile doesn't provide resources, don't crash.
Change-Id: I4ad7ea731d970cf62d47d0696a6c7ee078acf108
Signed-off-by: Roman Birg <roman@cyngn.com>
|
|
|
|
|
|
|
| |
ADB_ENABLED is in Global since a while, correct occurences
-> Reduces logspam
Change-Id: I6fed6d63827179fe134e3ba150a20a3ba0a5202b
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Whenever setTiles() was called, we assumed all the tile animations had
finished, but if the eager beaver had grabbed a tile and dropped it on the
remove target before waiting for all the animations to complete, a lot of
assumptions are broken and crashes happen. Mainly because tiles aren't removed
from pages and we try to add them to a different page (like if they
needed to be placed a page back).
Implemented cancel for ongoing animations, which we call whenever
setTiles comes in. So all tiles should be in their proper state before
we try to cache/re-add them. Also cleaned up and documented setTiles().
Also, don't try to place the edit tile in the proper place, just add it
to the list if it's not present.
Ticket: CYNGNOS-2472
Change-Id: I5c066abbc16f1fe7173525ea6a8a8b39460461ae
Signed-off-by: Roman Birg <roman@cyngn.com>
|
|
|
|
|
|
| |
* Moving to dynamic.
Change-Id: I7c886139f11f18f2227ad0e7dd7e0f2d949fbda5
|
|
|
|
|
|
|
| |
* Remove all LiveDisplay-related code from the framework, and
update the QS tile for the new API.
Change-Id: I41c04a254afa91c0ed26c050362b63049d489fba
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
These were hidden based on usage patterns to not clutter up the initial
dropdown with a bunch of tiles the user may not user.
Since we allow configuration of the tiles, the tile pages are
limited in height, and it doesn't really fit in with our edit tile
scheme, let's always show these tiles. The user can hide them if they
need.
This provides for a more consistent experience when hitting "edit
tiles."
Change-Id: If4c1254d2200f260a1263658eab6761755420816
Signed-off-by: Roman Birg <roman@cyngn.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- Fix the tile not showing, the javadoc states that it will return 0 if
profiles are not supported, but it was actually returning -1.
- Now disables itself when the device is plugged in to reflect to the user
that they cannot toggle it on right now.
- Don't wait for power manager to update its internal state before
updating the visual tile state.
Change-Id: I8ab6adb2bfa728a242368294c1f066d468a86f09
Signed-off-by: Roman Birg <roman@cyngn.com>
|
|
|
|
|
|
|
|
| |
Small optimization, otherwise we'd scan until the user closed the status
bar.
Change-Id: I8d9d933287e0225a8557a7aec06eb60392464fa7
Signed-off-by: Roman Birg <roman@cyngn.com>
|
|
|
|
|
|
| |
CYNGNOS-2222
Change-Id: I435b1badbc5949cb0bc76050a67e212d519c466a
|
|
|
|
|
|
|
|
|
|
| |
If a user hotswaps out their SIMs on a multisim device, the
default data sim can be in an "unset" state. Since this is
a possible scenario, its better to show that no data sim
is selected vs no sims being available.
Change-Id: I1e077883472a5037f38f97e6d15afe504f787e6a
TICKET: CYNGNOS-2211
|
|
|
|
|
|
|
| |
Get the number of connected clients in onReceive and cache the value
to be used in handleUpdateState
Change-Id: I011a13e186c1fa9976df58a4ad1603e6c0cd6bbb
|
|
|
|
|
|
|
|
|
|
| |
Reset the quick settings page back to the first page when the user
hasn't expanded their statusbar for 10s.
Ref: CYNGNOS-2132
Change-Id: Ia195f8c85c8e399ab5e4808fe0ccc343853a1577
Signed-off-by: Roman Birg <roman@cyngn.com>
|
|
|
|
|
|
|
|
| |
Since we no longer post a notification showing that the wifi hotspot
is on and the # of connected clients, we now show the # of clients
connected in the label of the hotspot QS tile.
Change-Id: I9ed37b96db9b5b4320a7260524f69733ea70d030
|
|
|
|
|
|
|
|
|
|
|
| |
Fix to show the SIM card settings when QS network tile is long
pressed.
This patch also ports commit d427e02 from cm-12 to prevent showing
mobile network options for seconday users
Change-Id: I6c94fda5d2de0aa26285bd7d14b7dceac044bf41
TICKET: CYNGNOS-2052
|
|
|
|
|
|
|
|
|
|
|
| |
While going away from the detail view, sometimes it wasn't able to
refresh it's state, resulting in the icon not showing and then appearing
suddenly.
Ref: CYNGNOS-2056
Change-Id: I9a634cc4c774c78dc7316619db446f4ea6c2c79f
Signed-off-by: Roman Birg <roman@cyngn.com>
|
|
|
|
| |
Change-Id: I5d4aa97ae63fc0bcc40f0fa7d9305efbba091029
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
We use this method to determine wither to allow profiles and the lock
screen tile whether to allow messing with the lockscreen.
Don't check whether the keystore is empty. Check whether we allow trust
agents by DPM. And also make keyguard use this method to respect it.
Ref: CYNGNOS-1930
Change-Id: I1a2b26419d43bd2bbc1d4a5027f1ed78d2744466
Signed-off-by: Roman Birg <roman@cyngn.com>
|
|
|
|
|
|
|
|
|
|
|
| |
There is a CTS Verifier test which explicitly says "Please disable 'Do not disturb' by tapping the Quick Settings tile."
This commit breaks this expectation.
This reverts commit d77070c2c3c6bfc72f61fd0d48d15ba6f84cc49f.
Change-Id: I55af2c8194307590f70b2114d6fe5273f5a74528
Ref: CYNGNOS-1979
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Disable (grey out) the lock screen tile when a profile is already
disabling it. Profiles takes precedence over the internal setting.
Also simplify lockscreen disable logic - using a null'd Boolean without
synchonization will lead to things falling out of place.
Ref: CYNGNOS-1930
Change-Id: Ia4cb7926e418a4d72426be65e5bfb11dc44bee5e
Signed-off-by: Roman Birg <roman@cyngn.com>
|
|
|
|
|
|
| |
YAM-21
Change-Id: I3abd262239fedf771b0b2ff38dadb42490f42432
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
When the user hits done while in edit mode on the QS Settings page, the
animation can be a little jarring to move to the first page while the
brightness view slides into place. So let's immediately put the
brightness view into its proper position when going out of editing mode
on the settings page.
Ref: OPO-425
Change-Id: I93794a94752978b1055911bbef19ee9f0d77bd3c
Signed-off-by: Roman Birg <roman@cyngn.com>
|
|
|
|
|
|
|
|
|
|
| |
It's unclear that the edit tile toggle will not be functional in the
lock screen - reflect this by disabling the tile when on the keyguard.
Ref: OPO-426
Change-Id: I9ec46402b8d63e012ca806bafa4c050fc0729ab8
Signed-off-by: Roman Birg <roman@cyngn.com>
|
|
|
|
|
|
|
|
|
|
| |
Any app which is smart enough to mess with QS tiles has the ability to
make their own broadcast tile.
Ref: CYNGNOS-1814
Change-Id: I5553692b3ac4439c9c967a7209e6f687c7aef4f9
Signed-off-by: Roman Birg <roman@cyngn.com>
|
|
|
|
|
|
|
|
|
| |
Check before adding the page to make sure we haven't yet added it.
Ref: CYNGNOS-1644
Change-Id: I8b5d807a51152e3e6ce7a9a07cef728aa410e23e
Signed-off-by: Roman Birg <roman@cyngn.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
When moving a tile to the first row, make sure not to do any extra work
unless we actually changed dual states. Also no need to re-calculate the
state.
Animate all the things together.
Ref: CYNGNOS-1644
Change-Id: Id462838633c22c67607d5bd94d0e0faee8ea3464
Signed-off-by: Roman Birg <roman@cyngn.com>
|
|
|
|
|
|
|
|
|
|
|
|
| |
Add a clearer indication that the edit tile cannot be deleted via an
animation.
Animations by Asher Simonds.
Ref: CYNGNOS-1644
Change-Id: I829faface9268cd2900533f8194bdfe58339420c
Signed-off-by: Roman Birg <roman@cyngn.com>
|
|
|
|
|
|
|
|
|
| |
This can lead to the items disappearing sometimes.
Ref: CYNGNOS-1241 CYNGNOS-1644
Change-Id: Iea3e0467b56ae17f266c99b02866f8981b5007d7
Signed-off-by: Roman Birg <roman@cyngn.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- Always remove all tile views before setting new tiles
- Save and restore the viewpager page when setting tiles as we need to
reset this page when we're done (after re-setting the adapter)
- Reset the pager adapter to force page removes and fix ghost scrolling
to non existent pages.
- No need to set tiles to 0 while recreating status bar or switching
themes
- Always recalculate heights after switching brightness slider, and
explicitly set the visibility on the slider too
Ref: CYNGNOS-1644 OPO-367
Change-Id: Id08fbbcd38f24c16ee044c0d63389b36845c81b9
Signed-off-by: Roman Birg <roman@cyngn.com>
|
|
|
|
|
|
|
|
|
| |
Otherwise first layout can lead to awkward layout with two rows.
Ref: CYNGNOS-1601
Change-Id: Ia80b1ea7dba282e695d2b967cc1d7ed876529618
Signed-off-by: Roman Birg <roman@cyngn.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
With this patch, the quick settings area should automatically expand and
make room for the tile trashcan/instruction area when the user has the
brightness slider hidden.
Also adds a scrollview to the QS Settings page to allow the list to grow
without impacting the height of the qs panel.
Ref: CYNGNOS-1644
Change-Id: I03f552ec28a978c4cad1e7e7a52648ec3d311a07
Signed-off-by: Roman Birg <roman@cyngn.com>
|
|
|
|
|
|
|
| |
Do not turn on hotspot in APM Mode and show clear alert message
Change-Id: I3afcc92a93707e15cd436ebc1cffb74567443483
CRs-Fixed: 926474
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
When toggling whether to enlarge the first two tiles, the tiles were
retaining their previous pages and not properly moving to pages as
necessary (cauaing the first page to have more tiles than there should
be). Clearing out the tiles before to clear the states when the option
is toggled will lay the tiles out properly.
Ref: CYNGNOS-1644
Change-Id: I8f44faf4b9edf80418b24bea6f5906246be9ad07
Signed-off-by: Roman Birg <roman@cyngn.com>
|
|
|
|
|
|
|
|
|
|
| |
Can't add views to the index of the position of the page because that
assumes all other pages are part of the view group.
Ref: CYNGNOS-1644
Change-Id: I5e51d5561787ca0358a98cfd68c4a53d81117613
Signed-off-by: Roman Birg <roman@cyngn.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- Hide QS tile toast message while adding tile
- Don't allow scrolling right when on last page
- The viewpager adapter is no longer responsible for actually creating the
backing pages, so we can safely cache them and add/remove them as the
viewpager sees fit. The pages will be permanently cached until a
future call to setTiles() results in less tiles, and the page will be
automatically cleaned up.
- This also fixes no tiles after theme change
- And resetting tiles too, custom tile listeners were interfering and
overwriting the default tile values
Ref: CYNGNOS-1644
Change-Id: Ibb43adb249b81601370ceab4a4873f91b34b5074
Signed-off-by: Roman Birg <roman@cyngn.com>
|
|
|
|
|
|
|
| |
Ref: CYNGNOS-1644
Change-Id: I41e921c641f53a5870fb5685e2ef67060d613989
Signed-off-by: Roman Birg <roman@cyngn.com>
|
|
|
|
|
|
|
|
|
|
| |
Now should instantly reflect the proper state after clicking. In certain
situations it would not update immediately.
Ref: CYNGNOS-1607
Change-Id: I97a5e3417f91315ca5d06a832fa799938981e284
Signed-off-by: Roman Birg <roman@cyngn.com>
|
|
|
|
|
|
| |
Ref: CYNGNOS-1602
Change-Id: I30dc09a48f7fcf7bcac85f173129c8bc04a10d37
Signed-off-by: Roman Birg <roman@cyngn.com>
|
|
|
|
|
|
|
|
|
|
|
|
| |
Previously we'd have a temp tile array which would hold tiles until we
were ready to do the first layout pass which caused some funky layouts
initially in specific cases. Get rid of the temp tile array and handle
setting tiles in one pass.
Ref: CYNGNOS-1601
Change-Id: Ibfa4994600c55ced80b8292cbefa9aa1f44971ae
Signed-off-by: Roman Birg <roman@cyngn.com>
|