|
@@ -18,7 +18,10 @@ import com.sheep.jiuyan.samllsheep.SheepApp;
|
|
|
import com.sheep.jiuyan.samllsheep.utils.G;
|
|
import com.sheep.jiuyan.samllsheep.utils.G;
|
|
|
import com.sheep.jiuyan.samllsheep.utils.TitleBarUtils;
|
|
import com.sheep.jiuyan.samllsheep.utils.TitleBarUtils;
|
|
|
|
|
|
|
|
|
|
+import java.util.concurrent.TimeUnit;
|
|
|
|
|
+
|
|
|
import butterknife.BindView;
|
|
import butterknife.BindView;
|
|
|
|
|
+import rx.Observable;
|
|
|
import rx.android.schedulers.AndroidSchedulers;
|
|
import rx.android.schedulers.AndroidSchedulers;
|
|
|
import rx.functions.Action1;
|
|
import rx.functions.Action1;
|
|
|
import rx.schedulers.Schedulers;
|
|
import rx.schedulers.Schedulers;
|
|
@@ -51,11 +54,24 @@ public class ActCommentGameApp extends BaseActivity {
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
.setTitleFinish(this);
|
|
.setTitleFinish(this);
|
|
|
|
|
+//
|
|
|
|
|
+// Observable.just(1).delay(100L, TimeUnit.MILLISECONDS)
|
|
|
|
|
+// .subscribeOn(Schedulers.io())
|
|
|
|
|
+// .observeOn(AndroidSchedulers.mainThread())
|
|
|
|
|
+// .subscribe(new Action1<Integer>() {
|
|
|
|
|
+// @Override
|
|
|
|
|
+// public void call(Integer integer) {
|
|
|
|
|
+// act_comment_game_app_input_comment.setFocusable(true);
|
|
|
|
|
+// act_comment_game_app_input_comment.setFocusableInTouchMode(true);
|
|
|
|
|
+// act_comment_game_app_input_comment.requestFocus();
|
|
|
|
|
+// }
|
|
|
|
|
+// });
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
//评论游戏
|
|
//评论游戏
|
|
|
private void commitUserGameComment(int score, String content) {
|
|
private void commitUserGameComment(int score, String content) {
|
|
|
- if(TestUtil.isDev()) G.showToast(score + " " + content);
|
|
|
|
|
- if(TextUtils.isEmpty(content)){
|
|
|
|
|
|
|
+ if (TestUtil.isDev()) G.showToast(score + " " + content);
|
|
|
|
|
+ if (TextUtils.isEmpty(content)) {
|
|
|
G.showToast("亲,您还没有填写你的观点呢");
|
|
G.showToast("亲,您还没有填写你的观点呢");
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
@@ -87,7 +103,7 @@ public class ActCommentGameApp extends BaseActivity {
|
|
|
public void initData() {
|
|
public void initData() {
|
|
|
game_id = getIntent().getIntExtra("game_id", 0);
|
|
game_id = getIntent().getIntExtra("game_id", 0);
|
|
|
if (game_id > 0) {
|
|
if (game_id > 0) {
|
|
|
- if(TestUtil.isDev()) G.showToast("game_id为" + game_id);
|
|
|
|
|
|
|
+// if (TestUtil.isDev()) G.showToast("game_id为" + game_id);
|
|
|
act_comment_game_app_score.setIsIndicator(false);
|
|
act_comment_game_app_score.setIsIndicator(false);
|
|
|
} else {
|
|
} else {
|
|
|
G.showToast(R.string.error_data);
|
|
G.showToast(R.string.error_data);
|