mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-22 09:49:30 +01:00
Dynamically respond to notificationsV2 feature flag.
We were only reading it once, possibly before the flags were initialized. This lets us be more responsive to the flag changing within an application cycle.
This commit is contained in:
@@ -186,14 +186,7 @@ public class ApplicationDependencyProvider implements ApplicationDependencies.Pr
|
||||
|
||||
@Override
|
||||
public @NonNull MessageNotifier provideMessageNotifier() {
|
||||
MessageNotifier inner;
|
||||
if (FeatureFlags.useNewNotificationSystem()) {
|
||||
inner = new MessageNotifierV2();
|
||||
} else {
|
||||
inner = new DefaultMessageNotifier();
|
||||
}
|
||||
|
||||
return new OptimizedMessageNotifier(inner);
|
||||
return new OptimizedMessageNotifier();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user