History log of /packages/apps/Dialer/src/com/android/dialer/list/SpeedDialFragment.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
7e1a68556c419c4b9b1eda9247e80262615fa809 18-Jul-2015 Yorke Lee <yorkelee@google.com> Refresh all contacts fragment when permission granted

Bug: 22174668
Change-Id: I6d23fb76c6b67093ee1193fba45bd20baa50a68f
/packages/apps/Dialer/src/com/android/dialer/list/SpeedDialFragment.java
575ae388961252a771488c357e425fca191594b2 16-Jul-2015 Yorke Lee <yorkelee@google.com> Add permission prompts for contacts and dialpad search

Update the following fragments to handle denied permissions
-Contacts Search (Contacts and Location)
-Dialpad Search (Phone)

Tweak and remove some of the onTouch listener logic as they are
no longer valid with the new UI. Instead of intercepting the touches
when the query is empty and returning to the main dialer activity,
allow the fragments to remain on screen if the permission request
UI is showing.

Modify signature of onEmptyViewActionButtonClicked to remove unused
permissions parameter.

Bug: 22174668
Change-Id: I96d00f2ab45df936dca602ac025f723638ac02c4
/packages/apps/Dialer/src/com/android/dialer/list/SpeedDialFragment.java
38019af70eb1ca084d36291390bbc54dc81027de 15-Jul-2015 Yorke Lee <yorkelee@google.com> Update Dialer UI to prompt for permissions

First pass at adding functionality to Dialer to prompt for
permissions. Also updates the UI for various fragments when
there are no contacts/calls available to unify the UI with the
new UI for the permissions denied state.

* Refactor existing empty view functionality and encapsulate
into a new custom view class

* Add action buttons to existing empty views in various fragments
-> Speed Dial (Add to favorites) - scrolls to all contacts fragment
-> Recents (Make a call) - shows dialpad
-> All contacts (Add a contact) - Launches add contact dialog

* Add functionality to various fragments to detect if permissions
are denied, and request the permission when the action button
is pressed.
-> Speed Dial (request for contacts permission)
-> Call Log (request for phone permission)
-> All contacts (request for contacts permission)

* Remove now unneeded EmptyContactsListAdapter

Remaining issues (to be addressed in a follow up CL to avoid bloating
this CL):
UI alignment tweaks for empty view to match mocks
If the read contacts permission is requested from the
speed dial screen, the all contacts fragment doesn't update with
the list of contacts until restarted.

Bug: 22174668

Change-Id: I70721914bb9b32910d746de288ccac049749e42e
/packages/apps/Dialer/src/com/android/dialer/list/SpeedDialFragment.java
2a613022dbb278f0f7dd94cf49885cde9d36100c 01-Jul-2015 Yorke Lee <yorkelee@google.com> Restore Dialer content after permissions granted

First pass at making Dialer display the call log, favorites,
all contacts, and contact search after permissions are granted
withut having to restart the app.

Update cached permission status in onResume for Dialer activities
Update SpeedDialFragment to correctly initialize loader in
onResume if it was null previously because of revoked permission.

Bug: 22205650

Change-Id: I68982e69395bc9c7da84ff3221cd12b8f79005f9
/packages/apps/Dialer/src/com/android/dialer/list/SpeedDialFragment.java
c16ea5ad67bf454158b364dec2f26c95a879c350 20-May-2015 Yorke Lee <yorkelee@google.com> Handle runtime permissions in Dialer

Conditionally disable the following features if the required
permissions are not available:
1) Display of all contacts
2) Display of speed dial
3) Caller ID in call log
4) Import/export contacts
5) Conversion of People.CONTENT_ITEM_TYPE and Phones.CONTENT_ITEM_TYPE
into a phone number (via DIAL intent)
6) UndemoteOutgoingCallReceiver
7) Contact Search
8) Contact lookup in call detail activity
9) Nearby places search

Bug: 20266292

Change-Id: I6d26902acb0eac407ae7bc18c11aa6ec57299506
/packages/apps/Dialer/src/com/android/dialer/list/SpeedDialFragment.java
ae6302b51b1f03ddd4865539b071ba2a661b977f 04-Feb-2015 Yorke Lee <yorkelee@google.com> Convert unnecessary RelativeLayout to FrameLayout

