4 Commits

Author SHA1 Message Date
Felix Ableitner f447e1ecad Version 0.1.1 2017-12-27 02:32:19 +09:00
Felix Ableitner ee9098b4f1 Fix crash on initial start (fixes #5) 2017-12-27 02:31:47 +09:00
Felix Ableitner f378329da3 Added graphics 2017-12-27 00:25:52 +09:00
Felix Ableitner 0caec11826 Added google play link (fixes #3) 2017-12-22 01:43:46 +09:00
6 changed files with 8 additions and 8 deletions
+2
View File
@@ -13,6 +13,8 @@ example, mobile devices with limited storage available, wishing to access a sync
This project is based on [syncthing-java][3], a java implementation of Syncthing protocols.
[<img alt="Get it on Google Play" src="https://play.google.com/intl/en_us/badges/images/generic/en_badge_web_generic.png" height="80">](https://play.google.com/store/apps/details?id=net.syncthing.lite)
## Building
The project uses a standard Android build, and requires the Android SDK. The easiest option is if
+2 -2
View File
@@ -10,8 +10,8 @@ android {
applicationId "net.syncthing.lite"
minSdkVersion 19
targetSdkVersion 25
versionCode 2
versionName "0.1"
versionCode 3
versionName "0.1.1"
multiDexEnabled true
}
sourceSets {
@@ -89,14 +89,12 @@ abstract class SyncthingActivity : AppCompatActivity() {
}
})
//trigger update if last was more than 10mins ago
val lastUpdateMillis = PreferenceManager.getDefaultSharedPreferences(context)
.getLong(UpdateIndexTask.LAST_INDEX_UPDATE_TS_PREF, -1)
val lastUpdate =
if (lastUpdateMillis < 0) null
else Date(lastUpdateMillis)
//trigger update if last was more than 10mins ago
if (lastUpdate == null || Date().time - lastUpdate.time > 10 * 60 * 1000) {
Log.d(TAG, "trigger index update, last was " + lastUpdate!!)
val lastUpdateTimeAgo = Date().time - lastUpdateMillis
if (lastUpdateMillis == -1L || lastUpdateTimeAgo > 10 * 60 * 1000) {
Log.d(TAG, "trigger index update, last was " + Date(lastUpdateMillis))
UpdateIndexTask(context, libraryHandler!!.syncthingClient!!).updateIndex()
}
onLibraryLoaded()

Before

Width:  |  Height:  |  Size: 32 KiB

After

Width:  |  Height:  |  Size: 32 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 34 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB