Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HomeFragment 未加载 #5

Closed
zhanghai opened this issue Feb 29, 2016 · 12 comments
Closed

HomeFragment 未加载 #5

zhanghai opened this issue Feb 29, 2016 · 12 comments
Assignees

Comments

@zhanghai
Copy link
Owner

https://v2ex.com/t/259627#r_2939812

登录成功了,可是什么也看不到, Toolbar 下面一片空白。 logcat 中出现了与这里提到的一样的情况:
https://code.google.com/p/android/issues/detail?id=202037

@zhanghai zhanghai added the bug label Feb 29, 2016
@zhanghai zhanghai self-assigned this Feb 29, 2016
@jiefoxi
Copy link

jiefoxi commented Feb 29, 2016

JDK:1.8.0_74
模拟器:Nexus 5X API 23

我把 Support Library 改成 23.1.1 也是一样的错误

@zhanghai
Copy link
Owner Author

依然无法在 Nexus 5/6 + API 23 的模拟器上重现。(我没有去更新 Preview Channel 的 SDK Tools,所以没有 5X 的模拟器。)

在我日用的 Nubia Z9Max + CM12 5.1.1 上也从未有过这个 Bug,十分奇怪。

如果愿意自己构建,你或许可以试试把 https://github.com/DreaminginCodeZH/Douya/blob/master/app/src/main/java/me/zhanghai/android/douya/home/HomeFragment.java#L66getChildFragmentManager() 改成 getFragmentManager() 试试。这样逻辑不对但或许可以定位问题。

@cintory
Copy link

cintory commented Feb 29, 2016

02-29 15:38:53.830 6791-6904/me.zhanghai.android.douya D/Volley: [4621] BasicNetwork.logSlowRequests: HTTP response for request=<[ ] https://api.douban.com/v2/lifestream/home_timeline?apikey=0dad551ec0f84ed02907ff5c42e8ec70&count=20& 0x0 NORMAL 2> [lifetime=5826], [size=2], [rc=200], [retryCount=0]

@zhanghai
Copy link
Owner Author

@cintory 不,这个只是网络连接很慢……

@cintory
Copy link

cintory commented Feb 29, 2016

我debug看了下好像是返回值为空,但我之前登陆是成功了的。

@jiefoxi
Copy link

jiefoxi commented Feb 29, 2016

我看了一下 README 和演示视频,又回头看了一下 README,里面提到

目前实现了友邻广播的查看、回应、删除等操作,提醒的查看,以及相关的设置条目。

而我的友邻广播是空的(本人只看不互动),所以什么也看不到。

如果你能优先实现搜索浏览发现就好了。

logcat 中的错误仍然存在,就像 @cintory 之前发的一样。

@zhanghai
Copy link
Owner Author

@jiefoxi
噢……如此有道理…… (:з」∠)


因为精力有限嘛,广播发送也还没做的。对于条目发现的功能大豆瓣 App 也做得比较好了(只是设计不敢恭维),所以想的是优先做另一个面向友邻的。
Logcat 中的错误大概只是个 Warning。


真正的 Bug 是没有考虑到没有友邻广播的情况,应该加一个 Empty View 的。

@zhanghai
Copy link
Owner Author

@cintory 你的是这个情况么?如果是网络错误,就算是超时一段时间以后也会有一个 Toast 提示的。

@cintory
Copy link

cintory commented Feb 29, 2016

我并不是情况超时,result是空的,应该也是没有消息的原因。【其实我找不到登出的选项。。

@zhanghai
Copy link
Owner Author

@cintory 登出的话可以去系统设置里删除豆芽的账户,应用内的账户管理还没做。

@itcql
Copy link

itcql commented Mar 3, 2016

怎样登陆看一下效果啊,否则有代码也没多大用啊

@zhanghai
Copy link
Owner Author

zhanghai commented Mar 3, 2016

@newbalance#16 #17 等。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants