You've already forked android_translation_layer
mirror of
https://gitlab.com/android_translation_layer/android_translation_layer.git
synced 2025-10-27 11:48:10 -07:00
implement some APIs needed for OctoDroid
This commit is contained in:
@@ -62,7 +62,7 @@ public class TextUtils {
|
||||
}
|
||||
|
||||
public static boolean isEmpty(CharSequence str) {
|
||||
return str == null || str.equals("");
|
||||
return str == null || str.length() == 0;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
10
src/api-impl/android/text/format/Formatter.java
Normal file
10
src/api-impl/android/text/format/Formatter.java
Normal 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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user