Bug 857730 - Part 4: Integrate contacts API Javascript with Java and Android contact API. r=cpeterson

This commit is contained in:
Shane Tully 2013-07-23 13:14:00 -07:00
parent 4152d66713
commit 64b64335f4
4 changed files with 2025 additions and 0 deletions

File diff suppressed because it is too large Load Diff

View File

@ -182,6 +182,7 @@ abstract public class GeckoApp
private String mCurrentResponse = "";
public static boolean sIsUsingCustomProfile = false;
private ContactService mContactService;
private PromptService mPromptService;
private TextSelection mTextSelection;
@ -1564,6 +1565,8 @@ abstract public class GeckoApp
SmsManager.getInstance().start();
}
mContactService = new ContactService(GeckoAppShell.getEventDispatcher(), this);
mPromptService = new PromptService(this);
mTextSelection = new TextSelection((TextSelectionHandle) findViewById(R.id.start_handle),
@ -2106,6 +2109,8 @@ abstract public class GeckoApp
mDoorHangerPopup.destroy();
if (mFormAssistPopup != null)
mFormAssistPopup.destroy();
if (mContactService != null)
mContactService.destroy();
if (mPromptService != null)
mPromptService.destroy();
if (mTextSelection != null)

View File

@ -75,6 +75,7 @@ FENNEC_JAVA_FILES = \
CanvasDelegate.java \
CheckableLinearLayout.java \
ClickableWhenDisabledEditText.java \
ContactService.java \
ContextGetter.java \
CustomEditText.java \
db/BrowserDB.java \

View File

@ -316,6 +316,9 @@
<string name="wallpaper_progress">&wallpaper_progress;</string>
<string name="wallpaper_fail">&wallpaper_fail;</string>
<!-- Contacts API -->
<string name="contacts_account_chooser_dialog_title">Share contacts from...</string>
<!-- Guest mode -->
<string name="enter_guest_mode">&enter_guest_mode;</string>