Age | Commit message (Collapse) | Author |
|
* No code was changed, just either removed or renamed
* Reshuffled a couple of ids around in dialpad_fragment to fix some
compile time errors that somehow weren't caught before
Change-Id: I9e2381edfb14b0940015deb8cbd94786a1242f43
|
|
Change-Id: Id539c6f0a38d7081569fd39e77c3a095466be6ef
|
|
|
|
* Added the concept of a blank entry. This is used to keep the
rest of the list in place while a contact is being dragged.
Blank entries appear as invisible views for now.
* Added the concept of a DEMOTED contact, which is used to
indicate that a contact should never be displayed in the favorites
list.
* Pinned position management methods and tests
Added two methods to handle assigning of contact positions based
on their pinned positions, as well as reflowing of contacts
when a contact is pinned at a new position.
The assigning of contact positions works as defined below:
1) All contacts with pinned positions are assigned their defined
pinned positions as necessary.
2) If two contacts have been given the same pinned position, they are
ranked based on the order returned from the ContactsProvider (
alphabetical by display name). The second contact is then pushed to
the next position, bumping all corresponding pinned contacts down
by one spot as necessary.
3) If there is a contact with a pinned position that is greater than
the number of starred + frequent contacts (this can happen if user clears
frequents, for example), then it is simply treated as an unpinned contacts.
4) All unpinned contacts flow to fill in the gaps between pinned contacts.
The reflowing of contacts works as defined below:
1) Pinning a contact at a new spot replacing an unpinned contact simply
pins it at that position.
2) Pinning a contact at a new spot where there was already an existing
pinned contact bumps that replaced pinned contact down by one spot
alongside all subsequent pinned contacts as necessary.
I.e. contact A is pinned at position 2.
Before: [A][1][P][P][4][P] After: [0][1][A][P][P][P]
3) If there is no more space at the end of the list to bump the pinned
contacts one spot further, then the replaced pinned contacts will shift
to the left to take the space of the original moved contact.
I.e. contact A is pinned at position 3.
Before: [A][1][P][P][P][P] After: [0][P][P][A][P][P]
* We no longer perform dynamic updates of the in-memory list.
Instead, when a contact is dropped at a new location, the new
positions are sent to the ContactsProvider, which updates the database
and notifies the adapter that there is a new cursor with updated data.
The new list of ContactEntries is then reconstructed from this new cursor.
Note that animation behavior with the newly introduced pinned contacts
is pretty janky looking - Instead of flowing together with the rest of the
unpinned contacts, pinned contacts should remain in position and not animate
on a dataset change. Likewise for empty contacts. In order to support this,
the animation logic will have to be rewritten to take into account
not just soley where the dragged contact was dropped, but also the old and new
position of each and every single contact in the list, before and after
the database refresh.
Change-Id: I5c9542a7fec529f5d965eebe76acbebe1fc10357
|
|
Bug: 10206013
Change-Id: If12a25329701d04e3d40b0d6f18154336d8c90a3
|
|
Add BIND_DIRECTORY_SEARCH permission to manifest. Use new methods
for GAL support. Change SmartDialing cursor and adapter to use
PhoneNumberListAdapter projections directly.
Bug:
Change-Id: I5f8181cfeec7adab4865e680ebc85ba2b476fc39
|
|
Bug: 10205058
Change-Id: If7eb79b77357a81b17bdff719939debd71544bc4
|
|
Change-Id: Ibcd14c7a71f73ed8c7faae07d2c50b23199ff1fd
|
|
Change-Id: I2aa0458e1fb74abaea60a02f430a4e413dfed365
|
|
|
|
Change-Id: Ic6a1ed35e990ad88fb9ba8eae3bdcd353ad03fbc
|
|
Removed unused classes and renamed NewDialpadFragment to DialpadFragment.
Removed some unused static imports
Change-Id: If16a8bfe8cc113a570514b6d0edd87cb946758fa
|
|
getCount() was reporting an incorrect length when the number of
entries is less than mColumnCount * mMaxTiledRows
Change-Id: I4504b200c938f4bf1a230fc4c2f1bf06ebc5128c
|
|
Change-Id: I60c618741006916a2ce05ca0df54da2b0f95ada2
|
|
|
|
This seems to mess up the ability to receive further notifications when
the data underlying the cursor changes. The framework will automatically
close the cursor when it is no longer needed.
Bug: 10117074
Change-Id: I8721c955aebf8fd1826c1eebfb158376d204f0fa
|
|
Change-Id: I1cf71abd872b40f48a9b98e54aa758072384a728
|
|
Change-Id: I5d92fa60aca02883ce624ce6f643c5aedd224039
|
|
Change-Id: I2edcccdd4acdd3ff281132efc66e21def228002f
|
|
|
|
|
|
|
|
Change-Id: If8689796e648552c22e7605a8ebfd1e74a92e6ec
|
|
Change-Id: I63680fe604357b8b5cba3ce0a4a28d0d12e27c37
|
|
Change-Id: I5797dc24a0d4eff96a89627a5b61e7ed16f62dd5
|
|
Change-Id: I51351f252338eee4d0be5723beafc044786b801e
|
|
|
|
- Adds drag and drop listner.
- Changes the FavoritesTileAdapter to use an array stored in cache to
populate the view.
- Adds animation for drag and drop.
- Adds swipe to delete an entry.
Change-Id: I0717fb3d256b2ab2353f86a998de07edb24e9b4c
|
|
Change-Id: Iea03cbb82c9ca9fdff51686a722bea5d301add44
|
|
|
|
* Reduced size of star and pound keys
* Made star and pound key gray
* Add voicemail image view
* Add light versions of menu assets
* Renamed other menu assets to be more consistent
* Assign proper menu items to dialpad fragment
Change-Id: I67f2e7eecb177fc8ab7b4bc9b2855b385c622a7f
|
|
|
|
Change-Id: Ic8dcf4a1f886d3292af438e5995474539e88b179
|
|
We can reenable the menu hard key on devices which have one when
we figure out menu interactions between DialtactsActivity and its
fragments.
Also removed useless Show All Contacts menu option.
Change-Id: I446b2157072c137c7b8624ae97455f793b188cdb
|
|
* Swapped out new assets
* Changed background colors as necessary
* Add padding view at bottom of seek container
* Changed color of drawables
* Removed unused assets
Change-Id: I654ba417e03b2a32039504ae2de51fd75c5bec20
|
|
|
|
* Add shadow overlay
* Change font and color of contact tile name
* Change various padding values
Change-Id: I298a2cc58ed3cf1ab310bb5c5cfc243e3eee117e
|
|
|
|
Fix fragment lifecycle issues that occur when resuming the Dialer
from recents after some time. To better reproduce
fragment lifecycle issues more easily, remove the attribute
android:screenOrientation="nosensor" to simulate activity creation
and destruction.
Change-Id: I9972121e6e06690d2a4823f9480ff9a993854059
|
|
|
|
Change-Id: I603eb29203b2ae65fe35f423c574a33bb86662a2
|
|
|
|
|
|
Use a SpannableString with roboto light font to style ActionBar title
because there is no framework affordance to set a custom font for
the action bar.
Change-Id: Ic0675d78b077e8686cf5bbdc88b06b75acb8c503
|
|
* Add and remove padding for regular search and smart dialing
search fragments.
* Move background colors to individual fragment views instead of
the app, so that they can define their own background colors
without causing overdraw.
* Remove unused imports in SearchFragment
Change-Id: Id1523c5760ea3cf5e675df8f89e5bd299a95eb18
|
|
Change-Id: Ib2ee17d3a236c79a5a4495fd28281e2c29479a99
|
|
Change-Id: I5a67cf690be172e5d55a426f61e53e6b1bb7a935
|
|
|
|
Change-Id: Iea40db1bd4162a3e5f5a80e7af8b2902afd438b1
|
|
Change-Id: I6bb7262da401a408a34efe3cf52f99f7ef435421
|
|
Change-Id: I7877035b52a3ee4ec8772cfda16f6e078cdd4404
|
|
* Add and change background and layout for CallLogListItem
* Create wrapper view for most recent call log item
* Change actionbar background in Call History activity
* Hide phone number in call log items
* Add tab indicator drawables
Change-Id: Ic86c3fac857971aba58ba3ac1d79ddebaf663da6
|
|
* Swapped out some icons with newly added assets.
* Changed search view into edit text with accompanying close button
so that it can be more easily styled.
* Changed various background colors.
* Tweaked padding values to match redlines
* Removed margins from PhoneFavoriteRegularRowView and PhoneFavoriteTileView
and instead use a standardized set of margins for all rows in
PhoneFavoritesTileAdapter
* Added bottom_border_background drawable to create a bordered background.
* Remove PhoneFavoritesTileAdapter.ViewTypes.STARRED/STARRED_PHONE since
they are no longer relevant
Change-Id: I65dfd5adf6cfbcb2c9d283aef2bd10e5d2a82dc7
|
|
Change-Id: Ifdad003cac85f80799ac7e893911611ec8b130ef
|
|
Bug: 9899110
Change-Id: I81408b00cced4b757b0ecca45369b05eb16c0620
|
|
As far as possible, this change does not modify any behavior/look
of the existing dialer. All modifications to classes/layouts/style attributes
that would affect functionality of the old dialer are instead done in
separate new files.
Added new versions of all activities, fragments, layouts, menus
and resources that have been rewritten or modified.
The activities do not have intent filters yet in order to not interfere
with the existing dialer.
Added some new values in colors/styles/dimens for the newly added
layouts.
Added NewCallLogActivity to separate the CallLogFragment from
DialtactsActivity. All call log and voicemail entries are now presented
in a separate (New)CallLogActivity.
IntentProvider.getCallDetailIntent now takes a cursor instead of an
adapter for more flexibility.
Add OnListFragmentScrolledListener interface for DialtactsActivity
to receive callback when one of its children fragment is scrolled.
Added slide in and slide out animations for DialpadFragment.
Add slide up and hide animations for search view
All menu options now show up in a PopupMenu in NewPhoneFavoriteFragment.
Added call log adapter into NewPhoneFavoriteMergedAdapter.
Rewrote layout of DialpadFragment to show up as a fragment partially overlaying
the screen.
Removed some unused code in DialpadFragment (smart dialing, menu handling)
Add fragments and adapters for SmartDial.
- Update Dialer database to support highlight masking and record contact
data Uri, as well as photo uri
- Add a fragment and adapter for smart dialing
- Add SmartDialCursorLoader to load SmartDial results.
- Typing in the dialpad now returns smart dialing results instead of regular
search results
QuickContactTiles for all sub-adapters of PhoneFavoriteMergedAdapter now use
light theme instead of the the default dark theme.
Removed all redundant call log filter and contacts to display filter code
Moved Dialer specific UI list-related classes to the Dialer package
Change-Id: I34885813e4fa79b69e29ac870a87a56d6f08a5e7
|
|
No code has been modified at all in this CL. All classes
were copied from existing classes and renamed to add the New prefix.
Change-Id: Idbb522c9dd1ef5db8e3dffcb73155ca603f861b2
|
|
Bug: <5751629>
Change-Id: I1689fa10f285bc66fc69b6a9b9da139ce5461d83
|
|
Change-Id: I405535654240b959cf8b0caa7ecfa8456a632791
|
|
- Creates a database helper to create a smartdial database for the Dialer app.
- Queries all rows in the Contact database and copies related columns to
the smart dial database.
- Create another prefix database to contain all prefixes of a contact.
- During keypad input, the prefix databse is queried to find contact
suggestions, and suggestions are ranked by the usage data and contact
status (starred, primary contact, etc.)
- Created unit test for the SmartDial database insertion and prefix
computing functions.
Change-Id: I4d7c3b3bcc52dd6efa4d6e69d3f1687c3abaeb69
|
|
Switch to using new number presentation column in the CallLog table and
discontinue using special phone number strings in CallerInfo. Needed for
unbundling.
Bug:6948882
Change-Id: Ibf27ea55cee783c4530101e4e228198e245e6684
|
|
* commit '1dd46a5c676325d20b7a042d0d0d3c7d9365d0bd':
Fix crash in Dialer in landscape mode
|
|
Change-Id: I57ffcea3d3fc43e8c87a47a97d6b4f7e5edf1525
|
|
Bug 9369806
Change-Id: I286ebb828c0f6ce7c005c541661b9aa67284847e
|
|
Added check on whether the intent is new to decide when to fill in the
number in dialer automatically. If the intent is not new, the dialer
will be filled with previously used number, preserving any edits on that
number.
Bug: 8484457
Change-Id: I45f02d395ce402670b380485b5ba1e7190600ec3
|
|
Switch to using public TelephonyManager calls (needed for unbundling).
Bug: 6948882
Change-Id: I301590efa5c45dfc3d31a16181694941a2bee092
|
|
|
|
- Currently only the active tab is being backed up.
- More settings may be added later.
Change-Id: Id66565029be751beae8b58d4cc054f8d2d16ceea
|
|
All character validation, remap and index calculations in both
SmartDialTrie and SmartDialNameMatcher now go through a
SmartDialMap. The LatinSmartDialMap is used by default.
Bug: 8769026
Change-Id: I4ff90acc380e802f035ca1fbc55c022bf3b76aa3
|
|
Bug 9086662
Change-Id: Iab8fc869180188930f84edb794e0a24a1a0a2229
|
|
Suggestions now appear with a fade in and slide up animation.
Suggestions vanish with a fade out and slide down animation.
If a suggestion is moved into the middle, it slides to the left/right
as appropriate.
Change the layout containing suggestions to a LinearLayout, in order to
better support animations.
Renamed SmartDialAdapter to SmartDialController, and also refactored
it to handle entries for a LinearLayout instead of a GridView, as well
as adding animation support and view management.
Use null object pattern in SmartDialEntry to better handle null entries.
Start displaying suggestions on the first digit entered.
Bug 8840240
Change-Id: If4e16006c0b36d2244434e0b2d8f3d3b997b0ad2
|
|
Make sure that smart dialing state is properly set before
any digits in the dialpad EditText is populated.
Also turn smart dialing off by default even if the system
setting hasn't been previously set.
Bug 8963485
Change-Id: If556d8b1405cc9e60043774b3aafd5e111e4e7ee
|
|
|
|
Bug 8840243
Change-Id: I1d1fea4f958821f3a9273ba189e2140367049516
|
|
https://googleplex-android-review.googlesource.com/#/c/253417/
Converts vanity numbers such as 1-800-FLOWERS to the numeric
equivalents when the number string is populated via a DIAL intent
or pasted from the clipboard. Does not remove valid formatting such
as dashes, periods, spaces, etc.
Bug: 8858358
Change-Id: I553c91628b8fd86ff38a8eeec7823ebdc96bfe6b
|
|
Bug 8769688
Change-Id: I4aadd0f9e5495fb1b604910306dfd918d1540136
|
|
Names with an extremely large number of name tokens were
using exponentially increasing amounts of memory since we have
to insert entries for all possible initial name combinations.
Added a check in the trie insertion algorithm to only add initial
matches for the 1st 2, and the last 2 name tokens.
This change only affects search by initial matches for names exceeding
4 name tokens. Full token search for names of all lengths should still
work. E.g. "frank", "enstein" would still match "Dr Frank En Stein DDS".
However initial matching would be limited to the first 2 and last 2 tokens.
So "dfsd" or "fsd" would work, but "fes" or "fed" would not.
Also fixes a bug caused by integer overflow when calculating thresholds
for bucketing frequently used contacts
Bug 8737986
Change-Id: I804184368b78fe2fa407667ed83874d839c28115
|
|
When user dials "*#07#", display the regulatory info graphic, or
SAR data if no regulatory info PNG is provided for the device.
Bug: 8259869
Change-Id: I5d8c640bfa13e2f0d3de7c68258a65428e336bca
|
|
For SmartDialTrie, also include numbers as valid characters when
calculating indexes when generating the byte array.
For SmartDialNameMatcher, include '0'-'9' as valid latin characters,
and handle them appropriately after remapping accented characters.
Also fixed a subtle matching bug that would manifest itself when
matching against multiple tokens with similar initials - E.g.
"Dr.Dredd"
Bug 8659001
Change-Id: If461d2760a723ef7fd03dda0c1a1515cd7b44cf6
|
|
Add handling of country codes if the number starts with a '+' prefix
Also add special case handling for NANP numbers in SmartDialTrie
if we determine that the user is in North America.
Save user's SIM country ISO into SharedPreferences.
Add SmartDialNameMatcher methods to correctly match NANP numbers
Fix tests to use assertTrue/assertFalse instead of assertEquals
Bug 8292294
Change-Id: Ic61dac75ee3b772986d3008240bbda81322c8f31
|
|
|
|
Bug: 8435819
Change-Id: I69c32207d123e5da4ae5421a5fe83ffeee4e5070
|
|
|
|
Bug 8281648
Change-Id: I55bfaf137f9657a47616187fe7b7999c321b21f9
|
|
into jb-mr2-dev
|
|
- replace left/right properties with start/end ones (Dialer will never be unbundled)
- add mirrored version of some drawables
- update AndroidManifest
Change-Id: Ia7f5b6ad13dd75fe42f1ee763dda5ab18e2d92c7
|
|
The content observer doesn't help to detect changes that happen
outside the application (e.g. user modifies a contact in the People
app), and seems to be called multiple times while in the dialer for
no reason, causing multiple unnecessary recaches. Instead, just force
a recache in onResume upon startup to refresh the cache.
Bug 8527847
Change-Id: I52f5c435ad573ce8b195d7b7828f19501e068c60
|
|
Bug 8518729
Change-Id: Ib6626385c3b7cd9a6c3a18335444db21b937ea02
|
|
|
|
Used to hide menu items when not applicable. Now we show them always
and only perform the action in those cases where menu items were
previously visible.
Updated code to do zero-position checks when there is no
selection...previously missing check.
Changed code to use chars instead of Strings when dealing with single
digits.
Consolidated duplicate code with updateDialString() function.
bug: 7478840
Change-Id: I2aa5d3badd40079e9aa75abf7e4051f9dba5e667
|
|
Bug: 8369906
Change-Id: Ibdf8a4d43d0898429333af03e98a9aa494e5c819
|
|
into jb-mr2-dev
|
|
Bug: 8328641
Change-Id: I76fda040f709a9a5c0e88e67abfa106763b75ffb
|
|
Bug: 8330225
Change-Id: I0c61e12b4090ff6eeaff5ef5791ac62814d90383
|
|
Behavior:
Use a prefix tree to cache contacts instead of an array list
Perform matches against phone numbers as well
DialpadFragment now ignores results from stale tasks where
queries no longer match
Add ability to not use default phone number for phone number
disambiguation dialog
Contacts are now ranked by the order which they were sorted
by in the ContactsProvider (affinity)
Change remapAccentedChars to always return lowercase characters to avoid
overhead of uppercase character conversion
Resource/Layout changes:
Tweak margins so that the section containing smart dial
suggestions looks cleaner
Use color resource instead of hardcoding color values
Add phone number to SmartDial items
ContentObserver:
Add a contentobserver to be notified on changes in contacts
Refactored cache to allow for forced cache refreshes
Use a single instance of SmartDialCache
Tests:
Added SmartDialTrie tests
Comments:
Comment cleanup
Change-Id: Ica2854e2845d4d75048aa1fd982f139496d21bf3
|
|
Change-Id: If851c291273aa5296f1d59edccc83e6d4019be76
|
|
Allow the name matcher function used by smart dialling to perform
initial matches of the variety 57 - (J)ohn (S)mith
Refactor SmartDialNameMatcher testing method to allow checking multiple
match positions.
Add tests for initial matches
Change-Id: Iadc5e3e8b2f408136c704015d2297e9b520e1065
|
|
|
|
Remove redundant call to shouldCollapseWith() and remove ignored return value
in collapseWith().
Bug:7519057
Change-Id: I7e01746749d8574dbb596b2e1b09673bf78fa045
|
|
Add an additional "No contacts" view to the sub-header view
returned by PhoneFavoriteMergedAdapter. This is required because
the empty view functionality provided by a simple list view does
not work because PhoneFavoriteMergedAdapter is a combination of
two adapters. This "No contacts" view provides the illusion of
an empty view for the 2nd adapter that displays all contacts
without phone numbers, even if the first adapter does contain
contacts.
Bug: 5522729
Change-Id: I7dcc4cd7b4b2b28fefea4be384de40318654e165
|