Граф коммитов

131 Коммитов

Автор SHA1 Сообщение Дата
Michael Comella ea4537aef2 Bug 1175355 - Add AsyncQueryHandlerImpl in SearchActivity. r=nalexander
This avoids the "HandlerLeak" Android Lint warning.

--HG--
extra : commitid : 3sLO4YQ6Gjk
extra : rebase_source : 84cd05b1c4848895271e7f577ffa94b72de0281a
2015-06-24 16:58:06 -07:00
Michael Comella 001dfd4130 Bug 1173228 - Suppress SetJavaScriptEnabled linter warning. r=margaret
The function is required for a greasemonkey script and the code is expected to
be secure.

--HG--
extra : commitid : 4pQfBCCYBoK
extra : rebase_source : c952a45c6bad183e036b8557cdd7747993ae805d
extra : histedit_source : 9acabb865440c606cedd02d8cc7a02fe5c82dbb4
2015-06-09 18:52:12 -07:00
Jim Chen eda68cee3d Bug 1166309 - Make GeckoJarReader load mozglue if necessary; r=mfinkle r=rnewman 2015-06-10 00:25:01 -04:00
Michael Comella 9b602eedc2 Bug 1170886 - Replace use of NewApi suppression with @TargetApi. r?nalexander
TargetApi is specific, and preferred.

--HG--
extra : commitid : ACndrW0PUOa
extra : source : 00d5a9768b9d80956912bfc3499924c376119129
2015-06-02 20:02:30 -07:00
Martyn Haigh 770abc3d6b Bug 1159368 - After queueing a tab, I get put into the search activity (r=rnewman) 2015-05-06 17:57:45 +01:00
Nathan Toone 0f9afa9766 Bug 1161195 - Part 2: Rename variables. r=nalexander
Rename variables to be consistent with the name used in confvars.sh.
2015-05-05 20:11:15 -06:00
Nathan Toone 79c3b4b7be Bug 1161195 - Part 1: Set java class names at compile time. r=nalexander
Rather than hardcoding the following classes in AppConstants.java.in and AndroidManifest.xml, they are set in
confvars.sh:
   org.mozilla.gecko.GeckoApplication (Specified using MOZ_ANDROID_APPLICATION_CLASS)
   org.mozilla.gecko.BrowserApp       (Specified using MOZ_ANDROID_BROWSER_INTENT_CLASS)
   org.mozilla.search.SearchActivity  (Specified using MOZ_ANDROID_SEARCH_INTENT_CLASS)
2015-05-05 20:10:50 -06:00
Nathan Toone 1ffb06aa28 Bug 1158906 - Catch hardware keyboard return. r=margaret
In addition to keying off of the IME_ACTION_SEARCH, we also key of of IME_ACTION_UNSPECIFIED which is what is sent by the android emulator hardware keyboard.

--HG--
extra : rebase_source : 2a522a3a2dd8e9c5e8ab53900ff2312084d7bacf
2015-04-27 14:15:13 -06:00
Sebastian Kaspari 1a3cb616c2 Bug 1143280 - SearchBar: Suppress deprecation warnings in constructor to allow building with API level 22. r=rnewman 2015-03-16 16:44:22 +01:00
ronak 670e12b805 Bug 1122767 - Remove lockscreen code from SearchWidget. r=wesj 2015-02-26 06:17:00 -05:00
Mark Finkle dedbfe0adb Bug 1131438 - SearchEngineManager doesn't scan the distro searchplugins locale folders or fallback to a distro locale r=margaret 2015-02-22 16:59:33 -05:00
Richard Newman d97cea2a4a Bug 1126240 - Correctly encode APK paths in SearchEngineManager. r=margaret
This is the approach we already take everywhere else we make a jar🫙 URI.

I've unified those places into GeckoJarReader, cleaned up imports, fixed a
typo, and wrote a trivial test for this case.

