fixed crashes
This commit is contained in:
parent
40d79d0113
commit
943a5f8357
|
@ -28,8 +28,8 @@ android {
|
||||||
applicationId "org.mariotaku.twidere"
|
applicationId "org.mariotaku.twidere"
|
||||||
minSdkVersion 14
|
minSdkVersion 14
|
||||||
targetSdkVersion 24
|
targetSdkVersion 24
|
||||||
versionCode 200
|
versionCode 201
|
||||||
versionName "3.1.11"
|
versionName "3.1.12"
|
||||||
multiDexEnabled true
|
multiDexEnabled true
|
||||||
|
|
||||||
buildConfigField 'boolean', 'LEAK_CANARY_ENABLED', 'Boolean.parseBoolean("false")'
|
buildConfigField 'boolean', 'LEAK_CANARY_ENABLED', 'Boolean.parseBoolean("false")'
|
||||||
|
|
|
@ -213,6 +213,7 @@ public class UserProfileEditorFragment extends BaseSupportFragment implements On
|
||||||
final int backgroundColor = mBackgroundColor.getColor();
|
final int backgroundColor = mBackgroundColor.getColor();
|
||||||
mTask = new UpdateProfileTaskInternal(this, mAccountId, mUser, name, url, location,
|
mTask = new UpdateProfileTaskInternal(this, mAccountId, mUser, name, url, location,
|
||||||
description, linkColor, backgroundColor);
|
description, linkColor, backgroundColor);
|
||||||
|
mTask.setResultHandler(this);
|
||||||
TaskStarter.execute(mTask);
|
TaskStarter.execute(mTask);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
@ -522,7 +523,7 @@ public class UserProfileEditorFragment extends BaseSupportFragment implements On
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void afterExecute(UserProfileEditorFragment callback, SingleResponse<ParcelableUser> result) {
|
protected void afterExecute(@Nullable UserProfileEditorFragment callback, SingleResponse<ParcelableUser> result) {
|
||||||
super.afterExecute(callback, result);
|
super.afterExecute(callback, result);
|
||||||
if (result.hasData()) {
|
if (result.hasData()) {
|
||||||
final ParcelableAccount account = result.getExtras().getParcelable(EXTRA_ACCOUNT);
|
final ParcelableAccount account = result.getExtras().getParcelable(EXTRA_ACCOUNT);
|
||||||
|
@ -532,6 +533,7 @@ public class UserProfileEditorFragment extends BaseSupportFragment implements On
|
||||||
TaskStarter.execute(task);
|
TaskStarter.execute(task);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (callback != null) {
|
||||||
callback.executeAfterFragmentResumed(new Action() {
|
callback.executeAfterFragmentResumed(new Action() {
|
||||||
@Override
|
@Override
|
||||||
public void execute(IBaseFragment fragment) {
|
public void execute(IBaseFragment fragment) {
|
||||||
|
@ -543,6 +545,7 @@ public class UserProfileEditorFragment extends BaseSupportFragment implements On
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void beforeExecute() {
|
protected void beforeExecute() {
|
||||||
|
@ -575,7 +578,7 @@ public class UserProfileEditorFragment extends BaseSupportFragment implements On
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void afterExecute(UserProfileEditorFragment callback, final SingleResponse<Boolean> result) {
|
protected void afterExecute(@Nullable UserProfileEditorFragment callback, final SingleResponse<Boolean> result) {
|
||||||
super.afterExecute(callback, result);
|
super.afterExecute(callback, result);
|
||||||
if (result.getData() != null && result.getData()) {
|
if (result.getData() != null && result.getData()) {
|
||||||
getUserInfo();
|
getUserInfo();
|
||||||
|
|
Loading…
Reference in New Issue