Changed test URL to default URL

This commit is contained in:
Deniz Düzgören
2019-07-30 17:33:55 +02:00
parent b82f595bdf
commit c53e9ce391
2 changed files with 4 additions and 2 deletions
@@ -135,7 +135,7 @@ class DataFetcher(isplan: Boolean, ismenu: Boolean, isjobservice: Boolean, conte
if (plan) { if (plan) {
val substViewModel = SubstViewModel(mApplication) val substViewModel = SubstViewModel(mApplication)
val doc = Jsoup.connect("https://djd4rkn355.github.io/subst_test").get() val doc = Jsoup.connect("https://djd4rkn355.github.io/subst.html").get()
currentTime = doc.select("h1")[0].text() currentTime = doc.select("h1")[0].text()
if (currentTime != prefs.getString("time", "")) { if (currentTime != prefs.getString("time", "")) {
val rows = doc.select("tr") val rows = doc.select("tr")
@@ -51,7 +51,9 @@ class Main : AppCompatActivity(R.layout.app_bar_main) {
edit.putInt("launchDev", prefs.getInt("launchDev", 0) + 1) edit.putInt("launchDev", prefs.getInt("launchDev", 0) + 1)
edit.apply() edit.apply()
notificationJob() if (prefs.getBoolean("notif", true)) {
notificationJob()
}
val handler = Handler() val handler = Handler()