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
add bunch of new java APIs: mostly stubs or copied from AOSP
Many of these classes are only needed to be subclassed by androidx support library, which is used in many android apps
This commit is contained in:
@@ -6,6 +6,7 @@ import android.app.Application;
|
||||
import android.app.KeyguardManager;
|
||||
import android.app.NotificationManager;
|
||||
import android.app.SharedPreferencesImpl;
|
||||
import android.app.UiModeManager;
|
||||
import android.content.BroadcastReceiver;
|
||||
import android.content.ClipboardManager;
|
||||
import android.content.Intent;
|
||||
@@ -165,6 +166,8 @@ public class Context extends Object {
|
||||
return new InputManager();
|
||||
case "location":
|
||||
return new LocationManager();
|
||||
case "uimode":
|
||||
return new UiModeManager();
|
||||
default:
|
||||
System.out.println("!!!!!!! getSystemService: case >" + name + "< is not implemented yet");
|
||||
return null;
|
||||
@@ -348,4 +351,8 @@ public class Context extends Object {
|
||||
public void setTheme(int resId) {
|
||||
theme.applyStyle(resId, true);
|
||||
}
|
||||
|
||||
public final CharSequence getText(int resId) {
|
||||
return getResources().getText(resId);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user