Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
唐文
/
AiyoZhuaWaWa
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
85058ee8
authored
Dec 07, 2017
by
chengfengpiaopiao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
前端增加更换头像错误提示
parent
5e90088e
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
20 additions
and
8 deletions
.idea/misc.xml
app/src/main/java/com/maile/jingcai/view/activity/MainActivity.java
app/src/main/java/com/maile/jingcai/view/fragment/SimpleCardFragment.java
build.gradle
.idea/misc.xml
View file @
85058ee8
...
...
@@ -27,7 +27,7 @@
</value>
</option>
</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"
/>
</component>
<component
name=
"ProjectType"
>
...
...
app/src/main/java/com/maile/jingcai/view/activity/MainActivity.java
View file @
85058ee8
...
...
@@ -379,6 +379,7 @@ public class MainActivity extends FragmentActivity implements IWebView ,Activity
@Override
public
void
onError
(
Throwable
e
)
{
mToastBar
.
showErrorBar
(
R
.
string
.
user_info_upload_head_server_fail
);
mWebView
.
loadUrl
(
"javascript:failChangeAvatar()"
);
}
@Override
...
...
app/src/main/java/com/maile/jingcai/view/fragment/SimpleCardFragment.java
View file @
85058ee8
...
...
@@ -8,6 +8,7 @@ import android.content.Intent;
import
android.os.Build
;
import
android.os.Bundle
;
import
android.os.Handler
;
import
android.os.SystemClock
;
import
android.support.annotation.NonNull
;
import
android.support.annotation.Nullable
;
import
android.support.annotation.RequiresApi
;
...
...
@@ -269,10 +270,20 @@ public class SimpleCardFragment extends BaseFragment implements FragmentCompat.
preferencesManager
.
putString
(
IPreferencesIds
.
TOKEN
,
""
);
Intent
intent
=
new
Intent
(
mContext
,
LoginActivity
.
class
);
mContext
.
startActivity
(
intent
);
if
(
mContext
!=
null
)
{
Log
.
d
(
"MainActivity"
,
"退出跳转"
);
((
Activity
)
mContext
).
finish
();
}
// if (mContext != null) {
// Log.d("MainActivity", "退出跳转");
// ((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
();
}
/**
...
...
build.gradle
View file @
85058ee8
...
...
@@ -25,9 +25,9 @@ task clean(type: Delete) {
ext
{
//版本
compileSdkVersion
=
2
5
buildToolsVersion
=
"2
5.0.1
"
//23.0.3
targetSdkVersion
=
2
5
compileSdkVersion
=
2
3
buildToolsVersion
=
"2
3.0.3
"
//23.0.3
targetSdkVersion
=
2
3
//项目依赖
ButterKnife
=
"6.1.0"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment