diff options
| author | Andrew Dolgov <fox@fakecake.org> | 2026-08-01 23:35:28 +0300 |
|---|---|---|
| committer | Andrew Dolgov <fox@fakecake.org> | 2026-08-01 23:35:28 +0300 |
| commit | 24fb8fc4f3a653214e9f40ae530e781425e22cc9 (patch) | |
| tree | 54c28b35ee589af56869ee56b08c81a429c8b3db /org.fox.epube | |
| parent | 12d04f1f6b933a6f44163ee9ddbfce0bf1a10566 (diff) | |
| download | the-epube-android-dev.tar.gz the-epube-android-dev.tar.xz | |
fix hardcoded endpoints for refactored Epube dev
Diffstat (limited to 'org.fox.epube')
| -rw-r--r-- | org.fox.epube/src/main/java/org/fox/epube/MasterActivity.java | 10 | ||||
| -rw-r--r-- | org.fox.epube/src/main/res/values/strings.xml | 2 |
2 files changed, 6 insertions, 6 deletions
diff --git a/org.fox.epube/src/main/java/org/fox/epube/MasterActivity.java b/org.fox.epube/src/main/java/org/fox/epube/MasterActivity.java index 0300f9b..4b3abbb 100644 --- a/org.fox.epube/src/main/java/org/fox/epube/MasterActivity.java +++ b/org.fox.epube/src/main/java/org/fox/epube/MasterActivity.java @@ -399,23 +399,23 @@ public class MasterActivity extends AppCompatActivity implements NetworkStateRec m_web.evaluateJavascript("Reader.close();", null); return true; } else if (itemId == R.id.library_favorites) { - m_web.loadUrl(m_baseUrl + "/index.php?mode=favorites"); + m_web.loadUrl(m_baseUrl + "/index.html?mode=favorites"); return true; } else if (itemId == R.id.library_all) { - m_web.loadUrl(m_baseUrl + "/index.php"); + m_web.loadUrl(m_baseUrl + "/index.html"); return true; } else if (itemId == R.id.library_local || itemId == R.id.library_local_offline) { m_web.loadUrl(m_baseUrl + "/offline.html"); return true; } else if (itemId == R.id.refresh_script_cache) { m_web.clearCache(true); - m_web.evaluateJavascript("App.refreshCache(true);", null); + m_web.evaluateJavascript("window.location.reload();", null); return true; } else if (itemId == R.id.favorites_download_all) { - m_web.evaluateJavascript("App.Offline.getAll();", null); + m_web.evaluateJavascript("App.getAll();", null); return true; } else if (itemId == R.id.offline_remove_all) { - m_web.evaluateJavascript("App.Offline.removeAll();", null); + m_web.evaluateJavascript("App.removeAll();", null); return true; } else if (itemId == R.id.reader_search) { showActionBar(false); diff --git a/org.fox.epube/src/main/res/values/strings.xml b/org.fox.epube/src/main/res/values/strings.xml index 95a4153..3c76cba 100644 --- a/org.fox.epube/src/main/res/values/strings.xml +++ b/org.fox.epube/src/main/res/values/strings.xml @@ -3,7 +3,7 @@ <string name="page_favorites">Favorites</string> <string name="page_downloaded">Downloaded</string> <string name="page_all_books">All books</string> - <string name="refresh_script_cache">Refresh script cache</string> + <string name="refresh_script_cache">Reload page</string> <string name="logout">Logout</string> <string name="download_all">Download all</string> <string name="remove_all_downloads">Remove all downloads</string> |
