Bug fixed
Added kakaotalk contact
This commit is contained in:
@@ -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))))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user