1
0
mirror of https://github.com/tateisu/SubwayTooter synced 2025-01-15 19:00:45 +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" applicationId "jp.juggler.subwaytooter"
minSdkVersion 21 minSdkVersion 21
targetSdkVersion 26 targetSdkVersion 26
versionCode 170 versionCode 171
versionName "1.7.0" versionName "1.7.1"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
} }

View File

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