Bug fixed

Added kakaotalk contact
This commit is contained in:
tom5079
2019-06-09 15:30:01 +09:00
parent 91157155b8
commit 79641fec67
10 changed files with 30 additions and 8 deletions

View File

@@ -331,6 +331,9 @@ class MainActivity : AppCompatActivity() {
R.id.main_drawer_email -> {
startActivity(Intent(Intent.ACTION_VIEW, Uri.parse(getString(R.string.email))))
}
R.id.main_drawer_kakaotalk -> {
startActivity(Intent(Intent.ACTION_VIEW, Uri.parse(getString(R.string.kakaotalk))))
}
}
}

View File

@@ -44,15 +44,10 @@ class GalleryDownloader(
field = true
notificationManager.notify(galleryBlock.id, notificationBuilder.build())
val data = File(Environment.getExternalStorageDirectory(), "Pupil/${galleryBlock.id} ${galleryBlock.title}").let {
when {
it.exists() -> it
else -> File(Environment.getExternalStorageDirectory(), "Pupil/${galleryBlock.id}")
}
}
val data = getCachedGallery(this, galleryBlock.id)
val cache = File(cacheDir, "imageCache/${galleryBlock.id}")
if (cache.exists() && !data.exists()) {
if (File(cache, "images").exists() && !data.exists()) {
cache.copyRecursively(data, true)
cache.deleteRecursively()
}