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
src/api-impl: add misc stubs, fix indentation
This commit is contained in:
@@ -3,6 +3,7 @@ package android.app;
|
|||||||
import android.content.Context;
|
import android.content.Context;
|
||||||
import android.content.ComponentName;
|
import android.content.ComponentName;
|
||||||
import android.content.Intent;
|
import android.content.Intent;
|
||||||
|
import android.content.res.Configuration;
|
||||||
import android.os.Bundle;
|
import android.os.Bundle;
|
||||||
|
|
||||||
import android.widget.TextView;
|
import android.widget.TextView;
|
||||||
@@ -116,6 +117,15 @@ public class Activity extends Context {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected void onSaveInstanceState(Bundle outState) {
|
||||||
|
}
|
||||||
|
|
||||||
|
void onConfigurationChanged(Configuration newConfig) {
|
||||||
|
}
|
||||||
|
|
||||||
|
public void onLowMemory() {
|
||||||
|
}
|
||||||
|
|
||||||
/* --- */
|
/* --- */
|
||||||
|
|
||||||
public void setContentView(int layoutResID) throws Exception {
|
public void setContentView(int layoutResID) throws Exception {
|
||||||
|
|||||||
@@ -47,6 +47,7 @@ public class Context extends Object {
|
|||||||
File data_dir = null;
|
File data_dir = null;
|
||||||
File prefs_dir = null;
|
File prefs_dir = null;
|
||||||
File files_dir = null;
|
File files_dir = null;
|
||||||
|
File obb_dir = null;
|
||||||
File cache_dir = null;
|
File cache_dir = null;
|
||||||
|
|
||||||
static {
|
static {
|
||||||
@@ -162,6 +163,17 @@ public class Context extends Object {
|
|||||||
return files_dir;
|
return files_dir;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public File getExternalFilesDir(String type) {
|
||||||
|
return getFilesDir();
|
||||||
|
}
|
||||||
|
|
||||||
|
public File getObbDir() {
|
||||||
|
if (obb_dir == null) {
|
||||||
|
obb_dir = new File(getDataDirFile(), "obb");
|
||||||
|
}
|
||||||
|
return obb_dir;
|
||||||
|
}
|
||||||
|
|
||||||
// FIXME: should be something like /tmp/cache, but may need to create that directory
|
// FIXME: should be something like /tmp/cache, but may need to create that directory
|
||||||
public File getCacheDir() {
|
public File getCacheDir() {
|
||||||
if (cache_dir == null) {
|
if (cache_dir == null) {
|
||||||
|
|||||||
Reference in New Issue
Block a user