Address a bunch of compiler warnings.

None of these should change any behavior, they're all annotations and stuff.
This commit is contained in:
Nicholas Tinsley
2023-05-26 10:17:10 -04:00
committed by Cody Henthorne
parent de4c6ab7b7
commit a9a91e3162
5 changed files with 22 additions and 13 deletions

View File

@@ -68,6 +68,7 @@ public class BitmapUtil {
* @deprecated You probably want to use {@link ImageCompressionUtil} instead, which has a clearer
* contract and handles mimetypes properly.
*/
@Deprecated
@WorkerThread
public static <T> ScaleResult createScaledBytes(@NonNull Context context,
@NonNull T model,
@@ -83,6 +84,7 @@ public class BitmapUtil {
* @deprecated You probably want to use {@link ImageCompressionUtil} instead, which has a clearer
* contract and handles mimetypes properly.
*/
@Deprecated
@WorkerThread
public static <T> ScaleResult createScaledBytes(Context context,
T model,

View File

@@ -39,6 +39,7 @@ import java.util.concurrent.atomic.AtomicBoolean;
*
* @deprecated Use a PublishSubject or PublishProcessor instead.
*/
@Deprecated
public class SingleLiveEvent<T> extends MutableLiveData<T> {
private static final String TAG = Log.tag(SingleLiveEvent.class);

View File

@@ -507,6 +507,7 @@ public class TextSecurePreferences {
/**
* @deprecated Use {@link SettingsValues#getMessageFontSize()} via {@link org.thoughtcrime.securesms.keyvalue.SignalStore} instead.
*/
@Deprecated
public static int getMessageBodyTextSize(Context context) {
return Integer.parseInt(getStringPreference(context, MESSAGE_BODY_TEXT_SIZE_PREF, "16"));
}
@@ -783,6 +784,7 @@ public class TextSecurePreferences {
/**
* @deprecated Use {@link SettingsValues#getTheme()} via {@link org.thoughtcrime.securesms.keyvalue.SignalStore} instead.
*/
@Deprecated
public static String getTheme(Context context) {
return getStringPreference(context, THEME_PREF, DynamicTheme.systemThemeAvailable() ? "system" : "light");
}
@@ -806,6 +808,7 @@ public class TextSecurePreferences {
/**
* @deprecated Use {@link SettingsValues#getLanguage()} via {@link org.thoughtcrime.securesms.keyvalue.SignalStore} instead.
*/
@Deprecated
public static String getLanguage(Context context) {
return getStringPreference(context, LANGUAGE_PREF, "zz");
}
@@ -813,6 +816,7 @@ public class TextSecurePreferences {
/**
* @deprecated Use {@link SettingsValues#setLanguage(String)} via {@link org.thoughtcrime.securesms.keyvalue.SignalStore} instead.
*/
@Deprecated
public static void setLanguage(Context context, String language) {
setStringPreference(context, LANGUAGE_PREF, language);
}