MCPcopy Create free account
hub / github.com/FongMi/TV / onFile

Method onFile

app/src/main/java/com/fongmi/android/tv/server/process/Action.java:63–69  ·  view source on GitHub ↗
(Map<String, String> params)

Source from the content-addressed store, hash-verified

61 }
62
63 private void onFile(Map<String, String> params) {
64 String path = params.get("path");
65 if (TextUtils.isEmpty(path)) return;
66 if (path.endsWith(".apk")) FileUtil.openFile(Path.local(path));
67 else if (path.endsWith(".srt") || path.endsWith(".ssa") || path.endsWith(".ass")) RefreshEvent.subtitle(path);
68 else ServerEvent.setting(path);
69 }
70
71 private void onPush(Map<String, String> params) {
72 String url = params.get("url");

Callers 1

doJobMethod · 0.95

Calls 6

openFileMethod · 0.95
localMethod · 0.95
subtitleMethod · 0.95
settingMethod · 0.95
getMethod · 0.45
isEmptyMethod · 0.45

Tested by

no test coverage detected