Change-Id: I8b68eadf13f581d10b92ae58eb78d04f31a6ff60
/packages/apps/Dialer/src/com/android/dialer/list/SpeedDialFragment.java
f5554ceb3c152949b4b6278b7f5e1522148a574c 27-Jan-2015 Yorke Lee <yorkelee@google.com> Add systrace events to track Dialer startup performance

Bug: 18431193
Change-Id: I92db4ae61405d8d8445b72e7ac0daa0794af8335
/packages/apps/Dialer/src/com/android/dialer/list/SpeedDialFragment.java
e48124fa2d295c68cdb95f962ef8bd6d35a7c145 22-Jan-2015 Anthony Lee <anthonylee@google.com> Fix crasher due to IndexOutOfBoundsException

Make sure that we check for the index to exist in the list before
we query for it. The problem is that the index is grabbed from the
listview but then applied to the contact entry arraylist. It is
possible that these two are out of temporarily out of sync. This check
will make sure that we do not throw an exception in those cases.

Bug: 19103509
Change-Id: Iba620ec859866b9f8bfc2614a17b1b1a11037230
/packages/apps/Dialer/src/com/android/dialer/list/SpeedDialFragment.java
0bbd606a3d1da11a38fdc127f4067b06f71174f8 15-Dec-2014 Ihab Awad <ihab@google.com> Improve Talkback for "Speed dial" user interface

Bug: 18738114
Change-Id: I3148d6c78561bf369d4ddbab09bf2fb9c7a7966b
/packages/apps/Dialer/src/com/android/dialer/list/SpeedDialFragment.java
beab3bbc2c977a48e3affc3e61cc2fdbb22c4ae2 27-Oct-2014 Brian Attwell <brianattwell@google.com> Use improved analytics in Dialer

Remove dependencies on old analytics code.
Initialize analytics inside DialerApplication.

Improving analytics CL #4/4

Bug: 18039620
Change-Id: I52f68e50297db2aae61d67d9bdbe66cb1d75aafc
/packages/apps/Dialer/src/com/android/dialer/list/SpeedDialFragment.java
c311af1f33f9d408c7eee5a6eeda46f1d1b7265b 23-Oct-2014 Brian Attwell <brianattwell@google.com> Delete duplicated class

Also renamed dialerbind package

Analytics CL #2/5

Bug: 18039620
Change-Id: I45722015978038cdccb6a848c28e4b6c90d5aa4f
/packages/apps/Dialer/src/com/android/dialer/list/SpeedDialFragment.java
967cdb018142c388e493213f0b97f40ac669578e 15-Oct-2014 Yorke Lee <yorkelee@google.com> Remove dead code

The TileInteractionTeaserView is no longer displayed in the UI.

Change-Id: Ieaf24cdf2ecd5971a22e58e34c49a4481b7d6320
/packages/apps/Dialer/src/com/android/dialer/list/SpeedDialFragment.java
764f652b451d27282cfaf73407d31c9522e6cb0e 22-Sep-2014 Brian Attwell <brianattwell@google.com> Improve scrolling, handle onNestedPreFling

This contains three main changes.
1 Carry momentum from flings in the header into the ListView.
2 The header now snaps into a semi collapsed state more often
then it used to
3 The current scrolling direction is now a larger factor in deciding
where the header position will snap to upon finishing a scroll

I coupled ViewDragHelper a bit closer to OverlappingPaneLayout. At first
I tried to avoid this. But I think this was a wasted effort. ViewDragHelper
is specifically forked for OverlappingPaneLayout.

