pull/1/head
SDL 4 years ago
parent e810604773
commit b9b2ce1035
  1. 2
      app/src/main/java/com/github/tvbox/osc/ui/dialog/ApiDialog.java

@ -54,6 +54,8 @@ public class ApiDialog extends BaseDialog {
ArrayList<String> history = Hawk.get(HawkConfig.API_HISTORY, new ArrayList<String>());
if (!history.contains(newApi))
history.add(0, newApi);
if (history.size() > 10)
history.remove(10);
Hawk.put(HawkConfig.API_HISTORY, history);
listener.onchange(newApi);
}

Loading…
Cancel
Save