Skip to content

Commit

Permalink
Change DoubleTapImage Added Logo
Browse files Browse the repository at this point in the history
  • Loading branch information
saikou committed Nov 20, 2023
1 parent 2d33432 commit 6d6a3e3
Show file tree
Hide file tree
Showing 30 changed files with 22 additions and 181 deletions.
7 changes: 2 additions & 5 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
android:allowBackup="true"
android:dataExtractionRules="@xml/data_extraction_rules"
android:fullBackupContent="@xml/backup_rules"
android:icon="@mipmap/ic_launcher"
android:icon="@mipmap/app_logo"
android:label="@string/app_name"
android:networkSecurityConfig="@xml/network_security_config"
android:roundIcon="@mipmap/ic_launcher_round"
android:roundIcon="@mipmap/app_logo"
android:supportsRtl="true"
android:theme="@style/Theme.GraphQLAnilist"
android:usesCleartextTraffic="true">
Expand All @@ -29,9 +29,6 @@
android:name="android.app.lib_name"
android:value="" />
</activity>
<activity
android:name=".ui.activity.CharacterDetailsActivity"
android:exported="false" />
<activity
android:name=".ui.activity.MainActivity"
android:screenOrientation="portrait"
Expand Down
Binary file added app/src/main/app_logo-playstore.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,25 +1,14 @@
package com.azamovhudstc.graphqlanilist.ui.adapter

import android.annotation.SuppressLint
import android.app.Activity
import android.content.Intent
import android.view.LayoutInflater
import android.view.ViewGroup
import android.widget.ImageView
import androidx.core.app.ActivityOptionsCompat
import androidx.core.content.ContentProviderCompat.requireContext
import androidx.core.content.ContextCompat
import androidx.core.util.Pair
import androidx.core.view.ViewCompat
import androidx.recyclerview.widget.RecyclerView
import com.azamovhudstc.graphqlanilist.DetailFullDataQuery
import com.azamovhudstc.graphqlanilist.databinding.ItemCharacterBinding
import com.azamovhudstc.graphqlanilist.ui.activity.CharacterDetailsActivity
import com.azamovhudstc.graphqlanilist.utils.Constants.Companion.IMAGE_URL
import com.azamovhudstc.graphqlanilist.utils.loadImage
import com.azamovhudstc.graphqlanilist.utils.setAnimation
import com.draggable.library.extension.ImageViewerHelper
import java.io.Serializable


class CharacterAdapter(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ import com.azamovhudstc.graphqlanilist.di.GlideApp
import com.azamovhudstc.graphqlanilist.utils.loadImage
import com.bumptech.glide.load.engine.DiskCacheStrategy

class SearchPagingAdapter :
PagingDataAdapter<AniListMedia, SearchPagingAdapter.AnimePageVh>(REPO_COMPARATOR) {
class SearchPagingAdapter : PagingDataAdapter<AniListMedia, SearchPagingAdapter.AnimePageVh>(REPO_COMPARATOR) {
private lateinit var itemClickListener :((AniListMedia)->Unit)


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,6 @@ class AnimeWatchPage() :

fun onIconPressedForStyle(style: Int) {
episodeAdapter.updateType(style)

episodeAdapter.notifyDataSetChanged()

}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ fun ImageView.loadImage(file: FileUrl?, size: Int = 0) {
data class FileUrl(
val url: String,
val headers: Map<String, String> = mapOf()
) : Serializable {
) :
Serializable {
companion object {
operator fun get(url: String?, headers: Map<String, String> = mapOf()): FileUrl? {
return FileUrl(url ?: return null, headers)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,10 @@ import androidx.lifecycle.Lifecycle
import androidx.lifecycle.LifecycleOwner
import androidx.lifecycle.lifecycleScope
import androidx.lifecycle.repeatOnLifecycle
import com.azamovhudstc.graphqlanilist.type.AnimeTypes
import kotlinx.coroutines.FlowPreview
import kotlinx.coroutines.Job
import kotlinx.coroutines.async
import kotlinx.coroutines.coroutineScope
import kotlinx.coroutines.flow.AbstractFlow
import kotlinx.coroutines.flow.Flow
import kotlinx.coroutines.flow.FlowCollector
import kotlinx.coroutines.flow.MutableStateFlow
import kotlinx.coroutines.flow.asFlow
import kotlinx.coroutines.flow.catch
Expand Down
136 changes: 0 additions & 136 deletions app/src/main/res/layout/activity_character_details.xml

This file was deleted.

6 changes: 3 additions & 3 deletions app/src/main/res/layout/double_tap_overlay.xml
Original file line number Diff line number Diff line change
Expand Up @@ -35,21 +35,21 @@
android:id="@+id/icon_1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:srcCompat="@drawable/anim_pause_to_play"
app:srcCompat="@drawable/anim_play_to_pause"
tools:alpha="0.18" />

<androidx.appcompat.widget.AppCompatImageView
android:id="@+id/icon_2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:srcCompat="@drawable/anim_pause_to_play"
app:srcCompat="@drawable/anim_play_to_pause"
tools:alpha="0.5" />

<androidx.appcompat.widget.AppCompatImageView
android:id="@+id/icon_3"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:srcCompat="@drawable/icon_triangle"
app:srcCompat="@drawable/anim_play_to_pause"
tools:alpha="1" />

</LinearLayout>
Expand Down
5 changes: 5 additions & 0 deletions app/src/main/res/mipmap-anydpi-v26/app_logo.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@color/app_logo_background"/>
<foreground android:drawable="@mipmap/app_logo_foreground"/>
</adaptive-icon>
5 changes: 5 additions & 0 deletions app/src/main/res/mipmap-anydpi-v26/app_logo_round.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@color/app_logo_background"/>
<foreground android:drawable="@mipmap/app_logo_foreground"/>
</adaptive-icon>
Binary file added app/src/main/res/mipmap-hdpi/app_logo.webp
Binary file not shown.
Binary file not shown.
Binary file added app/src/main/res/mipmap-hdpi/app_logo_round.webp
Binary file not shown.
Binary file added app/src/main/res/mipmap-mdpi/app_logo.webp
Binary file not shown.
Binary file not shown.
Binary file added app/src/main/res/mipmap-mdpi/app_logo_round.webp
Binary file not shown.
Binary file added app/src/main/res/mipmap-xhdpi/app_logo.webp
Binary file not shown.
Binary file not shown.
Binary file added app/src/main/res/mipmap-xhdpi/app_logo_round.webp
Binary file not shown.
Binary file added app/src/main/res/mipmap-xxhdpi/app_logo.webp
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added app/src/main/res/mipmap-xxxhdpi/app_logo.webp
Binary file not shown.
Binary file not shown.
Binary file not shown.
4 changes: 4 additions & 0 deletions app/src/main/res/values/app_logo_background.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="app_logo_background">#FFFFFF</color>
</resources>

0 comments on commit 6d6a3e3

Please sign in to comment.