duckduckgo / android-search-and-stories

DuckDuckGo Search & Stories for Android
https://duckduckgo.com/app
Other
425 stars 171 forks source link

Math queries (lots of symbols) often don't make it off the home screen #92

Open crazedpsyc opened 10 years ago

crazedpsyc commented 10 years ago

Not sure if this is the same as #80. While searching (from the app's search bar) queries with lots of symbols, the search bar is cleared and I am left at the home screen. This is a GT-P7510 running CM10.2 (android 4.3).

I can reproduce from home builds of the app from master, so I did a bit of debugging... looks like it actually thinks the home button is being pressed the instant after the search begins. Not sure if it actually has anything to do with the symbols.

The query I'm testing with is !wa 2(x+2)^2 + 1

I/DuckDuck(23646): I am clearing the search bar (clearSearchBar())
I/DuckDuck(23646): dalvik.system.VMStack.getThreadStackTrace(Native Method)
I/DuckDuck(23646): java.lang.Thread.getStackTrace(Thread.java:579)
I/DuckDuck(23646): com.duckduckgo.mobile.android.activity.DuckDuckGo.clearSearchBar(DuckDuckGo.java:831)
I/DuckDuck(23646): com.duckduckgo.mobile.android.activity.DuckDuckGo.resetScreenState(DuckDuckGo.java:850)
I/DuckDuck(23646): com.duckduckgo.mobile.android.activity.DuckDuckGo.displayScreen(DuckDuckGo.java:896)
I/DuckDuck(23646): com.duckduckgo.mobile.android.activity.DuckDuckGo.displayHomeScreen(DuckDuckGo.java:932)
I/DuckDuck(23646): com.duckduckgo.mobile.android.activity.DuckDuckGo.handleHomeSettingsButtonClick(DuckDuckGo.java:1449)
I/DuckDuck(23646): com.duckduckgo.mobile.android.activity.DuckDuckGo.onClick(DuckDuckGo.java:1404)
I/DuckDuck(23646): android.view.View.performClick(View.java:4248)
I/DuckDuck(23646): android.view.View.onKeyUp(View.java:7938)
I/DuckDuck(23646): android.view.KeyEvent.dispatch(KeyEvent.java:2647)
I/DuckDuck(23646): android.view.View.dispatchKeyEvent(View.java:7353)
I/DuckDuck(23646): android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:1393)
I/DuckDuck(23646): android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:1393)
I/DuckDuck(23646): android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:1393)
I/DuckDuck(23646): android.support.v4.view.ViewPager.dispatchKeyEvent(ViewPager.java:2442)
I/DuckDuck(23646): android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:1393)
I/DuckDuck(23646): android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:1393)
I/DuckDuck(23646): android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:1393)
I/DuckDuck(23646): android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:1393)
I/DuckDuck(23646): com.android.internal.policy.impl.PhoneWindow$DecorView.superDispatchKeyEvent(PhoneWindow.java:2370)
nilnilnil commented 8 years ago

@crazedpsyc is this still an issue?