|
@@ -80,8 +80,6 @@ import com.owncloud.android.ui.fragment.OCFileListFragment;
|
|
|
import com.owncloud.android.utils.glide.CustomGlideUriLoader;
|
|
|
import com.owncloud.android.utils.svg.SvgDecoder;
|
|
|
import com.owncloud.android.utils.svg.SvgDrawableTranscoder;
|
|
|
-import com.owncloud.android.utils.theme.ThemeColorUtils;
|
|
|
-import com.owncloud.android.utils.theme.ThemeDrawableUtils;
|
|
|
import com.owncloud.android.utils.theme.newm3.ViewThemeUtils;
|
|
|
|
|
|
import org.greenrobot.eventbus.EventBus;
|
|
@@ -128,7 +126,6 @@ public final class DisplayUtils {
|
|
|
|
|
|
private static final String[] sizeSuffixes = {"B", "KB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"};
|
|
|
private static final int[] sizeScales = {0, 0, 1, 1, 1, 2, 2, 2, 2};
|
|
|
- private static final int RELATIVE_THRESHOLD_WARNING = 80;
|
|
|
private static final String MIME_TYPE_UNKNOWN = "Unknown type";
|
|
|
|
|
|
private static final String HTTP_PROTOCOL = "http://";
|
|
@@ -337,22 +334,6 @@ public final class DisplayUtils {
|
|
|
showFuture);
|
|
|
}
|
|
|
|
|
|
-
|
|
|
- /**
|
|
|
- * determines the info level color based on {@link #RELATIVE_THRESHOLD_WARNING}.
|
|
|
- *
|
|
|
- * @param context the app's context
|
|
|
- * @param relative relative value for which the info level color should be looked up
|
|
|
- * @return info level color
|
|
|
- */
|
|
|
- public static int getRelativeInfoColor(Context context, int relative, ThemeColorUtils themeColorUtils) {
|
|
|
- if (relative < RELATIVE_THRESHOLD_WARNING) {
|
|
|
- return themeColorUtils.primaryColor(context, true);
|
|
|
- } else {
|
|
|
- return context.getResources().getColor(R.color.infolevel_warning);
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
public static CharSequence getRelativeDateTimeString(Context c, long time, long minResolution,
|
|
|
long transitionResolution, int flags) {
|
|
|
return getRelativeDateTimeString(c, time, minResolution, transitionResolution, flags, false);
|