mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1038775 - Always launch search activity on dashboard. r=margaret
This commit is contained in:
parent
897717d152
commit
f4dbb1b0b9
@ -4,7 +4,6 @@
|
||||
|
||||
package org.mozilla.search;
|
||||
|
||||
import android.net.Uri;
|
||||
import android.os.Bundle;
|
||||
import android.support.v4.app.FragmentActivity;
|
||||
import android.view.View;
|
||||
@ -33,7 +32,6 @@ public class MainActivity extends FragmentActivity implements AcceptsSearchQuery
|
||||
protected void onCreate(Bundle stateBundle) {
|
||||
super.onCreate(stateBundle);
|
||||
setContentView(R.layout.search_activity_main);
|
||||
startPresearch();
|
||||
}
|
||||
|
||||
@Override
|
||||
@ -43,6 +41,13 @@ public class MainActivity extends FragmentActivity implements AcceptsSearchQuery
|
||||
.startSearch(s);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onResume() {
|
||||
super.onResume();
|
||||
// When the app launches, make sure we're in presearch *always*
|
||||
startPresearch();
|
||||
}
|
||||
|
||||
private void startPresearch() {
|
||||
if (state != State.PRESEARCH) {
|
||||
state = State.PRESEARCH;
|
||||
|
@ -119,11 +119,7 @@ public class SearchFragment extends Fragment implements AdapterView.OnItemClickL
|
||||
new AutoCompleteAgentManager(getActivity(), new MainUiHandler(autoCompleteAdapter));
|
||||
|
||||
// This will hide the autocomplete box and background frame.
|
||||
// Is there a case where we *shouldn't* hide this upfront?
|
||||
|
||||
// Uncomment show card stream first.
|
||||
// transitionToWaiting();
|
||||
transitionToRunning();
|
||||
transitionToWaiting();
|
||||
|
||||
// Attach listener for tapping on a suggestion.
|
||||
suggestionDropdown.setOnItemClickListener(new AdapterView.OnItemClickListener() {
|
||||
|
Loading…
Reference in New Issue
Block a user