mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-21 00:59:49 +01:00
Refactor FeatureFlags.
This commit is contained in:
@@ -36,7 +36,7 @@ object SlowNotificationHeuristics {
|
||||
private val TAG = Log.tag(SlowNotificationHeuristics::class.java)
|
||||
|
||||
fun getConfiguration(): Configuration {
|
||||
val json = FeatureFlags.delayedNotificationsPromptConfig()
|
||||
val json = FeatureFlags.delayedNotificationsPromptConfig
|
||||
return if (TextUtils.isEmpty(json)) {
|
||||
getDefaultConfiguration()
|
||||
} else {
|
||||
|
||||
@@ -41,7 +41,7 @@ object NotificationThumbnails {
|
||||
* specifics here, we'll just disable notification thumbnails for them.
|
||||
*/
|
||||
private val isBlocklisted by lazy {
|
||||
FeatureFlags.notificationThumbnailProductBlocklist().asListContains(Build.PRODUCT)
|
||||
FeatureFlags.notificationThumbnailProductBlocklist.asListContains(Build.PRODUCT)
|
||||
}
|
||||
|
||||
fun getWithoutModifying(notificationItem: NotificationItem): NotificationItem.ThumbnailInfo {
|
||||
|
||||
Reference in New Issue
Block a user