Commit Graph

131 Commits

Author SHA1 Message Date
Michael Comella
b66ab9267a Bug 1175355 - Add AsyncQueryHandlerImpl in SearchActivity. r=nalexander
This avoids the "HandlerLeak" Android Lint warning.
2015-06-24 16:58:06 -07:00
Michael Comella
197bbfbbbf Bug 1173228 - Suppress SetJavaScriptEnabled linter warning. r=margaret
The function is required for a greasemonkey script and the code is expected to
be secure.
2015-06-09 18:52:12 -07:00
Jim Chen
7a9fcd017d Bug 1166309 - Make GeckoJarReader load mozglue if necessary; r=mfinkle r=rnewman 2015-06-10 00:25:01 -04:00
Michael Comella
15d34e0c72 Bug 1170886 - Replace use of NewApi suppression with @TargetApi. r?nalexander
TargetApi is specific, and preferred.
2015-06-02 20:02:30 -07:00
Martyn Haigh
9a052ac48e 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
2052481d62 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
fa4c4dbed6 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
4a22f093e2 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.
2015-04-27 14:15:13 -06:00
Sebastian Kaspari
3791d93069 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
9b1bec56da Bug 1122767 - Remove lockscreen code from SearchWidget. r=wesj 2015-02-26 06:17:00 -05:00
Mark Finkle
8aefefbd4f 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
587f0012b7 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
25edb8d9ad 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
0f831ec15a 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
d5dbd32904 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
fa280fd16a Bug 1129576 - Fetch the country code in the Search Activity r=margaret f=rnewman 2015-02-06 17:08:31 -05:00
Margaret Leibovic
931405385c 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
5896922654 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
f55f54e52a Bug 1124492 - Allow for distribution intent processing to occur after first use. r=margaret 2015-01-26 10:02:39 -08:00
Margaret Leibovic
dfeafd2419 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
913ff796a7 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
6a71ea4e30 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
1833ab7d8d 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
0a246be074 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
c58ef4efa2 Bug 1108252 - Remove launcher icon for search activity. r=mfinkle 2014-12-09 16:37:58 +00:00
Margaret Leibovic
a38ecda195 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
006aee8526 Bug 1085386 - Finish preference activity when hitting action bar "up" button. r=liuche 2014-11-17 11:42:47 -08:00
Margaret Leibovic
29539374c7 Bug 1091728 - Use correct gecko default search engine in search activity. r=rnewman 2014-11-13 14:32:03 -08:00
Chris Kitching
2c2f87dc6a Bug 1098082: Merge identical catch branches. r=rnewman 2014-11-13 01:21:10 +00:00
Wes Kocher
20452eac61 Backed out changeset 64a320318bf9 (bug 1098082) for android build bustage 2014-11-12 18:22:25 -08:00
Chris Kitching
97bb3c06eb Bug 1098082: Merge identical catch branches. r=rnewman 2014-11-13 01:21:10 +00:00
Margaret Leibovic
f5f8c82efa Bug 1097364 - Support <OpenSearchDescription> as the root tag of a search plugin. r=bnicholson 2014-11-12 07:38:03 -08:00
Shashank Sabniveesu
018abd5c01 Bug 1093220 - Remove standalone search activity code. r=margaret
CLOSED TREE
2014-11-09 16:39:04 -05:00
Erik Edrosa
20ec3deaef 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
df545e5f40 Bug 1086994 - Enable crash handling in search activity; r=margaret 2014-10-23 16:32:27 -04:00
Margaret Leibovic
89e7ddebf3 Bug 1084590 - Update message and icon in empty view of search activity. r=liuche 2014-10-22 10:58:32 -07:00
Chris Kitching
18410626e8 Bug 1081582: Fix spelling. r=rnewman 2014-10-12 00:28:29 +01:00
wesj
1128d5e141 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
ef5903ad00 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
476b445cef Bug 1063193 - Add mobile-specific URL to wikipedia search plugin. r=bnicholson 2014-10-10 10:24:30 -04:00
Nick Alexander
f33a1a0d82 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
9941764ec0 Bug 1078394 - Remove AppConstants.SEARCH_PACKAGE_NAME. r=margaret 2014-10-06 12:01:51 -07:00
Richard Newman
460da4dd19 Bug 1042951 - Part 3: record searches from SearchActivity. r=margaret 2014-10-07 17:52:21 -07:00
Margaret Leibovic
5fc805421c Bug 1068739 - Record position of search suggestion that was tapped in telemetry. r=mfinkle 2014-10-03 14:37:19 -04:00
Margaret Leibovic
4a1e72ff69 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
aad5f309b7 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
7bcb44c968 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
ac7026e25a 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
eb3166e06f 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
b633a50d4e Bug 1064152 - Properly handle intent:// URIs. r=wesj 2014-09-25 11:28:48 -07:00