引っ越ししたアカウントのプロフを見て閉じて別のプロフを開くと余計なメッセージが残っているバグを修正

This commit is contained in:
tateisu 2018-02-16 16:52:20 +09:00
parent 642a74d3cd
commit f3c134f52b
3 changed files with 7 additions and 7 deletions

View File

@ -24,7 +24,7 @@
</value>
</option>
</component>
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_7" default="true" project-jdk-name="1.8" project-jdk-type="JavaSDK">
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" default="true" project-jdk-name="1.8" project-jdk-type="JavaSDK">
<output url="file://$PROJECT_DIR$/build/classes" />
</component>
<component name="ProjectType">

View File

@ -12,8 +12,8 @@ android {
minSdkVersion 21
targetSdkVersion 27
versionCode 218
versionName "2.1.8"
versionCode 219
versionName "2.1.9"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"

View File

@ -135,7 +135,7 @@ internal class ViewHolderHeaderProfile(
showColor()
llMoved.visibility = View.GONE
tvMovedAcct.visibility = View.GONE
tvMoved.visibility = View.GONE
if(who == null) {
tvCreated.text = ""
@ -223,7 +223,7 @@ internal class ViewHolderHeaderProfile(
activity,
R.string.account_moved_to
)
tvMoved.text = caption
moved_caption_invalidator.register(caption)
@ -349,9 +349,9 @@ internal class ViewHolderHeaderProfile(
override fun onViewRecycled() {
}
fun updateRelativeTime(){
fun updateRelativeTime() {
val who = this.who
if( who != null ) {
if(who != null) {
tvCreated.text = TootStatus.formatTime(tvCreated.context, who.time_created_at, true)
}
}