Revert "Fix dynamic language override for app context."

This reverts commit 75a19ada23f4fc0d5111fb74d234c7c6f48ba503.
This commit is contained in:
Rashad Sookram
2022-01-21 18:11:49 -05:00
committed by Greyson Parrelli
parent 78acc485fc
commit 35d0f1fc8c
25 changed files with 74 additions and 76 deletions

View File

@@ -1,7 +1,6 @@
package org.thoughtcrime.securesms.dependencies;
import android.app.Application;
import android.content.Context;
import androidx.annotation.MainThread;
import androidx.annotation.NonNull;
@@ -43,9 +42,8 @@ import org.thoughtcrime.securesms.util.EarlyMessageCache;
import org.thoughtcrime.securesms.util.FrameRateTracker;
import org.thoughtcrime.securesms.util.Hex;
import org.thoughtcrime.securesms.util.IasKeyStore;
import org.thoughtcrime.securesms.util.dynamiclanguage.DynamicLanguageContextWrapper;
import org.thoughtcrime.securesms.video.exo.GiphyMp4Cache;
import org.thoughtcrime.securesms.video.exo.SimpleExoPlayerPool;
import org.thoughtcrime.securesms.video.exo.GiphyMp4Cache;
import org.thoughtcrime.securesms.webrtc.audio.AudioManagerCompat;
import org.whispersystems.signalservice.api.KeyBackupService;
import org.whispersystems.signalservice.api.SignalServiceAccountManager;
@@ -71,7 +69,7 @@ public class ApplicationDependencies {
private static final Object FRAME_RATE_TRACKER_LOCK = new Object();
private static final Object JOB_MANAGER_LOCK = new Object();
private static Context application;
private static Application application;
private static Provider provider;
private static AppForegroundObserver appForegroundObserver;
@@ -134,14 +132,10 @@ public class ApplicationDependencies {
return ApplicationDependencies.application != null;
}
public static @NonNull Context getApplication() {
public static @NonNull Application getApplication() {
return application;
}
public static void updateApplicationLanguage() {
application = DynamicLanguageContextWrapper.getUpdatedApplicationContext(application);
}
public static @NonNull SignalServiceAccountManager getSignalServiceAccountManager() {
SignalServiceAccountManager local = accountManager;