Removing few unused resources

This commit is contained in:
Oupson 2020-12-06 22:49:56 +01:00
parent 0ee959ee7a
commit f977ff9445
7 changed files with 3 additions and 16 deletions

View File

@ -1,4 +1,5 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android" <manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="oupson.apng"> package="oupson.apng">
<!-- TODO REMOVE -->
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/> <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
</manifest> </manifest>

View File

@ -46,7 +46,7 @@ class APNGDisassembler {
if (isApng(byteArray)) { if (isApng(byteArray)) {
var cursor = 8 var cursor = 8
while (cursor < byteArray.size) { while (cursor < byteArray.size) {
val length = uIntFromBytesBigEndian(byteArray.copyOfRange(cursor, cursor + 4).map { it -> it.toInt() }) val length = uIntFromBytesBigEndian(byteArray.copyOfRange(cursor, cursor + 4).map { it.toInt() })
val chunk = byteArray.copyOfRange(cursor, cursor + length + 12) val chunk = byteArray.copyOfRange(cursor, cursor + length + 12)
parseChunk(chunk) parseChunk(chunk)
cursor += length + 12 cursor += length + 12

View File

@ -323,7 +323,6 @@ class ApngAnimator(private val context: Context?) {
this@ApngAnimator.speed = speed this@ApngAnimator.speed = speed
scaleType = apngAnimatorOptions?.scaleType scaleType = apngAnimatorOptions?.scaleType
// Download PNG // Download PNG
println(byteArray.size)
APNGDisassembler().disassemble(byteArray).frames.also { frames -> APNGDisassembler().disassemble(byteArray).frames.also { frames ->
draw(frames).apply { draw(frames).apply {
setupAnimationDrawableAndStart(this) setupAnimationDrawableAndStart(this)

View File

@ -1,3 +0,0 @@
<resources>
<string name="app_name">KAPNG</string>
</resources>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.7 MiB

View File

@ -1,21 +1,13 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<resources> <resources>
<color name="colorPrimary">@color/primary</color> <color name="colorPrimary">@color/primary</color>
<color name="colorPrimaryDark">@color/primary_dark</color>
<color name="colorAccent">#b00020</color>
<color name="primary">#81c784</color> <color name="primary">#81c784</color>
<color name="primary_light">#b2fab4</color>
<color name="primary_dark">#519657</color>
<color name="secondary">#ff5722</color> <color name="secondary">#ff5722</color>
<color name="secondary_light">#ff8a50</color>
<color name="secondary_dark">#c41c00</color>
<color name="text">#000</color> <color name="text">#000</color>
<color name="gray">#999999</color>
<color name="background">#FFFFFF</color> <color name="background">#FFFFFF</color>
<color name="control">#fff</color> <color name="control">#fff</color>

View File

@ -1,4 +1,2 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<resources> <resources></resources>
<item type="id" name="drag_handle" />
</resources>