diff --git a/.gitignore b/.gitignore index 75cb58c..9097567 100644 --- a/.gitignore +++ b/.gitignore @@ -16,6 +16,6 @@ local.properties /app/release/app-release.apk /app/release/baselineProfiles/0/app-release.dm /app/release/baselineProfiles/1/app-release.dm -/info/info.txt -/info/key_emoticon_test.jks /app/release/output-metadata.json + +/app/release/* diff --git a/app/src/main/java/com/timber/soft/myemoticon/MainFragment.kt b/app/src/main/java/com/timber/soft/myemoticon/MainFragment.kt index c98daae..4540f30 100644 --- a/app/src/main/java/com/timber/soft/myemoticon/MainFragment.kt +++ b/app/src/main/java/com/timber/soft/myemoticon/MainFragment.kt @@ -49,7 +49,6 @@ class OnItemClickListenerImpl(private val mcontext: Context) : OnItemClickListen startActivity(mcontext, intent, null) Log.d("onClick", "item has been click!") } - } interface OnItemClickListener { diff --git a/app/src/main/java/com/timber/soft/myemoticon/SetDetailsActivity.kt b/app/src/main/java/com/timber/soft/myemoticon/SetDetailsActivity.kt index 0e0babd..7ed9940 100644 --- a/app/src/main/java/com/timber/soft/myemoticon/SetDetailsActivity.kt +++ b/app/src/main/java/com/timber/soft/myemoticon/SetDetailsActivity.kt @@ -141,8 +141,11 @@ class SetDetailsActivity : AppCompatActivity(), DownloadListener { } else if (listFile.getName().endsWith(".webp")) { data.add(listFile) } else { + // 获取一个私有共享 preferences 对象 val sp = this.getSharedPreferences("", Context.MODE_PRIVATE) + // 使用 edit() 方法编辑 preferences sp.edit().putString(identifierName, listFile.absolutePath).apply() + // 将修改后的 preferences 返回给调用者 } } diff --git a/app/src/main/java/com/timber/soft/myemoticon/StickerProvider.kt b/app/src/main/java/com/timber/soft/myemoticon/StickerProvider.kt index 955c18a..b926dbf 100644 --- a/app/src/main/java/com/timber/soft/myemoticon/StickerProvider.kt +++ b/app/src/main/java/com/timber/soft/myemoticon/StickerProvider.kt @@ -140,7 +140,9 @@ class StickerProvider : ContentProvider() { /** * TODO no impl */ + // This method returns a string representing the type of a given URI override fun getType(uri: Uri): String? { + // If the URI matches the AppVal.STICKERS_CODE, return a formatted string containing the author and stickers if (uriMatcher.match(uri) == AppVal.STICKERS_CODE) { return String.format( context.getString(R.string.type_sticker), @@ -148,6 +150,7 @@ class StickerProvider : ContentProvider() { AppVal.STICKERS ) } + // Otherwise, return null return null } @@ -183,7 +186,9 @@ class StickerProvider : ContentProvider() { return filePath!!.substring(0, filePath.lastIndexOf("contents.json")) } + // This function is used to insert a new row of data into the database with the given URI and ContentValues. override fun insert(uri: Uri, values: ContentValues?): Uri? { + // This function returns the URI of the inserted row or null if the insertion failed. return null } diff --git a/info/info.txt b/info/info.txt new file mode 100644 index 0000000..a981107 --- /dev/null +++ b/info/info.txt @@ -0,0 +1,5 @@ +应用名:Color Sticker +包名:com.stickify.stickers.app + +别名:key_emoticon +密码: key123 \ No newline at end of file diff --git a/info/key_emoticon.jks b/info/key_emoticon.jks new file mode 100644 index 0000000..5d9ec66 Binary files /dev/null and b/info/key_emoticon.jks differ diff --git a/info/key_emoticon_test.jks b/info/key_emoticon_test.jks new file mode 100644 index 0000000..e5e93c0 Binary files /dev/null and b/info/key_emoticon_test.jks differ