fixed crash docs

This commit is contained in:
gdlbo
2022-06-10 21:49:12 +03:00
parent 1f24d32109
commit 0e81ba31cb
2 changed files with 7 additions and 7 deletions
@@ -17,6 +17,7 @@ import static ru.vtosters.lite.utils.OpusLoader.LoadLibrary;
import static ru.vtosters.lite.utils.Proxy.setProxy;
import static ru.vtosters.lite.utils.Themes.systemThemeChanger;
import android.annotation.SuppressLint;
import android.app.Application;
import android.content.Context;
import android.content.SharedPreferences;
@@ -390,6 +391,11 @@ public class Preferences {
}
}
@SuppressLint("SimpleDateFormat")
public static SimpleDateFormat setDateFormat() {
return new SimpleDateFormat(getDateFormat());
}
public static String getFormattedDate(UserSex type, long time){
SimpleDateFormat date = new SimpleDateFormat(getDateFormat(), Locale.getDefault());