I made a few utility methods static to facilitate testing and future refactoring.
2015-02-10 16:11:24 -08:00
Wes Kocher dc611f6b0a Backed out changeset ea1ed091f31e (bug 1126240) for android build failures
--HG--
extra : rebase_source : 604d42d88e5221777ea441da8aed6199ae523b26
2015-02-10 16:42:39 -08:00
Richard Newman bc3c2931e6 Bug 1126240 - Correctly encode APK paths in SearchEngineManager. r=margaret
This is the approach we already take everywhere else we make a jar🫙 URI.

I've unified those places into GeckoJarReader, cleaned up imports, fixed a
typo, and wrote a trivial test for this case.

I made a few utility methods static to facilitate testing and future refactoring.
2015-02-10 16:11:24 -08:00
Mark Finkle 7e23895133 Bug 1129576 - Rename the stumbler API key to the generic mozilla API key r=nalexander 2015-02-06 17:08:35 -05:00
Mark Finkle 49ed2e2392 Bug 1129576 - Fetch the country code in the Search Activity r=margaret f=rnewman 2015-02-06 17:08:31 -05:00
Margaret Leibovic 86a215aeba Bug 1128521 - Don't use API 17+ method in search activity. r=mfinkle
--HG--
extra : rebase_source : 84dcdf3e202095ca403b1aac13ed976953f87ce2
2015-02-03 12:00:04 -08:00
Margaret Leibovic 15e7fe4b99 Bug 1089653 - Make sure the search activity hasn't been destroyed before touching views in onAnimationEnd. r=mfinkle
--HG--
extra : rebase_source : 933da02719118c78528f4676710789bd64a8af49
2015-01-29 13:37:51 +01:00
Richard Newman 61c6d42006 Bug 1124492 - Allow for distribution intent processing to occur after first use. r=margaret 2015-01-26 10:02:39 -08:00
Margaret Leibovic 83f80afb6b Bug 1107925 - Don't launch fennec on search redirects. r=bnicholson
--HG--
extra : rebase_source : 0e99b01c7b2d1fbd78e1dff646d9137684ed3af8
extra : amend_source : a4d5ca535158dd1bc0197d92738d8296d55c53c7
2015-01-08 12:48:23 -08:00
Richard Newman 6adb3eb176 Bug 907768 - Rewrite search suggestion test hooks, fix network bypass in SuggestClient. r=bnicholson
This patch fixes all testSearchSuggestions intermittent failures, except for those that appear to be caused by update checks on 2.3.

