mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-04 19:10:43 +00:00
Add user status string resources and PredefinedUserStatus enum
This commit is contained in:
+19
@@ -0,0 +1,19 @@
|
|||||||
|
/*
|
||||||
|
* Copyright (c) 2026 Element Creations Ltd.
|
||||||
|
*
|
||||||
|
* SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial.
|
||||||
|
* Please see LICENSE files in the repository root for full details.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package io.element.android.features.preferences.impl.userstatus
|
||||||
|
|
||||||
|
import androidx.annotation.StringRes
|
||||||
|
import io.element.android.features.preferences.impl.R
|
||||||
|
|
||||||
|
enum class PredefinedUserStatus(val emoji: String, @StringRes val labelRes: Int) {
|
||||||
|
IN_A_MEETING("💬", R.string.common_user_status_in_a_meeting),
|
||||||
|
FOCUS_TIME("💡", R.string.common_user_status_focus_time),
|
||||||
|
ON_THE_ROAD("🚙", R.string.common_user_status_on_the_road),
|
||||||
|
BE_RIGHT_BACK("☕", R.string.common_user_status_be_right_back),
|
||||||
|
AWAY("🌴", R.string.common_user_status_away),
|
||||||
|
}
|
||||||
@@ -0,0 +1,18 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!--
|
||||||
|
~ Copyright (c) 2026 Element Creations Ltd.
|
||||||
|
~
|
||||||
|
~ SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial.
|
||||||
|
~ Please see LICENSE files in the repository root for full details.
|
||||||
|
-->
|
||||||
|
<resources>
|
||||||
|
<string name="common_user_status_in_a_meeting">In a meeting</string>
|
||||||
|
<string name="common_user_status_focus_time">Focus time</string>
|
||||||
|
<string name="common_user_status_on_the_road">On the road</string>
|
||||||
|
<string name="common_user_status_be_right_back">Be right back</string>
|
||||||
|
<string name="common_user_status_away">Away</string>
|
||||||
|
<string name="common_user_status_on_a_call">On a call</string>
|
||||||
|
<string name="common_user_status_custom">Custom…</string>
|
||||||
|
<string name="screen_preferences_user_status_placeholder">What\'s your status?</string>
|
||||||
|
<string name="screen_preferences_user_status_custom_hint">Custom status…</string>
|
||||||
|
</resources>
|
||||||
Reference in New Issue
Block a user