1
0
mirror of https://github.com/tateisu/SubwayTooter synced 2024-12-27 17:32:54 +01:00

添付メディアの説明文を設定する時にUIスレッド絡みのエラーがでるのを修正

This commit is contained in:
tateisu 2017-10-19 07:34:15 +09:00
parent f9f0352d82
commit 6a5438ba67
2 changed files with 9 additions and 4 deletions

View File

@ -9,8 +9,8 @@ android {
applicationId "jp.juggler.subwaytooter"
minSdkVersion 21
targetSdkVersion 26
versionCode 170
versionName "1.7.0"
versionCode 171
versionName "1.7.1"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}

View File

@ -1026,8 +1026,13 @@ public class ActPost extends AppCompatActivity implements View.OnClickListener,
return isCancelled();
}
@Override public void publishApiProgress( String s ){
progress.setMessage( s );
@Override public void publishApiProgress( final String s ){
Utils.runOnMainThread( new Runnable() {
@Override public void run(){
progress.setMessage( s );
}
} );
}
} );
client.setAccount( target_account );