Removing few unused resources
This commit is contained in:
parent
0ee959ee7a
commit
f977ff9445
|
@ -1,4 +1,5 @@
|
|||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
package="oupson.apng">
|
||||
<!-- TODO REMOVE -->
|
||||
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
|
||||
</manifest>
|
||||
|
|
|
@ -46,7 +46,7 @@ class APNGDisassembler {
|
|||
if (isApng(byteArray)) {
|
||||
var cursor = 8
|
||||
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)
|
||||
parseChunk(chunk)
|
||||
cursor += length + 12
|
||||
|
|
|
@ -323,7 +323,6 @@ class ApngAnimator(private val context: Context?) {
|
|||
this@ApngAnimator.speed = speed
|
||||
scaleType = apngAnimatorOptions?.scaleType
|
||||
// Download PNG
|
||||
println(byteArray.size)
|
||||
APNGDisassembler().disassemble(byteArray).frames.also { frames ->
|
||||
draw(frames).apply {
|
||||
setupAnimationDrawableAndStart(this)
|
||||
|
|
|
@ -1,3 +0,0 @@
|
|||
<resources>
|
||||
<string name="app_name">KAPNG</string>
|
||||
</resources>
|
Binary file not shown.
Before Width: | Height: | Size: 1.7 MiB |
|
@ -1,21 +1,13 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<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_light">#b2fab4</color>
|
||||
<color name="primary_dark">#519657</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="gray">#999999</color>
|
||||
|
||||
<color name="background">#FFFFFF</color>
|
||||
|
||||
<color name="control">#fff</color>
|
||||
|
|
|
@ -1,4 +1,2 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<item type="id" name="drag_handle" />
|
||||
</resources>
|
||||
<resources></resources>
|
Loading…
Reference in New Issue