Commit 85058ee8 by chengfengpiaopiao

前端增加更换头像错误提示

parent 5e90088e
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
</value> </value>
</option> </option>
</component> </component>
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" default="true" assert-keyword="true" jdk-15="true" project-jdk-name="1.8" project-jdk-type="JavaSDK"> <component name="ProjectRootManager" version="2" languageLevel="JDK_1_7" default="true" assert-keyword="true" jdk-15="true" project-jdk-name="1.8" project-jdk-type="JavaSDK">
<output url="file://$PROJECT_DIR$/build/classes" /> <output url="file://$PROJECT_DIR$/build/classes" />
</component> </component>
<component name="ProjectType"> <component name="ProjectType">
......
...@@ -379,6 +379,7 @@ public class MainActivity extends FragmentActivity implements IWebView ,Activity ...@@ -379,6 +379,7 @@ public class MainActivity extends FragmentActivity implements IWebView ,Activity
@Override @Override
public void onError(Throwable e) { public void onError(Throwable e) {
mToastBar.showErrorBar(R.string.user_info_upload_head_server_fail); mToastBar.showErrorBar(R.string.user_info_upload_head_server_fail);
mWebView.loadUrl("javascript:failChangeAvatar()");
} }
@Override @Override
......
...@@ -8,6 +8,7 @@ import android.content.Intent; ...@@ -8,6 +8,7 @@ import android.content.Intent;
import android.os.Build; import android.os.Build;
import android.os.Bundle; import android.os.Bundle;
import android.os.Handler; import android.os.Handler;
import android.os.SystemClock;
import android.support.annotation.NonNull; import android.support.annotation.NonNull;
import android.support.annotation.Nullable; import android.support.annotation.Nullable;
import android.support.annotation.RequiresApi; import android.support.annotation.RequiresApi;
...@@ -269,10 +270,20 @@ public class SimpleCardFragment extends BaseFragment implements FragmentCompat. ...@@ -269,10 +270,20 @@ public class SimpleCardFragment extends BaseFragment implements FragmentCompat.
preferencesManager.putString(IPreferencesIds.TOKEN,""); preferencesManager.putString(IPreferencesIds.TOKEN,"");
Intent intent = new Intent(mContext, LoginActivity.class); Intent intent = new Intent(mContext, LoginActivity.class);
mContext.startActivity(intent); mContext.startActivity(intent);
if (mContext != null) { // if (mContext != null) {
Log.d("MainActivity", "退出跳转"); // Log.d("MainActivity", "退出跳转");
((Activity) mContext).finish(); // ((MainActivity) mContext).finish();
} // }
new Thread(new Runnable() {
@Override
public void run() {
Log.d("删除MainActivity", "starting....");
if (mContext != null) {
Log.d("删除删除MainActivity", "done!");
getActivity().finish();
}
}
}).start();
} }
/** /**
......
...@@ -25,9 +25,9 @@ task clean(type: Delete) { ...@@ -25,9 +25,9 @@ task clean(type: Delete) {
ext { ext {
//版本 //版本
compileSdkVersion = 25 compileSdkVersion = 23
buildToolsVersion = "25.0.1" //23.0.3 buildToolsVersion = "23.0.3" //23.0.3
targetSdkVersion = 25 targetSdkVersion = 23
//项目依赖 //项目依赖
ButterKnife = "6.1.0" ButterKnife = "6.1.0"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment