Dialer - T9 / Landscape Merges

Dialer Landscape Mode

Bring back functionality to the landscape dialer.

Patchset 2 : Fix spacing.

Patchset 3 : Add dialpad settings. (depends on http://review.cyanogenmod.com/#change,10531)

Patchset 4 : Remove uneeded shared preference object.
             Fix preference icon.

Change-Id: Iff644890ac751dc99090a59bb824d319221e86ae

Update drawable resources according to jellybean

Change-Id: I4eae5ffc7c8b96072236e705a5a0ad44e888e33f

Dialpad : T9 Dialer

This adds t9 functionality to the dialer.

Patchset 2  : T9: Add accented characters
Patchset 3  : Support t9 in landscape mode
              Cleanup resume/pause checks
Patchset 4  : Fix "Pressing back shows keypad overlay"
Patchset 5  : Added more accented characters
Patchset 6  : Add missing return.
Patchset 7  : Use Phone.getTypeLabel instead of re-implementing it (pawitp)
              Fix T9 result disappearing on rotate for >1 number in search (pawitp)
              Allow other dialable strings (*, #, +) for number search (pawitp)
              Update strings (pawitp)
              Check if list expanded, dont revert toggle state, keep it open.
              Leave T9 enabled as default.
Patchset 8  : Fix enabling/disabling T9 while dialer open.
              Remove overlay background patterns in landscape mode.
Patchset 9  : Load database only if T9 is enabled.
Patchset 10 : Optimize T9 loading when not enabled/orientation change. (pawitp)
Patchset 11 : Rebase for 4.0.3 merge.
Patchset 12 : Move translatable strings into strings.xml (t9_map/sort type)
Patchset 13 : Fix layout issues when opening dialer via 3rd party apps

Change-Id: I010d664382a39c1613804c97cda50b543e55ac2a

Conflicts:

	src/com/android/contacts/dialpad/DialpadFragment.java

Dialer : Preference t9 enabled by default

Leave t9 enabled by default

Change-Id: Id07a69b5b47817b0545cc11607d422e273bbe0bb

Added Greek characters for T9 search

Dialpad : T9 layout/functionality fixes

This patchset addresses the following :

Highlight matches in results (Based on m0viefreak's commit)
Switch topbar to a listview to maintain consistency (Based on m0viefreak's commit)
Fix overlay issue where if list view open, and via preferences t9 is turned off and returned to dialer
Fix issue where t9 uses last input rather than re-querying
Adjust layout for more space for contacts with long names

Patchset 2 : New toggle drawables by prash

Change-Id: I00f2a6aed2d7ae0213efab8c2e2028be133551c2

Conflicts:

	src/com/android/contacts/dialpad/DialpadFragment.java

Dialpad : T9 add to contact if no match found

Allow user to save the dialed number as a contact

Patchset 2 : Set toggle to GONE rather than INVISIBLE in newContact mode
             Eliminate duplication when setting toggle visibility

Change-Id: I2b3eb5a32352c9565f2276e19576451322db22cc

Conflicts:

	src/com/android/contacts/dialpad/DialpadFragment.java
	src/com/android/contacts/dialpad/T9Search.java

T9 : Fix bug

To reproduce :
Type a few digits
Expand list
Click a contact (Dial on touch turned off)
Press backspace once

Change-Id: I3d26ad0bc03eff80b9f06f69d47e2fb742f0449a

french: T9 Dialpad and other settings (autorotate)

Change-Id: I40a60518fcddd46695bf0b5ff5d10c87874e7e90

Dialer: Fix press on button press after many resume

Move setPhoneNumberFormattingTextWatcher back to onCreateView
as having it in onResume will cause a new text watcher to be
added every resume slowing things down to a halt when the text
has to be formatted many times after many resumes

Change-Id: Id83ecc8b52ca283d8e64df579b97c588b1073ab2

Conflicts:

	src/com/android/contacts/dialpad/DialpadFragment.java

Dialer: Fix initial state for t9 sort mode

On a fresh install, t9 dialer will match by name, but preferences
has match by number selected as default. Fix this by setting default
to match by name.

Also change uppercase S in "Sorting" to lowercase, to maintain
consistency with rest of system.

Change-Id: I7e72cb75823e58ffc8cf28300ff3fba852f638b1

Bulgarian T9 search and dialer buttons

Change-Id: Icd4f4f37e5888115578c12a4086d77d823172331

Conflicts:

	res/values-bg/strings.xml

Dialer: Underp the layout

The 4.0.4 merge increased the size of the action buttons to fill
almost all the available space, due to conflicts with CM's T9
stuff.

Change-Id: I331bef0a17642006f339c4cea47834f48ff13d1c

Conflicts:

	res/layout/dialpad_fragment.xml

Dialpad : Disable overscroll for T9Top

Prevent overscroll on t9top.

Change-Id: I26ae8fb1a84a2e0bc005d4a6283bfa3b75604fc8

CM9-Add Russian T9 strings

Conflicts:

	res/values-ru/strings.xml

Change-Id: I9141b7c310aeb788946fba4d8d2f35aa36da2538

T9 Dialer : Update upon contact info changes

Refresh the local storage of contact info if contact info is updated
while dialer is still active.

Patchset 2 : cleanup
Patchset 3 : Move unregister to onResume (Can't rely on activty being present)

Change-Id: I6ab4fe199ebc67c318217ab20aa1718a02fcbcaa

Conflicts:

	src/com/android/contacts/dialpad/DialpadFragment.java

Dialer : Cleanup / landscape consistency

- Update resource ids after 4.0.4 merge
- Move additional_buttons into main layout to stay uniform with portrait
- Remove bottom padding in landscape views, since actionbar contains overflow
- Remove search button from landscape dialer and move it to actionbar
- Cleanup unused resources

Patchset 2 : Fix fakeMenu button not showing on phones w/ physical menu button

Change-Id: I7f5232bdb029d5a2498f80493d479113ef66a82b

Conflicts:

	src/com/android/contacts/activities/DialtactsActivity.java
	src/com/android/contacts/dialpad/DialpadFragment.java

Contacts (T9 and dialpad): Spanish translation

Spanish translation for Contacts (T9 and dialpad) settings activity

Change-Id: Ib1d9aa4ba466dd20450c16948c1ab8dc532028cd

Updated Hebrew Translation

Change-Id: I50be9ebe80efcb7efaef364bb0d73d4ff4e253e6

Contacts app - Update Italian Translation.

Change-Id: Ib0a48771bec594723b2ee40d174813a0890bbdcc

Contacts: PT-BR translations

Added T9 strings

Change-Id: I6848876549a77980086c64ca85e02a4f19d9dcdd

Conflicts:

        res/values-pt/strings.xml

contacts: updated german translations

Change-Id: Iaa66fc19799dcb938f34a11d29b2c1775cf011de

contacts: updated finnish translations

Change-Id: I6ddfa468009976af1adb24df6b701158358acf1c

Polish translation

Change-Id: I0a9b28ed39ded96f6cbb654573b04acc3547567d

android_packages_apps_Contacts hungarian translations

Change-Id: I394c41e2459af1b6de6078556e790bbc1a5193dd

Contacts: added missing Hebrew T9 strings and drawables

added missing t9 char mapping
added localized drawables

Change-Id: I49dde5a34875cc18b311a8c698089e39b03b6a79

Conflicts:

	res/values-iw/strings.xml

Change-Id: I4c32d79704f2868da76af0f561ca399a41d01d50