It also replaces all waitForTest (deprecated) calls with waitForCondition.
2015-01-05 15:12:03 -08:00
Margaret Leibovic a55507efbe Bug 1114589 - Add compatibility layer for Uri.getQueryParameterNames. r=rnewman
--HG--
extra : rebase_source : 3b7d1fa11409cf3de9855df3a6575319b5a6f93c
2014-12-22 13:35:41 -05:00
Margaret Leibovic 0fbd54f296 Bug 1105316 - Look in Gecko chrome registry for fallback locale in search activity. r=rnewman
--HG--
extra : rebase_source : 42e908cf3c6d08cb8a108d6f7b11b169ef3ab0dd
2014-12-09 12:45:13 -08:00
Richard Newman 833c18887f Bug 1109000 - Split statics out of BrowserLocaleManager. r=nalexander, a=java-only on a CLOSED TREE
--HG--
rename : mobile/android/base/LocaleAware.java => mobile/android/base/Locales.java
2014-12-09 18:07:07 +00:00
Richard Newman 56f1111e87 Bug 1108252 - Remove launcher icon for search activity. r=mfinkle 2014-12-09 16:37:58 +00:00
Margaret Leibovic 4025761744 Bug 1105290 - Add null check to createEngineFromFileList. r=rnewman
--HG--
extra : rebase_source : 5a02f71a93659a297de3f8b2a8facb7c6a32f37e
extra : amend_source : 9ff1f1b354f6a50d5d49b060d1e1eac118ad712e
2014-12-08 11:12:44 -08:00
Margaret Leibovic 0eff74a910 Bug 1085386 - Finish preference activity when hitting action bar "up" button. r=liuche 2014-11-17 11:42:47 -08:00
Margaret Leibovic 611d572f7f Bug 1091728 - Use correct gecko default search engine in search activity. r=rnewman 2014-11-13 14:32:03 -08:00
Chris Kitching d9529470c9 Bug 1098082: Merge identical catch branches. r=rnewman 2014-11-13 01:21:10 +00:00
Wes Kocher 2cfa0606c7 Backed out changeset 64a320318bf9 (bug 1098082) for android build bustage 2014-11-12 18:22:25 -08:00
Chris Kitching e49d65def3 Bug 1098082: Merge identical catch branches. r=rnewman 2014-11-13 01:21:10 +00:00
Margaret Leibovic 7dfba718bf Bug 1097364 - Support <OpenSearchDescription> as the root tag of a search plugin. r=bnicholson 2014-11-12 07:38:03 -08:00
Shashank Sabniveesu aaad7da285 Bug 1093220 - Remove standalone search activity code. r=margaret
CLOSED TREE
2014-11-09 16:39:04 -05:00
Erik Edrosa 182d89c3a4 Bug 1084529 - Move hardcoded colors to resources on Android. r=mcomella
--HG--
extra : rebase_source : 8e3d8eb16d6b03066b699d5d344c8d4a828e44b5
2014-10-23 14:24:38 -07:00
Jim Chen 4dd22b7ee0 Bug 1086994 - Enable crash handling in search activity; r=margaret 2014-10-23 16:32:27 -04:00
Margaret Leibovic fd90b02349 Bug 1084590 - Update message and icon in empty view of search activity. r=liuche 2014-10-22 10:58:32 -07:00
Chris Kitching 2425aa80a2 Bug 1081582: Fix spelling. r=rnewman 2014-10-12 00:28:29 +01:00
wesj 420a745fa6 Bug 1078182 - "crash in java.lang.NullPointerException: at org.mozilla.search.SearchWidget.addView(SearchWidget.java)" [r=margaret.leibovic] 2014-10-08 12:26:00 -07:00
Chris Kitching 214c5a4c82 Bug 1081397: Finalise large numbers of fields. r=rnewman
* * *
Bug 1081397: Finalise large numbers of fields. r=rnewman
2014-10-11 00:17:01 +01:00
Margaret Leibovic 6e5a3d23d1 Bug 1063193 - Add mobile-specific URL to wikipedia search plugin. r=bnicholson 2014-10-10 10:24:30 -04:00
Nick Alexander bb02e2d8cf Bug 1080326 - Move Search Activity resources and stop building org.mozilla.search.R. r=rnewman
Since we no longer build the Search Activity stand-alone, we don't need
the complication of the extra search-only resources package.  Without
the stand-alone build and repository, the probability of search
resources being added to the Fennec resources (or being used in both
places) approaches 1, so lets protect against that.

