Skip to content

Commit

Permalink
调整某些延时以增强用户体验
Browse files Browse the repository at this point in the history
  • Loading branch information
haruue committed Feb 15, 2016
1 parent cd8df37 commit f0e8c37
Show file tree
Hide file tree
Showing 10 changed files with 37 additions and 8 deletions.
28 changes: 26 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,40 @@ Web端使用的是朱大的[know_web](https://github.com/Jude95/know_web.git)的

## 功能
+ 登录、登出
![](readme.res/device-2016-02-15-162559.gif)

+ 查看、提交问题
![](readme.res/device-2016-02-15-163152.gif)

+ 查看、提交答案
![](readme.res/device-2016-02-15-163649.gif)

+ 更换头像
![](readme.res/device-2016-02-15-164336.gif)


## 下载
[下载APK](app/app-release.apk?raw=true)

## Developed by
## 开发者
Haruue Icymoon <[email protected]>
本项目作为红岩移动开发部寒假作业 Level3 和 Level4 部分

## 开源
Apache 2.0
Apache License 2.0
``` License
Copyright [2016] [Haruue Icymoon]
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
```
Binary file modified app/app-release.apk
Binary file not shown.
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ android {
applicationId "cn.com.caoyue.bihu"
minSdkVersion 15
targetSdkVersion 23
versionCode 2
versionName "1.0.1"
versionCode 3
versionName "1.0.2"
ndk {
moduleName "JniApiKeys"
ldLibs "log", "z", "m"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,12 @@ private void checkLogin() {
.orderBy("RANDOM()")
.executeSingle();
if (null == userTable) {
showLoginDialog();
handler.postDelayed(new Runnable() {
@Override
public void run() {
showLoginDialog();
}
}, 500);
return;
}
Call<UserTransfer> loginWithOldTokenCall = RestApi.getHaruueKnowWebApiService().loginWithOldToken(ApiKeys.HARUUE_KNOW_WEB_APIKEY, userTable.token);
Expand Down Expand Up @@ -108,7 +113,7 @@ public void onRegisterSuccess(String username, String password) {

@Override
public void onDialogCancel() {
AppControl.exitApp();

}
};
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ public void onClick(View v) {
@Override
public void onClick(View v) {
selectImageBitmap = null;
new GetFace(imageView, CurrentUser.getInstance().face).load();
onBackPressed();
}
});
findViewById(R.id.btn_save).setOnClickListener(new View.OnClickListener() {
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<string name="login_failed_for_password_error">帐号或密码错误</string>
<string name="register_success">注册成功,点击[登录]即可登录您的账户</string>
<string name="register_failed_for_username_exist">用户名已被占用</string>
<string name="error_404_apikey">服务器操作失败,请使用以下信息联系开发者: API Key 无效或服务器异常</string>
<string name="error_404_apikey">您使用的版本太旧或者服务器发生异常</string>
<string name="other_server_error">服务器提交了一个问题,我们正在紧张地撰写答案</string>
<string name="network_error">世界上最遥远的距离就是没网,检查设置</string>
<string name="login_with_old_token_failed">身份失效,请重新登录</string>
Expand Down
Binary file added readme.res/device-2016-02-15-162559.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added readme.res/device-2016-02-15-163152.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added readme.res/device-2016-02-15-163649.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added readme.res/device-2016-02-15-164336.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit f0e8c37

Please sign in to comment.