mirror of
https://github.com/encounter/engine.git
synced 2026-03-30 11:09:55 -07:00
Remove old methods from Activity mojom interface after they were moved.
This is part 3 of my 3 part change to add the udpater sky package.
This commit is contained in:
@@ -56,10 +56,6 @@ interface Activity {
|
||||
SetTaskDescription(TaskDescription description);
|
||||
SetSystemUIVisibility(SystemUiVisibility visibility);
|
||||
SetRequestedOrientation(ScreenOrientation orientation);
|
||||
|
||||
// TODO(mpcomplete): moving to PathService. Remove these.
|
||||
GetFilesDir() => (string path);
|
||||
GetCacheDir() => (string path);
|
||||
};
|
||||
|
||||
interface PathService {
|
||||
|
||||
@@ -159,20 +159,4 @@ public class ActivityImpl implements Activity {
|
||||
|
||||
sCurrentActivity.setRequestedOrientation(androidOrientation);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void getFilesDir(GetFilesDirResponse callback) {
|
||||
String path = null;
|
||||
if (sCurrentActivity != null)
|
||||
path = sCurrentActivity.getFilesDir().getPath();
|
||||
callback.call(path);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void getCacheDir(GetCacheDirResponse callback) {
|
||||
String path = null;
|
||||
if (sCurrentActivity != null)
|
||||
path = sCurrentActivity.getCacheDir().getPath();
|
||||
callback.call(path);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user