implement some APIs needed for OctoDroid

This commit is contained in:
Julian Winkler
2024-03-29 23:56:28 +01:00
parent 0352a307b9
commit 2f4cd3917f
36 changed files with 329 additions and 25 deletions

View File

@@ -62,7 +62,7 @@ public class TextUtils {
}
public static boolean isEmpty(CharSequence str) {
return str == null || str.equals("");
return str == null || str.length() == 0;
}
/**

View File

@@ -0,0 +1,10 @@
package android.text.format;
import android.content.Context;
public class Formatter {
public static String formatShortFileSize(Context context, long size) {
return String.valueOf(size);
}
}