-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10 from nijuyonkadesu/share-and-download
Share and download
- Loading branch information
Showing
10 changed files
with
181 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,16 @@ | ||
package one.njk.sao | ||
|
||
import android.app.Application | ||
import coil.ImageLoader | ||
import coil.ImageLoaderFactory | ||
import coil.decode.ImageDecoderDecoder | ||
import com.google.android.material.color.DynamicColors | ||
import dagger.hilt.android.HiltAndroidApp | ||
|
||
@Volatile | ||
lateinit var operatingMode: CarouselFragment.OperatingMode | ||
@HiltAndroidApp | ||
class SaoApplication: Application(), ImageLoaderFactory { | ||
class SaoApplication: Application() { | ||
override fun onCreate() { | ||
super.onCreate() | ||
DynamicColors.applyToActivitiesIfAvailable(this) | ||
} | ||
|
||
// customizing factory class to add GIF Decoder, context.ImageLoader is a singleton | ||
// we obtain from this factory class [see BindingAdapter.kt] | ||
override fun newImageLoader(): ImageLoader { | ||
return ImageLoader.Builder(applicationContext) | ||
.components { | ||
add(ImageDecoderDecoder.Factory()) | ||
}.build() | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<paths> | ||
<cache-path | ||
name="share_cache" | ||
path="share_cache/" /> | ||
</paths> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters