Skip to content

Commit

Permalink
Merge pull request #5203 from wikimedia/fixSearchResultCodes
Browse files Browse the repository at this point in the history
Fix potential issues due to duplicate Result codes in SearchActivity.
  • Loading branch information
cooltey authored Jan 6, 2025
2 parents d67ec44 + 98e547a commit fdc4ffb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/src/main/java/org/wikipedia/search/SearchActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class SearchActivity : SingleFragmentActivity<SearchFragment>() {
const val EXTRA_RETURN_LINK = "returnLink"
const val EXTRA_RETURN_LINK_TITLE = "returnLinkTitle"
const val EXTRA_SUGGESTED_QUERY = "suggestedQuery"
const val RESULT_LINK_SUCCESS = 1
const val RESULT_LINK_SUCCESS = 97

fun newIntent(context: Context, source: InvokeSource, query: String?, returnLink: Boolean = false, suggestedSearchQuery: String? = null): Intent {
return Intent(context, SearchActivity::class.java)
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/java/org/wikipedia/search/SearchFragment.kt
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ class SearchFragment : Fragment(), SearchResultsFragment.Callback, RecentSearche
private const val PANEL_RECENT_SEARCHES = 0
private const val PANEL_SEARCH_RESULTS = 1
private const val INTENT_DELAY_MILLIS = 500L
const val RESULT_LANG_CHANGED = 1
const val RESULT_LANG_CHANGED = 98

fun newInstance(source: InvokeSource, query: String?, returnLink: Boolean = false): SearchFragment =
SearchFragment().apply {
Expand Down

0 comments on commit fdc4ffb

Please sign in to comment.