Merge branch 'dev' of https://github.com/rebelonion/Dantotsu into dev
This commit is contained in:
commit
1c736640b2
2 changed files with 24 additions and 1 deletions
|
@ -147,6 +147,7 @@ class SettingsAccountActivity : AppCompatActivity() {
|
|||
"online" -> R.drawable.discord_status_online
|
||||
"idle" -> R.drawable.discord_status_idle
|
||||
"dnd" -> R.drawable.discord_status_dnd
|
||||
"invisible" -> R.drawable.discord_status_invisible
|
||||
else -> R.drawable.discord_status_online
|
||||
}
|
||||
settingsImageSwitcher.setImageResource(initialStatus)
|
||||
|
@ -167,6 +168,11 @@ class SettingsAccountActivity : AppCompatActivity() {
|
|||
}
|
||||
|
||||
R.drawable.discord_status_dnd -> {
|
||||
status = "invisible"
|
||||
R.drawable.discord_status_invisible
|
||||
}
|
||||
|
||||
R.drawable.discord_status_invisible -> {
|
||||
status = "online"
|
||||
R.drawable.discord_status_online
|
||||
}
|
||||
|
@ -198,4 +204,4 @@ class SettingsAccountActivity : AppCompatActivity() {
|
|||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
17
app/src/main/res/drawable/discord_status_invisible.xml
Normal file
17
app/src/main/res/drawable/discord_status_invisible.xml
Normal file
|
@ -0,0 +1,17 @@
|
|||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="24dp"
|
||||
android:height="24dp"
|
||||
android:viewportWidth="24"
|
||||
android:viewportHeight="24">
|
||||
|
||||
<group
|
||||
android:scaleX="0.8"
|
||||
android:scaleY="0.8"
|
||||
android:pivotX="12"
|
||||
android:pivotY="12">
|
||||
<path
|
||||
android:strokeColor="#81848f"
|
||||
android:strokeWidth="6"
|
||||
android:pathData="M12,2C6.47,2 2,6.47 2,12s4.47,10 10,10 10,-4.47 10,-10S17.53,2 12,2z" />
|
||||
</group>
|
||||
</vector>
|
Loading…
Add table
Add a link
Reference in a new issue