mirror of
https://github.com/nextcloud/talk-android
synced 2025-06-21 12:39:58 +01:00
Theme info messages primary color
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
This commit is contained in:
parent
34d6da68a1
commit
46f6e729a1
@ -562,7 +562,9 @@ class SettingsController : NewBaseController(R.layout.controller_settings) {
|
|||||||
if (ApplicationWideMessageHolder.getInstance().messageType != null) {
|
if (ApplicationWideMessageHolder.getInstance().messageType != null) {
|
||||||
when (ApplicationWideMessageHolder.getInstance().messageType) {
|
when (ApplicationWideMessageHolder.getInstance().messageType) {
|
||||||
ApplicationWideMessageHolder.MessageType.ACCOUNT_UPDATED_NOT_ADDED -> {
|
ApplicationWideMessageHolder.MessageType.ACCOUNT_UPDATED_NOT_ADDED -> {
|
||||||
binding.messageText.setTextColor(resources!!.getColor(R.color.colorPrimary))
|
binding.messageText.setTextColor(
|
||||||
|
viewThemeUtils.getScheme(binding.messageText.context).primary
|
||||||
|
)
|
||||||
binding.messageText.text = resources!!.getString(R.string.nc_settings_account_updated)
|
binding.messageText.text = resources!!.getString(R.string.nc_settings_account_updated)
|
||||||
binding.messageView.visibility = View.VISIBLE
|
binding.messageView.visibility = View.VISIBLE
|
||||||
}
|
}
|
||||||
@ -571,13 +573,17 @@ class SettingsController : NewBaseController(R.layout.controller_settings) {
|
|||||||
binding.messageText.setTextColor(resources!!.getColor(R.color.nc_darkRed))
|
binding.messageText.setTextColor(resources!!.getColor(R.color.nc_darkRed))
|
||||||
binding.messageText.text = resources!!.getString(R.string.nc_settings_wrong_account)
|
binding.messageText.text = resources!!.getString(R.string.nc_settings_wrong_account)
|
||||||
binding.messageView.visibility = View.VISIBLE
|
binding.messageView.visibility = View.VISIBLE
|
||||||
binding.messageText.setTextColor(resources!!.getColor(R.color.colorPrimary))
|
binding.messageText.setTextColor(
|
||||||
|
viewThemeUtils.getScheme(binding.messageText.context).primary
|
||||||
|
)
|
||||||
binding.messageText.text = resources!!.getString(R.string.nc_Server_account_imported)
|
binding.messageText.text = resources!!.getString(R.string.nc_Server_account_imported)
|
||||||
binding.messageView.visibility = View.VISIBLE
|
binding.messageView.visibility = View.VISIBLE
|
||||||
}
|
}
|
||||||
|
|
||||||
ApplicationWideMessageHolder.MessageType.ACCOUNT_WAS_IMPORTED -> {
|
ApplicationWideMessageHolder.MessageType.ACCOUNT_WAS_IMPORTED -> {
|
||||||
binding.messageText.setTextColor(resources!!.getColor(R.color.colorPrimary))
|
binding.messageText.setTextColor(
|
||||||
|
viewThemeUtils.getScheme(binding.messageText.context).primary
|
||||||
|
)
|
||||||
binding.messageText.text = resources!!.getString(R.string.nc_Server_account_imported)
|
binding.messageText.text = resources!!.getString(R.string.nc_Server_account_imported)
|
||||||
binding.messageView.visibility = View.VISIBLE
|
binding.messageView.visibility = View.VISIBLE
|
||||||
}
|
}
|
||||||
|
@ -346,6 +346,7 @@ public class NotificationWorker extends Worker {
|
|||||||
if (Build.VERSION.SDK_INT >= 23) {
|
if (Build.VERSION.SDK_INT >= 23) {
|
||||||
// This method should exist since API 21, but some phones don't have it
|
// This method should exist since API 21, but some phones don't have it
|
||||||
// So as a safeguard, we don't use it until 23
|
// So as a safeguard, we don't use it until 23
|
||||||
|
|
||||||
notificationBuilder.setColor(context.getResources().getColor(R.color.colorPrimary));
|
notificationBuilder.setColor(context.getResources().getColor(R.color.colorPrimary));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user