From 0b613e3b5a6c7a3b170f1b4d08f878d5d35b8119 Mon Sep 17 00:00:00 2001 From: litingting Date: Tue, 10 Dec 2024 15:07:29 +0800 Subject: [PATCH] V1.0.0(1) --- app/HDWallpaper.jks | Bin 0 -> 2554 bytes app/build.gradle.kts | 6 +- app/proguard-rules.pro | 131 +----------------- .../free}/walls/ExampleInstrumentedTest.java | 2 +- .../walls/mylistener/ItemClickListener.java | 8 -- .../free}/walls/MyWallpaper.java | 12 +- .../free}/walls/adapter/AdapterFavorite.java | 14 +- .../free}/walls/adapter/AdapterPreView.java | 17 ++- .../free}/walls/adapter/MyViewHolder.java | 4 +- .../free}/walls/db/DbManager.java | 19 ++- .../free}/walls/json/Category.java | 2 +- .../free}/walls/json/Data.java | 2 +- .../walls/mylistener/ItemClickListener.java | 8 ++ .../free}/walls/mylistener/OnAddListener.java | 4 +- .../walls/mylistener/OnDownloadListener.java | 4 +- .../walls/mylistener/OnLikeListener.java | 4 +- .../free}/walls/mylistener/TypeListener.java | 2 +- .../free}/walls/ui/ActivityMain.java | 10 +- .../free}/walls/ui/ActivitySet.java | 23 ++- .../free}/walls/ui/ActivityWelcome.java | 6 +- .../free}/walls/ui/DialogSetType.java | 6 +- .../free}/walls/ui/FragmentChild.java | 19 ++- .../free}/walls/ui/FragmentDownload.java | 27 ++-- .../free}/walls/ui/FragmentHome.java | 20 +-- .../free}/walls/ui/FragmentLike.java | 22 +-- .../free}/walls/utils/CommonKt.kt | 6 +- .../free}/walls/utils/CommonUtils.java | 5 +- .../free}/walls/utils/CustomerTv.java | 6 +- .../free}/walls/utils/ItemSpace.java | 2 +- app/src/main/res/layout/activity_main.xml | 2 +- app/src/main/res/layout/activity_set.xml | 2 +- app/src/main/res/layout/activity_welcome.xml | 2 +- app/src/main/res/layout/class_tab_view.xml | 2 +- .../free}/walls/ExampleUnitTest.java | 2 +- keystore.properties | 10 +- 35 files changed, 134 insertions(+), 277 deletions(-) create mode 100644 app/HDWallpaper.jks rename app/src/androidTest/java/com/hd/{phone/fresh => wallpaper/free}/walls/ExampleInstrumentedTest.java (95%) delete mode 100644 app/src/main/java/com/hd/phone/fresh/walls/mylistener/ItemClickListener.java rename app/src/main/java/com/hd/{phone/fresh => wallpaper/free}/walls/MyWallpaper.java (92%) rename app/src/main/java/com/hd/{phone/fresh => wallpaper/free}/walls/adapter/AdapterFavorite.java (89%) rename app/src/main/java/com/hd/{phone/fresh => wallpaper/free}/walls/adapter/AdapterPreView.java (94%) rename app/src/main/java/com/hd/{phone/fresh => wallpaper/free}/walls/adapter/MyViewHolder.java (90%) rename app/src/main/java/com/hd/{phone/fresh => wallpaper/free}/walls/db/DbManager.java (93%) rename app/src/main/java/com/hd/{phone/fresh => wallpaper/free}/walls/json/Category.java (91%) rename app/src/main/java/com/hd/{phone/fresh => wallpaper/free}/walls/json/Data.java (98%) create mode 100644 app/src/main/java/com/hd/wallpaper/free/walls/mylistener/ItemClickListener.java rename app/src/main/java/com/hd/{phone/fresh => wallpaper/free}/walls/mylistener/OnAddListener.java (50%) rename app/src/main/java/com/hd/{phone/fresh => wallpaper/free}/walls/mylistener/OnDownloadListener.java (54%) rename app/src/main/java/com/hd/{phone/fresh => wallpaper/free}/walls/mylistener/OnLikeListener.java (52%) rename app/src/main/java/com/hd/{phone/fresh => wallpaper/free}/walls/mylistener/TypeListener.java (58%) rename app/src/main/java/com/hd/{phone/fresh => wallpaper/free}/walls/ui/ActivityMain.java (92%) rename app/src/main/java/com/hd/{phone/fresh => wallpaper/free}/walls/ui/ActivitySet.java (96%) rename app/src/main/java/com/hd/{phone/fresh => wallpaper/free}/walls/ui/ActivityWelcome.java (93%) rename app/src/main/java/com/hd/{phone/fresh => wallpaper/free}/walls/ui/DialogSetType.java (93%) rename app/src/main/java/com/hd/{phone/fresh => wallpaper/free}/walls/ui/FragmentChild.java (84%) rename app/src/main/java/com/hd/{phone/fresh => wallpaper/free}/walls/ui/FragmentDownload.java (80%) rename app/src/main/java/com/hd/{phone/fresh => wallpaper/free}/walls/ui/FragmentHome.java (88%) rename app/src/main/java/com/hd/{phone/fresh => wallpaper/free}/walls/ui/FragmentLike.java (82%) rename app/src/main/java/com/hd/{phone/fresh => wallpaper/free}/walls/utils/CommonKt.kt (98%) rename app/src/main/java/com/hd/{phone/fresh => wallpaper/free}/walls/utils/CommonUtils.java (97%) rename app/src/main/java/com/hd/{phone/fresh => wallpaper/free}/walls/utils/CustomerTv.java (85%) rename app/src/main/java/com/hd/{phone/fresh => wallpaper/free}/walls/utils/ItemSpace.java (97%) rename app/src/test/java/com/hd/{phone/fresh => wallpaper/free}/walls/ExampleUnitTest.java (90%) diff --git a/app/HDWallpaper.jks b/app/HDWallpaper.jks new file mode 100644 index 0000000000000000000000000000000000000000..f31bf10c92744e12e9fde87d9689ef3ed5c9ed90 GIT binary patch literal 2554 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 - } - -keep class com.bytedance.sdk.** { *; } - -keep class com.inmobi.** { *; } - -keep public class com.google.android.gms.** - -dontwarn com.google.android.gms.** - -dontwarn com.squareup.picasso.** - -keep class com.google.android.gms.ads.identifier.AdvertisingIdClient{ - public *; - } - -keep class com.google.android.gms.ads.identifier.AdvertisingIdClient$Info{ - public *; - } - # skip the Picasso library classes - -keep class com.squareup.picasso.** {*;} - -dontwarn com.squareup.okhttp.** - # skip Moat classes - -keep class com.moat.** {*;} - -dontwarn com.moat.** - # skip IAB classes - -keep class com.iab.** {*;} - -dontwarn com.iab.** - -keepattributes Signature - -keepattributes *Annotation* - -keep class com.mbridge.** {*; } - -keep interface com.mbridge.** {*; } - -keep class android.support.v4.** { *; } - -dontwarn com.mbridge.** - -keep class **.R$* { public static final int mbridge*; } - -keep public class com.mbridge.* extends androidx.** { *; } - -keep public class androidx.viewpager.widget.PagerAdapter{ *; } - -keep public class androidx.viewpager.widget.ViewPager.OnPageChangeListener{ *; } - -keep interface androidx.annotation.IntDef{ *; } - -keep interface androidx.annotation.Nullable{ *; } - -keep interface androidx.annotation.CheckResult{ *; } - -keep interface androidx.annotation.NonNull{ *; } - -keep public class androidx.fragment.app.Fragment{ *; } - -keep public class androidx.core.content.FileProvider{ *; } - -keep public class androidx.core.app.NotificationCompat{ *; } - -keep public class androidx.appcompat.widget.AppCompatImageView { *; } - -keep public class androidx.recyclerview.*{ *; } - -keep class com.chartboost.** { *; } \ No newline at end of file diff --git a/app/src/androidTest/java/com/hd/phone/fresh/walls/ExampleInstrumentedTest.java b/app/src/androidTest/java/com/hd/wallpaper/free/walls/ExampleInstrumentedTest.java similarity index 95% rename from app/src/androidTest/java/com/hd/phone/fresh/walls/ExampleInstrumentedTest.java rename to app/src/androidTest/java/com/hd/wallpaper/free/walls/ExampleInstrumentedTest.java index 3ba60a9..73e2b4f 100644 --- a/app/src/androidTest/java/com/hd/phone/fresh/walls/ExampleInstrumentedTest.java +++ b/app/src/androidTest/java/com/hd/wallpaper/free/walls/ExampleInstrumentedTest.java @@ -1,4 +1,4 @@ -package com.hd.phone.fresh.walls; +package com.hd.wallpaper.free.walls; import android.content.Context; diff --git a/app/src/main/java/com/hd/phone/fresh/walls/mylistener/ItemClickListener.java b/app/src/main/java/com/hd/phone/fresh/walls/mylistener/ItemClickListener.java deleted file mode 100644 index 9e45997..0000000 --- a/app/src/main/java/com/hd/phone/fresh/walls/mylistener/ItemClickListener.java +++ /dev/null @@ -1,8 +0,0 @@ -package com.hd.phone.fresh.walls.mylistener; - -import com.hd.phone.fresh.walls.json.Data; - -public interface ItemClickListener { - - public void onItemClickAction(Data info); -} diff --git a/app/src/main/java/com/hd/phone/fresh/walls/MyWallpaper.java b/app/src/main/java/com/hd/wallpaper/free/walls/MyWallpaper.java similarity index 92% rename from app/src/main/java/com/hd/phone/fresh/walls/MyWallpaper.java rename to app/src/main/java/com/hd/wallpaper/free/walls/MyWallpaper.java index 459b6c1..61e84bc 100644 --- a/app/src/main/java/com/hd/phone/fresh/walls/MyWallpaper.java +++ b/app/src/main/java/com/hd/wallpaper/free/walls/MyWallpaper.java @@ -1,15 +1,15 @@ -package com.hd.phone.fresh.walls; +package com.hd.wallpaper.free.walls; import android.app.Application; import android.content.Context; import android.graphics.Typeface; import android.util.Log; -import com.hd.phone.fresh.walls.json.Category; -import com.hd.phone.fresh.walls.utils.CommonUtils; -import com.hd.phone.fresh.walls.utils.CommonKt; -import com.hd.phone.fresh.walls.db.DbManager; -import com.hd.phone.fresh.walls.json.Data; +import com.hd.wallpaper.free.walls.json.Category; +import com.hd.wallpaper.free.walls.utils.CommonUtils; +import com.hd.wallpaper.free.walls.utils.CommonKt; +import com.hd.wallpaper.free.walls.db.DbManager; +import com.hd.wallpaper.free.walls.json.Data; import java.io.IOException; import java.io.InputStream; diff --git a/app/src/main/java/com/hd/phone/fresh/walls/adapter/AdapterFavorite.java b/app/src/main/java/com/hd/wallpaper/free/walls/adapter/AdapterFavorite.java similarity index 89% rename from app/src/main/java/com/hd/phone/fresh/walls/adapter/AdapterFavorite.java rename to app/src/main/java/com/hd/wallpaper/free/walls/adapter/AdapterFavorite.java index 7e86016..5c5e2f9 100644 --- a/app/src/main/java/com/hd/phone/fresh/walls/adapter/AdapterFavorite.java +++ b/app/src/main/java/com/hd/wallpaper/free/walls/adapter/AdapterFavorite.java @@ -1,4 +1,4 @@ -package com.hd.phone.fresh.walls.adapter; +package com.hd.wallpaper.free.walls.adapter; import android.content.Context; import android.graphics.Bitmap; @@ -14,12 +14,12 @@ import androidx.recyclerview.widget.RecyclerView; import com.bumptech.glide.Glide; import com.bumptech.glide.load.MultiTransformation; import com.bumptech.glide.load.resource.bitmap.CenterCrop; -import com.hd.phone.fresh.walls.MyWallpaper; -import com.hd.phone.fresh.walls.R; -import com.hd.phone.fresh.walls.mylistener.ItemClickListener; -import com.hd.phone.fresh.walls.utils.CommonUtils; -import com.hd.phone.fresh.walls.db.DbManager; -import com.hd.phone.fresh.walls.json.Data; +import com.hd.wallpaper.free.walls.MyWallpaper; +import com.hd.wallpaper.free.walls.R; +import com.hd.wallpaper.free.walls.mylistener.ItemClickListener; +import com.hd.wallpaper.free.walls.utils.CommonUtils; +import com.hd.wallpaper.free.walls.db.DbManager; +import com.hd.wallpaper.free.walls.json.Data; import java.util.ArrayList; import java.util.List; diff --git a/app/src/main/java/com/hd/phone/fresh/walls/adapter/AdapterPreView.java b/app/src/main/java/com/hd/wallpaper/free/walls/adapter/AdapterPreView.java similarity index 94% rename from app/src/main/java/com/hd/phone/fresh/walls/adapter/AdapterPreView.java rename to app/src/main/java/com/hd/wallpaper/free/walls/adapter/AdapterPreView.java index d7bd38c..be8a69f 100644 --- a/app/src/main/java/com/hd/phone/fresh/walls/adapter/AdapterPreView.java +++ b/app/src/main/java/com/hd/wallpaper/free/walls/adapter/AdapterPreView.java @@ -1,4 +1,4 @@ -package com.hd.phone.fresh.walls.adapter; +package com.hd.wallpaper.free.walls.adapter; import android.content.Context; import android.graphics.Bitmap; @@ -25,13 +25,12 @@ import com.bumptech.glide.load.resource.bitmap.CenterCrop; import com.bumptech.glide.request.RequestListener; import com.bumptech.glide.request.RequestOptions; import com.bumptech.glide.request.target.Target; -import com.hd.phone.fresh.walls.MyWallpaper; -import com.hd.phone.fresh.walls.R; -import com.hd.phone.fresh.walls.mylistener.ItemClickListener; -import com.hd.phone.fresh.walls.ui.ActivitySet; -import com.hd.phone.fresh.walls.utils.CommonUtils; -import com.hd.phone.fresh.walls.db.DbManager; -import com.hd.phone.fresh.walls.json.Data; +import com.hd.wallpaper.free.walls.MyWallpaper; +import com.hd.wallpaper.free.walls.R; +import com.hd.wallpaper.free.walls.mylistener.ItemClickListener; +import com.hd.wallpaper.free.walls.utils.CommonUtils; +import com.hd.wallpaper.free.walls.db.DbManager; +import com.hd.wallpaper.free.walls.json.Data; import java.lang.ref.WeakReference; import java.util.ArrayList; @@ -111,7 +110,7 @@ public class AdapterPreView extends RecyclerView.Adapter { .skipMemoryCache(true) .apply(options) .diskCacheStrategy(DiskCacheStrategy.ALL) - .load(previewUrl200) + .load(previewUrl400) .listener(new RequestListener() { @Override public boolean onLoadFailed(@Nullable GlideException e, @Nullable Object model, @NonNull Target target, boolean isFirstResource) { diff --git a/app/src/main/java/com/hd/phone/fresh/walls/adapter/MyViewHolder.java b/app/src/main/java/com/hd/wallpaper/free/walls/adapter/MyViewHolder.java similarity index 90% rename from app/src/main/java/com/hd/phone/fresh/walls/adapter/MyViewHolder.java rename to app/src/main/java/com/hd/wallpaper/free/walls/adapter/MyViewHolder.java index 684e250..1ea9f82 100644 --- a/app/src/main/java/com/hd/phone/fresh/walls/adapter/MyViewHolder.java +++ b/app/src/main/java/com/hd/wallpaper/free/walls/adapter/MyViewHolder.java @@ -1,4 +1,4 @@ -package com.hd.phone.fresh.walls.adapter; +package com.hd.wallpaper.free.walls.adapter; import android.view.View; import android.widget.ImageView; @@ -7,7 +7,7 @@ import android.widget.RelativeLayout; import androidx.annotation.NonNull; import androidx.recyclerview.widget.RecyclerView; -import com.hd.phone.fresh.walls.R; +import com.hd.wallpaper.free.walls.R; public class MyViewHolder extends RecyclerView.ViewHolder{ diff --git a/app/src/main/java/com/hd/phone/fresh/walls/db/DbManager.java b/app/src/main/java/com/hd/wallpaper/free/walls/db/DbManager.java similarity index 93% rename from app/src/main/java/com/hd/phone/fresh/walls/db/DbManager.java rename to app/src/main/java/com/hd/wallpaper/free/walls/db/DbManager.java index 176c389..798e720 100644 --- a/app/src/main/java/com/hd/phone/fresh/walls/db/DbManager.java +++ b/app/src/main/java/com/hd/wallpaper/free/walls/db/DbManager.java @@ -1,19 +1,18 @@ -package com.hd.phone.fresh.walls.db; +package com.hd.wallpaper.free.walls.db; import android.content.Context; import android.util.Log; import androidx.annotation.NonNull; -import com.hd.phone.fresh.walls.MyWallpaper; -import com.hd.phone.fresh.walls.mylistener.OnAddListener; -import com.hd.phone.fresh.walls.mylistener.OnDownloadListener; -import com.hd.phone.fresh.walls.mylistener.OnLikeListener; -import com.hd.phone.fresh.walls.json.Data; -import com.hd.phone.fresh.walls.json.Data_; -import com.hd.phone.fresh.walls.json.MyObjectBox; -import com.hd.phone.fresh.walls.utils.CommonKt; -import com.hd.phone.fresh.walls.utils.CommonUtils; +import com.hd.wallpaper.free.walls.MyWallpaper; +import com.hd.wallpaper.free.walls.mylistener.OnAddListener; +import com.hd.wallpaper.free.walls.mylistener.OnDownloadListener; +import com.hd.wallpaper.free.walls.mylistener.OnLikeListener; +import com.hd.wallpaper.free.walls.json.Data; +import com.hd.wallpaper.free.walls.json.Data_; +import com.hd.wallpaper.free.walls.json.MyObjectBox; +import com.hd.wallpaper.free.walls.utils.CommonKt; import java.io.File; import java.util.ArrayList; diff --git a/app/src/main/java/com/hd/phone/fresh/walls/json/Category.java b/app/src/main/java/com/hd/wallpaper/free/walls/json/Category.java similarity index 91% rename from app/src/main/java/com/hd/phone/fresh/walls/json/Category.java rename to app/src/main/java/com/hd/wallpaper/free/walls/json/Category.java index 7f1b8ef..3234d6a 100644 --- a/app/src/main/java/com/hd/phone/fresh/walls/json/Category.java +++ b/app/src/main/java/com/hd/wallpaper/free/walls/json/Category.java @@ -1,4 +1,4 @@ -package com.hd.phone.fresh.walls.json; +package com.hd.wallpaper.free.walls.json; import java.util.List; diff --git a/app/src/main/java/com/hd/phone/fresh/walls/json/Data.java b/app/src/main/java/com/hd/wallpaper/free/walls/json/Data.java similarity index 98% rename from app/src/main/java/com/hd/phone/fresh/walls/json/Data.java rename to app/src/main/java/com/hd/wallpaper/free/walls/json/Data.java index aae27a8..c4c4864 100644 --- a/app/src/main/java/com/hd/phone/fresh/walls/json/Data.java +++ b/app/src/main/java/com/hd/wallpaper/free/walls/json/Data.java @@ -1,4 +1,4 @@ -package com.hd.phone.fresh.walls.json; +package com.hd.wallpaper.free.walls.json; import androidx.annotation.Nullable; diff --git a/app/src/main/java/com/hd/wallpaper/free/walls/mylistener/ItemClickListener.java b/app/src/main/java/com/hd/wallpaper/free/walls/mylistener/ItemClickListener.java new file mode 100644 index 0000000..aac5168 --- /dev/null +++ b/app/src/main/java/com/hd/wallpaper/free/walls/mylistener/ItemClickListener.java @@ -0,0 +1,8 @@ +package com.hd.wallpaper.free.walls.mylistener; + +import com.hd.wallpaper.free.walls.json.Data; + +public interface ItemClickListener { + + public void onItemClickAction(Data info); +} diff --git a/app/src/main/java/com/hd/phone/fresh/walls/mylistener/OnAddListener.java b/app/src/main/java/com/hd/wallpaper/free/walls/mylistener/OnAddListener.java similarity index 50% rename from app/src/main/java/com/hd/phone/fresh/walls/mylistener/OnAddListener.java rename to app/src/main/java/com/hd/wallpaper/free/walls/mylistener/OnAddListener.java index ca016c9..835ced3 100644 --- a/app/src/main/java/com/hd/phone/fresh/walls/mylistener/OnAddListener.java +++ b/app/src/main/java/com/hd/wallpaper/free/walls/mylistener/OnAddListener.java @@ -1,6 +1,6 @@ -package com.hd.phone.fresh.walls.mylistener; +package com.hd.wallpaper.free.walls.mylistener; -import com.hd.phone.fresh.walls.json.Data; +import com.hd.wallpaper.free.walls.json.Data; public interface OnAddListener { void onAdd(Data data); diff --git a/app/src/main/java/com/hd/phone/fresh/walls/mylistener/OnDownloadListener.java b/app/src/main/java/com/hd/wallpaper/free/walls/mylistener/OnDownloadListener.java similarity index 54% rename from app/src/main/java/com/hd/phone/fresh/walls/mylistener/OnDownloadListener.java rename to app/src/main/java/com/hd/wallpaper/free/walls/mylistener/OnDownloadListener.java index 6c07e6e..14be423 100644 --- a/app/src/main/java/com/hd/phone/fresh/walls/mylistener/OnDownloadListener.java +++ b/app/src/main/java/com/hd/wallpaper/free/walls/mylistener/OnDownloadListener.java @@ -1,6 +1,6 @@ -package com.hd.phone.fresh.walls.mylistener; +package com.hd.wallpaper.free.walls.mylistener; -import com.hd.phone.fresh.walls.json.Data; +import com.hd.wallpaper.free.walls.json.Data; import java.util.List; diff --git a/app/src/main/java/com/hd/phone/fresh/walls/mylistener/OnLikeListener.java b/app/src/main/java/com/hd/wallpaper/free/walls/mylistener/OnLikeListener.java similarity index 52% rename from app/src/main/java/com/hd/phone/fresh/walls/mylistener/OnLikeListener.java rename to app/src/main/java/com/hd/wallpaper/free/walls/mylistener/OnLikeListener.java index f240553..4d56aab 100644 --- a/app/src/main/java/com/hd/phone/fresh/walls/mylistener/OnLikeListener.java +++ b/app/src/main/java/com/hd/wallpaper/free/walls/mylistener/OnLikeListener.java @@ -1,6 +1,6 @@ -package com.hd.phone.fresh.walls.mylistener; +package com.hd.wallpaper.free.walls.mylistener; -import com.hd.phone.fresh.walls.json.Data; +import com.hd.wallpaper.free.walls.json.Data; import java.util.List; diff --git a/app/src/main/java/com/hd/phone/fresh/walls/mylistener/TypeListener.java b/app/src/main/java/com/hd/wallpaper/free/walls/mylistener/TypeListener.java similarity index 58% rename from app/src/main/java/com/hd/phone/fresh/walls/mylistener/TypeListener.java rename to app/src/main/java/com/hd/wallpaper/free/walls/mylistener/TypeListener.java index 76eb95b..f5568da 100644 --- a/app/src/main/java/com/hd/phone/fresh/walls/mylistener/TypeListener.java +++ b/app/src/main/java/com/hd/wallpaper/free/walls/mylistener/TypeListener.java @@ -1,4 +1,4 @@ -package com.hd.phone.fresh.walls.mylistener; +package com.hd.wallpaper.free.walls.mylistener; public interface TypeListener { diff --git a/app/src/main/java/com/hd/phone/fresh/walls/ui/ActivityMain.java b/app/src/main/java/com/hd/wallpaper/free/walls/ui/ActivityMain.java similarity index 92% rename from app/src/main/java/com/hd/phone/fresh/walls/ui/ActivityMain.java rename to app/src/main/java/com/hd/wallpaper/free/walls/ui/ActivityMain.java index 807f67e..44d3511 100644 --- a/app/src/main/java/com/hd/phone/fresh/walls/ui/ActivityMain.java +++ b/app/src/main/java/com/hd/wallpaper/free/walls/ui/ActivityMain.java @@ -1,4 +1,4 @@ -package com.hd.phone.fresh.walls.ui; +package com.hd.wallpaper.free.walls.ui; import android.os.Bundle; import android.view.View; @@ -10,10 +10,10 @@ import androidx.fragment.app.Fragment; import androidx.viewpager2.adapter.FragmentStateAdapter; import com.google.android.material.tabs.TabLayout; -import com.hd.phone.fresh.walls.R; -import com.hd.phone.fresh.walls.databinding.ActivityMainBinding; -import com.hd.phone.fresh.walls.databinding.TabCustomViewBinding; -import com.hd.phone.fresh.walls.utils.CommonUtils; +import com.hd.wallpaper.free.walls.R; +import com.hd.wallpaper.free.walls.databinding.ActivityMainBinding; +import com.hd.wallpaper.free.walls.databinding.TabCustomViewBinding; +import com.hd.wallpaper.free.walls.utils.CommonUtils; import java.util.ArrayList; import java.util.List; diff --git a/app/src/main/java/com/hd/phone/fresh/walls/ui/ActivitySet.java b/app/src/main/java/com/hd/wallpaper/free/walls/ui/ActivitySet.java similarity index 96% rename from app/src/main/java/com/hd/phone/fresh/walls/ui/ActivitySet.java rename to app/src/main/java/com/hd/wallpaper/free/walls/ui/ActivitySet.java index 8d7d55b..510df79 100644 --- a/app/src/main/java/com/hd/phone/fresh/walls/ui/ActivitySet.java +++ b/app/src/main/java/com/hd/wallpaper/free/walls/ui/ActivitySet.java @@ -1,10 +1,7 @@ -package com.hd.phone.fresh.walls.ui; +package com.hd.wallpaper.free.walls.ui; import android.app.WallpaperManager; import android.content.pm.PackageManager; -import android.graphics.Bitmap; -import android.graphics.BitmapFactory; -import android.graphics.drawable.BitmapDrawable; import android.graphics.drawable.Drawable; import android.net.Uri; import android.os.Build; @@ -26,14 +23,14 @@ import com.bumptech.glide.load.resource.drawable.DrawableTransitionOptions; import com.bumptech.glide.request.RequestListener; import com.bumptech.glide.request.RequestOptions; import com.bumptech.glide.request.target.Target; -import com.hd.phone.fresh.walls.MyWallpaper; -import com.hd.phone.fresh.walls.R; -import com.hd.phone.fresh.walls.databinding.ActivitySetBinding; -import com.hd.phone.fresh.walls.db.DbManager; -import com.hd.phone.fresh.walls.json.Data; -import com.hd.phone.fresh.walls.mylistener.TypeListener; -import com.hd.phone.fresh.walls.utils.CommonKt; -import com.hd.phone.fresh.walls.utils.CommonUtils; +import com.hd.wallpaper.free.walls.MyWallpaper; +import com.hd.wallpaper.free.walls.R; +import com.hd.wallpaper.free.walls.databinding.ActivitySetBinding; +import com.hd.wallpaper.free.walls.db.DbManager; +import com.hd.wallpaper.free.walls.json.Data; +import com.hd.wallpaper.free.walls.mylistener.TypeListener; +import com.hd.wallpaper.free.walls.utils.CommonKt; +import com.hd.wallpaper.free.walls.utils.CommonUtils; import java.io.File; import java.io.FileInputStream; @@ -118,7 +115,7 @@ public class ActivitySet extends AppCompatActivity implements TypeListener { .thumbnail( Glide.with(ActivitySet.this) .asDrawable() - .load(previewUrl200) + .load(previewUrl400) .apply(options) .placeholder(R.mipmap.im_placeholder) // .override(screenWidthHeight[0], screenWidthHeight[1]) diff --git a/app/src/main/java/com/hd/phone/fresh/walls/ui/ActivityWelcome.java b/app/src/main/java/com/hd/wallpaper/free/walls/ui/ActivityWelcome.java similarity index 93% rename from app/src/main/java/com/hd/phone/fresh/walls/ui/ActivityWelcome.java rename to app/src/main/java/com/hd/wallpaper/free/walls/ui/ActivityWelcome.java index 99d4ac3..8769c1d 100644 --- a/app/src/main/java/com/hd/phone/fresh/walls/ui/ActivityWelcome.java +++ b/app/src/main/java/com/hd/wallpaper/free/walls/ui/ActivityWelcome.java @@ -1,4 +1,4 @@ -package com.hd.phone.fresh.walls.ui; +package com.hd.wallpaper.free.walls.ui; import android.annotation.SuppressLint; import android.content.Intent; @@ -8,8 +8,8 @@ import android.widget.TextView; import androidx.appcompat.app.AppCompatActivity; -import com.hd.phone.fresh.walls.databinding.ActivityWelcomeBinding; -import com.hd.phone.fresh.walls.utils.CommonUtils; +import com.hd.wallpaper.free.walls.databinding.ActivityWelcomeBinding; +import com.hd.wallpaper.free.walls.utils.CommonUtils; public class ActivityWelcome extends AppCompatActivity { private TextView textViewWallpaper; diff --git a/app/src/main/java/com/hd/phone/fresh/walls/ui/DialogSetType.java b/app/src/main/java/com/hd/wallpaper/free/walls/ui/DialogSetType.java similarity index 93% rename from app/src/main/java/com/hd/phone/fresh/walls/ui/DialogSetType.java rename to app/src/main/java/com/hd/wallpaper/free/walls/ui/DialogSetType.java index 6986c92..c2c7131 100644 --- a/app/src/main/java/com/hd/phone/fresh/walls/ui/DialogSetType.java +++ b/app/src/main/java/com/hd/wallpaper/free/walls/ui/DialogSetType.java @@ -1,4 +1,4 @@ -package com.hd.phone.fresh.walls.ui; +package com.hd.wallpaper.free.walls.ui; import android.app.Dialog; import android.graphics.Color; @@ -13,8 +13,8 @@ import androidx.annotation.NonNull; import androidx.annotation.Nullable; import androidx.fragment.app.DialogFragment; -import com.hd.phone.fresh.walls.databinding.DialogTypeBinding; -import com.hd.phone.fresh.walls.mylistener.TypeListener; +import com.hd.wallpaper.free.walls.databinding.DialogTypeBinding; +import com.hd.wallpaper.free.walls.mylistener.TypeListener; public class DialogSetType extends DialogFragment { diff --git a/app/src/main/java/com/hd/phone/fresh/walls/ui/FragmentChild.java b/app/src/main/java/com/hd/wallpaper/free/walls/ui/FragmentChild.java similarity index 84% rename from app/src/main/java/com/hd/phone/fresh/walls/ui/FragmentChild.java rename to app/src/main/java/com/hd/wallpaper/free/walls/ui/FragmentChild.java index 617c69f..c9ed3df 100644 --- a/app/src/main/java/com/hd/phone/fresh/walls/ui/FragmentChild.java +++ b/app/src/main/java/com/hd/wallpaper/free/walls/ui/FragmentChild.java @@ -1,4 +1,4 @@ -package com.hd.phone.fresh.walls.ui; +package com.hd.wallpaper.free.walls.ui; import android.content.Intent; import android.os.Bundle; @@ -9,18 +9,15 @@ import android.view.ViewGroup; import androidx.fragment.app.Fragment; import androidx.recyclerview.widget.GridLayoutManager; -import androidx.recyclerview.widget.StaggeredGridLayoutManager; import com.bumptech.glide.Glide; -import com.hd.phone.fresh.walls.MyWallpaper; -import com.hd.phone.fresh.walls.adapter.AdapterPreView; -import com.hd.phone.fresh.walls.databinding.FragmentChildBinding; -import com.hd.phone.fresh.walls.db.DbManager; -import com.hd.phone.fresh.walls.json.Data; -import com.hd.phone.fresh.walls.mylistener.ItemClickListener; -import com.hd.phone.fresh.walls.mylistener.OnAddListener; -import com.hd.phone.fresh.walls.utils.CommonUtils; -import com.hd.phone.fresh.walls.utils.ItemSpace; +import com.hd.wallpaper.free.walls.MyWallpaper; +import com.hd.wallpaper.free.walls.adapter.AdapterPreView; +import com.hd.wallpaper.free.walls.databinding.FragmentChildBinding; +import com.hd.wallpaper.free.walls.json.Data; +import com.hd.wallpaper.free.walls.mylistener.ItemClickListener; +import com.hd.wallpaper.free.walls.utils.CommonUtils; +import com.hd.wallpaper.free.walls.utils.ItemSpace; import java.util.List; diff --git a/app/src/main/java/com/hd/phone/fresh/walls/ui/FragmentDownload.java b/app/src/main/java/com/hd/wallpaper/free/walls/ui/FragmentDownload.java similarity index 80% rename from app/src/main/java/com/hd/phone/fresh/walls/ui/FragmentDownload.java rename to app/src/main/java/com/hd/wallpaper/free/walls/ui/FragmentDownload.java index 3624b91..22bb2fd 100644 --- a/app/src/main/java/com/hd/phone/fresh/walls/ui/FragmentDownload.java +++ b/app/src/main/java/com/hd/wallpaper/free/walls/ui/FragmentDownload.java @@ -1,4 +1,4 @@ -package com.hd.phone.fresh.walls.ui; +package com.hd.wallpaper.free.walls.ui; import android.content.Intent; import android.os.Bundle; @@ -10,23 +10,18 @@ import android.view.ViewGroup; import androidx.fragment.app.Fragment; import androidx.recyclerview.widget.GridLayoutManager; -import com.hd.phone.fresh.walls.MyWallpaper; -import com.hd.phone.fresh.walls.R; -import com.hd.phone.fresh.walls.adapter.AdapterFavorite; -import com.hd.phone.fresh.walls.adapter.AdapterPreView; -import com.hd.phone.fresh.walls.databinding.FragmentLikeBinding; -import com.hd.phone.fresh.walls.db.DbManager; -import com.hd.phone.fresh.walls.json.Data; -import com.hd.phone.fresh.walls.mylistener.ItemClickListener; -import com.hd.phone.fresh.walls.mylistener.OnDownloadListener; -import com.hd.phone.fresh.walls.mylistener.OnLikeListener; -import com.hd.phone.fresh.walls.utils.CommonKt; -import com.hd.phone.fresh.walls.utils.CommonUtils; -import com.hd.phone.fresh.walls.utils.ItemSpace; +import com.hd.wallpaper.free.walls.MyWallpaper; +import com.hd.wallpaper.free.walls.R; +import com.hd.wallpaper.free.walls.adapter.AdapterPreView; +import com.hd.wallpaper.free.walls.databinding.FragmentLikeBinding; +import com.hd.wallpaper.free.walls.db.DbManager; +import com.hd.wallpaper.free.walls.json.Data; +import com.hd.wallpaper.free.walls.mylistener.ItemClickListener; +import com.hd.wallpaper.free.walls.mylistener.OnDownloadListener; +import com.hd.wallpaper.free.walls.utils.CommonUtils; +import com.hd.wallpaper.free.walls.utils.ItemSpace; -import java.io.File; import java.util.List; -import java.util.Objects; import io.objectbox.reactive.DataSubscription; diff --git a/app/src/main/java/com/hd/phone/fresh/walls/ui/FragmentHome.java b/app/src/main/java/com/hd/wallpaper/free/walls/ui/FragmentHome.java similarity index 88% rename from app/src/main/java/com/hd/phone/fresh/walls/ui/FragmentHome.java rename to app/src/main/java/com/hd/wallpaper/free/walls/ui/FragmentHome.java index 193a3b0..15cfc38 100644 --- a/app/src/main/java/com/hd/phone/fresh/walls/ui/FragmentHome.java +++ b/app/src/main/java/com/hd/wallpaper/free/walls/ui/FragmentHome.java @@ -1,4 +1,4 @@ -package com.hd.phone.fresh.walls.ui; +package com.hd.wallpaper.free.walls.ui; import android.content.Intent; import android.os.Bundle; @@ -12,15 +12,15 @@ import androidx.fragment.app.Fragment; import androidx.viewpager2.adapter.FragmentStateAdapter; import com.google.android.material.tabs.TabLayout; -import com.hd.phone.fresh.walls.MyWallpaper; -import com.hd.phone.fresh.walls.R; -import com.hd.phone.fresh.walls.databinding.ClassTabViewBinding; -import com.hd.phone.fresh.walls.databinding.FragmentMainBinding; -import com.hd.phone.fresh.walls.json.Category; -import com.hd.phone.fresh.walls.json.Data; -import com.hd.phone.fresh.walls.mylistener.ItemClickListener; -import com.hd.phone.fresh.walls.utils.CommonUtils; -import com.hd.phone.fresh.walls.utils.CustomerTv; +import com.hd.wallpaper.free.walls.MyWallpaper; +import com.hd.wallpaper.free.walls.R; +import com.hd.wallpaper.free.walls.databinding.ClassTabViewBinding; +import com.hd.wallpaper.free.walls.databinding.FragmentMainBinding; +import com.hd.wallpaper.free.walls.json.Category; +import com.hd.wallpaper.free.walls.json.Data; +import com.hd.wallpaper.free.walls.mylistener.ItemClickListener; +import com.hd.wallpaper.free.walls.utils.CommonUtils; +import com.hd.wallpaper.free.walls.utils.CustomerTv; import java.util.ArrayList; import java.util.List; diff --git a/app/src/main/java/com/hd/phone/fresh/walls/ui/FragmentLike.java b/app/src/main/java/com/hd/wallpaper/free/walls/ui/FragmentLike.java similarity index 82% rename from app/src/main/java/com/hd/phone/fresh/walls/ui/FragmentLike.java rename to app/src/main/java/com/hd/wallpaper/free/walls/ui/FragmentLike.java index be95d41..a039832 100644 --- a/app/src/main/java/com/hd/phone/fresh/walls/ui/FragmentLike.java +++ b/app/src/main/java/com/hd/wallpaper/free/walls/ui/FragmentLike.java @@ -1,4 +1,4 @@ -package com.hd.phone.fresh.walls.ui; +package com.hd.wallpaper.free.walls.ui; import android.content.Intent; import android.os.Bundle; @@ -10,16 +10,16 @@ import android.view.ViewGroup; import androidx.fragment.app.Fragment; import androidx.recyclerview.widget.GridLayoutManager; -import com.hd.phone.fresh.walls.MyWallpaper; -import com.hd.phone.fresh.walls.R; -import com.hd.phone.fresh.walls.adapter.AdapterFavorite; -import com.hd.phone.fresh.walls.databinding.FragmentLikeBinding; -import com.hd.phone.fresh.walls.db.DbManager; -import com.hd.phone.fresh.walls.json.Data; -import com.hd.phone.fresh.walls.mylistener.ItemClickListener; -import com.hd.phone.fresh.walls.mylistener.OnLikeListener; -import com.hd.phone.fresh.walls.utils.CommonUtils; -import com.hd.phone.fresh.walls.utils.ItemSpace; +import com.hd.wallpaper.free.walls.MyWallpaper; +import com.hd.wallpaper.free.walls.R; +import com.hd.wallpaper.free.walls.adapter.AdapterFavorite; +import com.hd.wallpaper.free.walls.databinding.FragmentLikeBinding; +import com.hd.wallpaper.free.walls.db.DbManager; +import com.hd.wallpaper.free.walls.json.Data; +import com.hd.wallpaper.free.walls.mylistener.ItemClickListener; +import com.hd.wallpaper.free.walls.mylistener.OnLikeListener; +import com.hd.wallpaper.free.walls.utils.CommonUtils; +import com.hd.wallpaper.free.walls.utils.ItemSpace; import java.util.List; diff --git a/app/src/main/java/com/hd/phone/fresh/walls/utils/CommonKt.kt b/app/src/main/java/com/hd/wallpaper/free/walls/utils/CommonKt.kt similarity index 98% rename from app/src/main/java/com/hd/phone/fresh/walls/utils/CommonKt.kt rename to app/src/main/java/com/hd/wallpaper/free/walls/utils/CommonKt.kt index 07eea54..79696b5 100644 --- a/app/src/main/java/com/hd/phone/fresh/walls/utils/CommonKt.kt +++ b/app/src/main/java/com/hd/wallpaper/free/walls/utils/CommonKt.kt @@ -1,4 +1,4 @@ -package com.hd.phone.fresh.walls.utils +package com.hd.wallpaper.free.walls.utils import android.Manifest import android.app.Activity @@ -12,8 +12,8 @@ import android.os.Build import android.provider.MediaStore import android.util.Log import androidx.core.app.ActivityCompat -import com.hd.phone.fresh.walls.MyWallpaper -import com.hd.phone.fresh.walls.json.Data +import com.hd.wallpaper.free.walls.MyWallpaper +import com.hd.wallpaper.free.walls.json.Data import okhttp3.Call import okhttp3.Callback import okhttp3.OkHttpClient diff --git a/app/src/main/java/com/hd/phone/fresh/walls/utils/CommonUtils.java b/app/src/main/java/com/hd/wallpaper/free/walls/utils/CommonUtils.java similarity index 97% rename from app/src/main/java/com/hd/phone/fresh/walls/utils/CommonUtils.java rename to app/src/main/java/com/hd/wallpaper/free/walls/utils/CommonUtils.java index 4137a7a..644bad3 100644 --- a/app/src/main/java/com/hd/phone/fresh/walls/utils/CommonUtils.java +++ b/app/src/main/java/com/hd/wallpaper/free/walls/utils/CommonUtils.java @@ -1,10 +1,9 @@ -package com.hd.phone.fresh.walls.utils; +package com.hd.wallpaper.free.walls.utils; import android.app.Activity; import android.app.ActivityManager; import android.content.Context; import android.graphics.Bitmap; -import android.graphics.BitmapFactory; import android.graphics.Canvas; import android.graphics.drawable.BitmapDrawable; import android.graphics.drawable.Drawable; @@ -15,7 +14,7 @@ import android.view.View; import android.view.Window; import android.view.WindowManager; -import com.hd.phone.fresh.walls.MyWallpaper; +import com.hd.wallpaper.free.walls.MyWallpaper; import java.io.BufferedReader; import java.io.File; diff --git a/app/src/main/java/com/hd/phone/fresh/walls/utils/CustomerTv.java b/app/src/main/java/com/hd/wallpaper/free/walls/utils/CustomerTv.java similarity index 85% rename from app/src/main/java/com/hd/phone/fresh/walls/utils/CustomerTv.java rename to app/src/main/java/com/hd/wallpaper/free/walls/utils/CustomerTv.java index e802869..ae6c062 100644 --- a/app/src/main/java/com/hd/phone/fresh/walls/utils/CustomerTv.java +++ b/app/src/main/java/com/hd/wallpaper/free/walls/utils/CustomerTv.java @@ -1,4 +1,4 @@ -package com.hd.phone.fresh.walls.utils; +package com.hd.wallpaper.free.walls.utils; import android.content.Context; import android.content.res.TypedArray; @@ -6,8 +6,8 @@ import android.util.AttributeSet; import androidx.annotation.Nullable; -import com.hd.phone.fresh.walls.MyWallpaper; -import com.hd.phone.fresh.walls.R; +import com.hd.wallpaper.free.walls.MyWallpaper; +import com.hd.wallpaper.free.walls.R; public class CustomerTv extends androidx.appcompat.widget.AppCompatTextView { diff --git a/app/src/main/java/com/hd/phone/fresh/walls/utils/ItemSpace.java b/app/src/main/java/com/hd/wallpaper/free/walls/utils/ItemSpace.java similarity index 97% rename from app/src/main/java/com/hd/phone/fresh/walls/utils/ItemSpace.java rename to app/src/main/java/com/hd/wallpaper/free/walls/utils/ItemSpace.java index a29952e..4b3e8f2 100644 --- a/app/src/main/java/com/hd/phone/fresh/walls/utils/ItemSpace.java +++ b/app/src/main/java/com/hd/wallpaper/free/walls/utils/ItemSpace.java @@ -1,4 +1,4 @@ -package com.hd.phone.fresh.walls.utils; +package com.hd.wallpaper.free.walls.utils; import android.graphics.Rect; import android.view.View; diff --git a/app/src/main/res/layout/activity_main.xml b/app/src/main/res/layout/activity_main.xml index 42ac648..e0b7354 100644 --- a/app/src/main/res/layout/activity_main.xml +++ b/app/src/main/res/layout/activity_main.xml @@ -9,7 +9,7 @@ android:paddingTop="30dp" tools:context=".ui.ActivityMain"> - - - -