产品优化汇总
This commit is contained in:
@ -8,23 +8,35 @@ import android.support.v4.widget.SwipeRefreshLayout;
|
||||
import android.support.v7.widget.LinearLayoutManager;
|
||||
import android.support.v7.widget.RecyclerView;
|
||||
import android.text.TextUtils;
|
||||
import android.view.*;
|
||||
import android.view.KeyEvent;
|
||||
import android.view.View;
|
||||
import android.view.Window;
|
||||
import android.view.inputmethod.EditorInfo;
|
||||
import android.view.inputmethod.InputMethodManager;
|
||||
import android.widget.*;
|
||||
import butterknife.BindView;
|
||||
import butterknife.OnClick;
|
||||
import android.widget.EditText;
|
||||
import android.widget.LinearLayout;
|
||||
import android.widget.TextView;
|
||||
import android.widget.Toast;
|
||||
|
||||
import com.gc.materialdesign.views.ProgressBarCircularIndeterminate;
|
||||
import com.gh.base.BaseActivity;
|
||||
import com.gh.common.util.*;
|
||||
import com.gh.common.util.DialogUtils;
|
||||
import com.gh.common.util.TokenUtils;
|
||||
import com.gh.common.util.Utils;
|
||||
import com.gh.gamecenter.adapter.VoteAdapter;
|
||||
import com.gh.gamecenter.db.VersionVoteDao;
|
||||
import com.gh.gamecenter.db.info.VersionVoteInfo;
|
||||
import com.gh.gamecenter.retrofit.Response;
|
||||
import com.gh.gamecenter.retrofit.RetrofitManager;
|
||||
import okhttp3.*;
|
||||
|
||||
import org.json.JSONException;
|
||||
import org.json.JSONObject;
|
||||
|
||||
import butterknife.BindView;
|
||||
import butterknife.OnClick;
|
||||
import okhttp3.MediaType;
|
||||
import okhttp3.RequestBody;
|
||||
import okhttp3.ResponseBody;
|
||||
import retrofit2.adapter.rxjava.HttpException;
|
||||
import rx.Observable;
|
||||
import rx.android.schedulers.AndroidSchedulers;
|
||||
@ -194,7 +206,6 @@ public class VoteActivity extends BaseActivity implements SwipeRefreshLayout.OnR
|
||||
e.printStackTrace();
|
||||
}
|
||||
|
||||
Utils.log("=====object" + object.toString());
|
||||
|
||||
final RequestBody body = RequestBody.create(MediaType.parse("application/json"), object.toString());
|
||||
|
||||
@ -224,7 +235,11 @@ public class VoteActivity extends BaseActivity implements SwipeRefreshLayout.OnR
|
||||
if (cast) {
|
||||
Utils.toast(VoteActivity.this, "投票成功");
|
||||
} else {
|
||||
Utils.toast(VoteActivity.this, "你已经投过了");
|
||||
if (isNewVote) {
|
||||
Utils.toast(VoteActivity.this, "已经存在相同的选项");
|
||||
} else {
|
||||
Utils.toast(VoteActivity.this, "你已经投过了");
|
||||
}
|
||||
}
|
||||
|
||||
if (!TextUtils.isEmpty(id)) {
|
||||
|
||||
Reference in New Issue
Block a user