Some behaviors I made sure to test manually:
1 When expanding/collapsing the header the direction of motion should
determine where the header snaps to upon release.
2 Collapsing from fully open to intermediate (not previously possible)
3 Drag tabs up/down regardless of whether at top of ListView or not (unchanged)
4 Dragging and releasing the tabs should cause the same sort of snapping behavior as
scrolling and releasing the nested ListView (this still isn't exactly the same.
I don't think this is important enough to dig into more)
5 After fully expanding the header by grabbing on the tabs, you can collapse
the header normally via nested scrolling.
6 Scroll down the ListView. Then expand the header by dragging the tabs.
Now scroll up and down in the ListView a bit.
7 Quickly fling up, down, up, down, up, down, up, down, up, down. Should
feel the same as scrolling a regular ListView.
8 Fling upwards, stop the fling prematurly then release. The header shouldn't
do anything (fixing this was a matter of adding a scroll slop).

Bug: 16462679
Change-Id: I272a838885ce9045d41aaef1168b0ee0a32ee31d
/packages/apps/Dialer/src/com/android/dialer/list/SpeedDialFragment.java
a610bd6e2aecf06bf6d14f869bad68e0110d3fe3 30-Jul-2014 Sai Cheemalapati <saicheems@google.com> Changing Dialer Fragments to implement Analytics.

Dialer's Fragments now implement AnalyticsFragment.
All Fragments now have access to sendHitEvent, which is a no op in
AOSP Dialer.

Change-Id: Ife6ab7d5369a1c96caaedbe1c59e6d07a0adae87
/packages/apps/Dialer/src/com/android/dialer/list/SpeedDialFragment.java
39f773e8a64ec1b770b2679871b7c44cac7243d2 12-Jun-2014 Andrew Lee <anwlee@google.com> Update strings for empty lists in Dialer.

Also, some slight renaming for consistency across dialer.

Bug: 15513399
Change-Id: Ia66084630fc9473dc24303aab0d777e1bde1b41a
/packages/apps/Dialer/src/com/android/dialer/list/SpeedDialFragment.java
0a4327e6bfeedc23ddefb4df9f6e8041ebc87b59 11-Jun-2014 Andrew Lee <anwlee@google.com> Update empty list assets and text.

- Add new assets for empty lists, delete old no favorites banner.
- Adapt phone_no_favorites.xml into generic container shown when
a list is empty.
- Add helper to DialerUtils to configure empty list view with
a provided image and message.
- Configure empty list view in relevant fragments.
- Some text styling/margin/padding to get things to spec. A
minimum height is used on the message so that the icons and text
will be laid out in a consistent manner.

Bug: 15513399
Change-Id: I52337a4544065a991d3b8084d96b01516a458c42
/packages/apps/Dialer/src/com/android/dialer/list/SpeedDialFragment.java
5fcf8a92effbfa5864e15595137176cca88066ed 21-May-2014 Yorke Lee <yorkelee@google.com> Add padding to bottom of speed dial fragment

Add padding to bottom of speed dial grid view so that content is not
obscured by floating action button

Also rename the layout to the more sane sounding speeddial_fragment.xml

Change-Id: I5e745f6a0a3657bae7f84a3728a1c75986d32ebf
/packages/apps/Dialer/src/com/android/dialer/list/SpeedDialFragment.java
eaf4eb498e8fce70aefc9377422bd43427ffcc6d 19-May-2014 Yorke Lee <yorkelee@google.com> Remove unused resources in Dialer

Change-Id: I674b2a9620f7b2ca0116cc4db16f27e78eeef5e7
/packages/apps/Dialer/src/com/android/dialer/list/SpeedDialFragment.java
f66cc0403faab0a31ccdb2c78e0dad5be11218f5 07-May-2014 Yorke Lee <yorkelee@google.com> Make drag shadow work across entire layout

Move drag shadow view into main layout so that it can be drawn
over all other views.

Also offset it accordingly based on its parent's X/Y coordinates

Bug: 14393052
Change-Id: I957469cf505d30812b539517d2aeab3f72a733ca
/packages/apps/Dialer/src/com/android/dialer/list/SpeedDialFragment.java
9b08f53ac993cffa249b73d3a2cc9ed5a9e71158 01-May-2014 Yorke Lee <yorkelee@google.com> Fade in speed dial entries

Change-Id: Ida91e3107c5a9f1e3c6a59d51aca8f0f950bcf21
/packages/apps/Dialer/src/com/android/dialer/list/SpeedDialFragment.java
d999b71452baebec789f6f58f1955d30e834826d 24-Apr-2014 Yorke Lee <yorkelee@google.com> Rename classes

Renamed PhoneFavoriteFragment to SpeedDialFragment
Renamed PhoneFavoriteMergedAdapter to ShortcutCardsAdapter

Change-Id: I5b16ff576332b44c10e1abb44689147cd41c26b5
/packages/apps/Dialer/src/com/android/dialer/list/SpeedDialFragment.java