--HG--
rename : mobile/android/search/res/color/facet_button_text_color.xml => mobile/android/base/resources/color/facet_button_text_color.xml
rename : mobile/android/search/res/drawable-hdpi/ic_action_settings.png => mobile/android/base/resources/drawable-hdpi/ic_action_settings.png
rename : mobile/android/search/res/drawable-hdpi/ic_widget_new_tab.png => mobile/android/base/resources/drawable-hdpi/ic_widget_new_tab.png
rename : mobile/android/search/res/drawable-hdpi/ic_widget_search.png => mobile/android/base/resources/drawable-hdpi/ic_widget_search.png
rename : mobile/android/search/res/drawable-hdpi/network_error.png => mobile/android/base/resources/drawable-hdpi/network_error.png
rename : mobile/android/search/res/drawable-hdpi/search_clear.png => mobile/android/base/resources/drawable-hdpi/search_clear.png
rename : mobile/android/search/res/drawable-hdpi/search_fox.png => mobile/android/base/resources/drawable-hdpi/search_fox.png
rename : mobile/android/search/res/drawable-hdpi/search_history.png => mobile/android/base/resources/drawable-hdpi/search_history.png
rename : mobile/android/search/res/drawable-hdpi/search_icon_active.png => mobile/android/base/resources/drawable-hdpi/search_icon_active.png
rename : mobile/android/search/res/drawable-hdpi/search_icon_inactive.png => mobile/android/base/resources/drawable-hdpi/search_icon_inactive.png
rename : mobile/android/search/res/drawable-hdpi/search_launcher.png => mobile/android/base/resources/drawable-hdpi/search_launcher.png
rename : mobile/android/search/res/drawable-hdpi/search_plus.png => mobile/android/base/resources/drawable-hdpi/search_plus.png
rename : mobile/android/search/res/drawable-hdpi/widget_bg.9.png => mobile/android/base/resources/drawable-hdpi/widget_bg.9.png
rename : mobile/android/search/res/drawable-mdpi/ic_action_settings.png => mobile/android/base/resources/drawable-mdpi/ic_action_settings.png
rename : mobile/android/search/res/drawable-mdpi/ic_widget_new_tab.png => mobile/android/base/resources/drawable-mdpi/ic_widget_new_tab.png
rename : mobile/android/search/res/drawable-mdpi/ic_widget_search.png => mobile/android/base/resources/drawable-mdpi/ic_widget_search.png
rename : mobile/android/search/res/drawable-mdpi/network_error.png => mobile/android/base/resources/drawable-mdpi/network_error.png
rename : mobile/android/search/res/drawable-mdpi/search_clear.png => mobile/android/base/resources/drawable-mdpi/search_clear.png
rename : mobile/android/search/res/drawable-mdpi/search_fox.png => mobile/android/base/resources/drawable-mdpi/search_fox.png
rename : mobile/android/search/res/drawable-mdpi/search_history.png => mobile/android/base/resources/drawable-mdpi/search_history.png
rename : mobile/android/search/res/drawable-mdpi/search_icon_active.png => mobile/android/base/resources/drawable-mdpi/search_icon_active.png
rename : mobile/android/search/res/drawable-mdpi/search_icon_inactive.png => mobile/android/base/resources/drawable-mdpi/search_icon_inactive.png
rename : mobile/android/search/res/drawable-mdpi/search_launcher.png => mobile/android/base/resources/drawable-mdpi/search_launcher.png
rename : mobile/android/search/res/drawable-mdpi/search_plus.png => mobile/android/base/resources/drawable-mdpi/search_plus.png
rename : mobile/android/search/res/drawable-mdpi/widget_bg.9.png => mobile/android/base/resources/drawable-mdpi/widget_bg.9.png
rename : mobile/android/search/res/drawable-xhdpi/ic_action_settings.png => mobile/android/base/resources/drawable-xhdpi/ic_action_settings.png
rename : mobile/android/search/res/drawable-xhdpi/ic_widget_new_tab.png => mobile/android/base/resources/drawable-xhdpi/ic_widget_new_tab.png
rename : mobile/android/search/res/drawable-xhdpi/ic_widget_search.png => mobile/android/base/resources/drawable-xhdpi/ic_widget_search.png
rename : mobile/android/search/res/drawable-xhdpi/network_error.png => mobile/android/base/resources/drawable-xhdpi/network_error.png
rename : mobile/android/search/res/drawable-xhdpi/search_clear.png => mobile/android/base/resources/drawable-xhdpi/search_clear.png
rename : mobile/android/search/res/drawable-xhdpi/search_fox.png => mobile/android/base/resources/drawable-xhdpi/search_fox.png
rename : mobile/android/search/res/drawable-xhdpi/search_history.png => mobile/android/base/resources/drawable-xhdpi/search_history.png
rename : mobile/android/search/res/drawable-xhdpi/search_icon_active.png => mobile/android/base/resources/drawable-xhdpi/search_icon_active.png
rename : mobile/android/search/res/drawable-xhdpi/search_icon_inactive.png => mobile/android/base/resources/drawable-xhdpi/search_icon_inactive.png
rename : mobile/android/search/res/drawable-xhdpi/search_launcher.png => mobile/android/base/resources/drawable-xhdpi/search_launcher.png
rename : mobile/android/search/res/drawable-xhdpi/search_plus.png => mobile/android/base/resources/drawable-xhdpi/search_plus.png
rename : mobile/android/search/res/drawable-xhdpi/widget_bg.9.png => mobile/android/base/resources/drawable-xhdpi/widget_bg.9.png
rename : mobile/android/search/res/drawable-xxhdpi/ic_action_settings.png => mobile/android/base/resources/drawable-xxhdpi/ic_action_settings.png
rename : mobile/android/search/res/drawable-xxhdpi/ic_widget_new_tab.png => mobile/android/base/resources/drawable-xxhdpi/ic_widget_new_tab.png
rename : mobile/android/search/res/drawable-xxhdpi/ic_widget_search.png => mobile/android/base/resources/drawable-xxhdpi/ic_widget_search.png
rename : mobile/android/search/res/drawable-xxhdpi/network_error.png => mobile/android/base/resources/drawable-xxhdpi/network_error.png
rename : mobile/android/search/res/drawable-xxhdpi/search_clear.png => mobile/android/base/resources/drawable-xxhdpi/search_clear.png
rename : mobile/android/search/res/drawable-xxhdpi/search_fox.png => mobile/android/base/resources/drawable-xxhdpi/search_fox.png
rename : mobile/android/search/res/drawable-xxhdpi/search_history.png => mobile/android/base/resources/drawable-xxhdpi/search_history.png
rename : mobile/android/search/res/drawable-xxhdpi/search_icon_active.png => mobile/android/base/resources/drawable-xxhdpi/search_icon_active.png
rename : mobile/android/search/res/drawable-xxhdpi/search_icon_inactive.png => mobile/android/base/resources/drawable-xxhdpi/search_icon_inactive.png
rename : mobile/android/search/res/drawable-xxhdpi/search_launcher.png => mobile/android/base/resources/drawable-xxhdpi/search_launcher.png
rename : mobile/android/search/res/drawable-xxhdpi/search_plus.png => mobile/android/base/resources/drawable-xxhdpi/search_plus.png
rename : mobile/android/search/res/drawable-xxxhdpi/search_launcher.png => mobile/android/base/resources/drawable-xxxhdpi/search_launcher.png
rename : mobile/android/search/res/drawable/edit_text_default.xml => mobile/android/base/resources/drawable/edit_text_default.xml
rename : mobile/android/search/res/drawable/edit_text_focused.xml => mobile/android/base/resources/drawable/edit_text_focused.xml
rename : mobile/android/search/res/drawable/facet_button_background.xml => mobile/android/base/resources/drawable/facet_button_background.xml
rename : mobile/android/search/res/drawable/facet_button_background_default.xml => mobile/android/base/resources/drawable/facet_button_background_default.xml
rename : mobile/android/search/res/drawable/facet_button_background_pressed.xml => mobile/android/base/resources/drawable/facet_button_background_pressed.xml
rename : mobile/android/search/res/drawable/progressbar.xml => mobile/android/base/resources/drawable/progressbar.xml
rename : mobile/android/search/res/drawable/search_row_background.xml => mobile/android/base/resources/drawable/search_row_background.xml
rename : mobile/android/search/res/drawable/widget_button_left.xml => mobile/android/base/resources/drawable/widget_button_left.xml
rename : mobile/android/search/res/drawable/widget_button_left_default.xml => mobile/android/base/resources/drawable/widget_button_left_default.xml
rename : mobile/android/search/res/drawable/widget_button_left_pressed.xml => mobile/android/base/resources/drawable/widget_button_left_pressed.xml
rename : mobile/android/search/res/drawable/widget_button_middle.xml => mobile/android/base/resources/drawable/widget_button_middle.xml
rename : mobile/android/search/res/drawable/widget_button_middle_pressed.xml => mobile/android/base/resources/drawable/widget_button_middle_pressed.xml
rename : mobile/android/search/res/drawable/widget_button_right.xml => mobile/android/base/resources/drawable/widget_button_right.xml
rename : mobile/android/search/res/drawable/widget_button_right_pressed.xml => mobile/android/base/resources/drawable/widget_button_right_pressed.xml
rename : mobile/android/search/res/layout/keyguard_widget.xml => mobile/android/base/resources/layout/keyguard_widget.xml
rename : mobile/android/search/res/layout/search_activity_main.xml => mobile/android/base/resources/layout/search_activity_main.xml
rename : mobile/android/search/res/layout/search_bar.xml => mobile/android/base/resources/layout/search_bar.xml
rename : mobile/android/search/res/layout/search_empty.xml => mobile/android/base/resources/layout/search_empty.xml
rename : mobile/android/search/res/layout/search_fragment_post_search.xml => mobile/android/base/resources/layout/search_fragment_post_search.xml
rename : mobile/android/search/res/layout/search_fragment_pre_search.xml => mobile/android/base/resources/layout/search_fragment_pre_search.xml
rename : mobile/android/search/res/layout/search_history_row.xml => mobile/android/base/resources/layout/search_history_row.xml
rename : mobile/android/search/res/layout/search_sugestions.xml => mobile/android/base/resources/layout/search_sugestions.xml
rename : mobile/android/search/res/layout/search_suggestions_row.xml => mobile/android/base/resources/layout/search_suggestions_row.xml
rename : mobile/android/search/res/layout/search_widget.xml => mobile/android/base/resources/layout/search_widget.xml
rename : mobile/android/search/res/values-v13/search_styles.xml => mobile/android/base/resources/values-v13/search_styles.xml
rename : mobile/android/search/res/values-v16/search_styles.xml => mobile/android/base/resources/values-v16/search_styles.xml
rename : mobile/android/search/res/values/search_attrs.xml => mobile/android/base/resources/values/search_attrs.xml
rename : mobile/android/search/res/values/search_colors.xml => mobile/android/base/resources/values/search_colors.xml
rename : mobile/android/search/res/values/search_dimens.xml => mobile/android/base/resources/values/search_dimens.xml
rename : mobile/android/search/res/values/search_styles.xml => mobile/android/base/resources/values/search_styles.xml
rename : mobile/android/search/res/xml/search_preferences.xml => mobile/android/base/resources/xml/search_preferences.xml
rename : mobile/android/search/res/xml/search_widget_info.xml => mobile/android/base/resources/xml/search_widget_info.xml
2014-10-08 21:07:41 -07:00
Richard Newman efa0bd6b80 Bug 1078394 - Remove AppConstants.SEARCH_PACKAGE_NAME. r=margaret 2014-10-06 12:01:51 -07:00
Richard Newman 66fa470ad6 Bug 1042951 - Part 3: record searches from SearchActivity. r=margaret 2014-10-07 17:52:21 -07:00
Margaret Leibovic 85d924885e Bug 1068739 - Record position of search suggestion that was tapped in telemetry. r=mfinkle 2014-10-03 14:37:19 -04:00
Margaret Leibovic fa2c67d7dc Bug 1041604 - Update query in search bar when user navigates to new results page. r=wesj 2014-10-02 07:49:43 -07:00
Margaret Leibovic 389e436044 Bug 1065891 - (Part 2) Update the search activity default engine when the gecko default search engine changes. r=bnicholson 2014-09-29 20:56:20 -07:00
Margaret Leibovic fdc376a084 Bug 1065891 - (Part 1) Remove search engine pref from search activity settings screen. r=liuche 2014-09-29 20:56:20 -07:00
Margaret Leibovic 7d20027d24 Bug 1050457 - Increase top/right/left values of edit_text_focus layer-list drawable to fix pixel issue on 4.1. r=liuche 2014-09-29 11:08:27 -07:00
Projjol Banerji 3c87a4d988 Bug 1060056 - Rename MainActivity to SearchActivity. r=margaret
--HG--
rename : mobile/android/search/java/org/mozilla/search/MainActivity.java => mobile/android/search/java/org/mozilla/search/SearchActivity.java
2014-09-26 11:12:59 -07:00
Margaret Leibovic e132fb9f69 Bug 1064152 - Properly handle intent:// URIs. r=wesj 2014-09-25 11:28:48 -07:00