Compare commits

..

No commits in common. "0804791bd239b5797c7662f46e854f106ea10f7e" and "0497e2503bffe4d6527c24cb8e2f523bea6ccb2a" have entirely different histories.

3 changed files with 6 additions and 8 deletions

View File

@ -2,9 +2,6 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools">
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<application
android:allowBackup="true"
android:dataExtractionRules="@xml/data_extraction_rules"

View File

@ -171,10 +171,11 @@ abstract class BookkeepingDatabase : RoomDatabase() {
insertCategory(Category(name = "娱乐", type = TransactionType.EXPENSE, icon = R.drawable.ic_category_bar_24dp)) // "娱乐" to R.drawable.ic_category_bar_24dp
insertCategory(Category(name = "居住", type = TransactionType.EXPENSE, icon = R.drawable.ic_category_hotel_24dp)) // "居住" to R.drawable.ic_category_hotel_24dp
insertCategory(Category(name = "医疗", type = TransactionType.EXPENSE, icon = R.drawable.ic_category_medicine_24dp)) // "医疗" to R.drawable.ic_category_medicine_24dp
insertCategory(Category(name = "教育", type = TransactionType.EXPENSE, icon = R.drawable.ic_category_training_24dp)) // "教育" to R.drawable.ic_category_training_24dp
insertCategory(Category(name = "教育", type = TransactionType.EXPENSE, icon = R.drawable.ic_category_training_24dp)) // "培训" to R.drawable.ic_category_training_24dp
insertCategory(Category(name = "宠物", type = TransactionType.EXPENSE, icon = R.drawable.ic_category_pet_24dp)) // "宠物" to R.drawable.ic_category_pet_24dp
insertCategory(Category(name = "鲜花", type = TransactionType.EXPENSE, icon = R.drawable.ic_category_flower_24dp)) // "鲜花" to R.drawable.ic_category_flower_24dp
insertCategory(Category(name = "外卖", type = TransactionType.EXPENSE, icon = R.drawable.ic_category_delivery_24dp)) // "外卖" to R.drawable.ic_category_delivery_24dp
insertCategory(Category(name = "花卉", type = TransactionType.EXPENSE, icon = R.drawable.ic_category_flower_24dp)) // "鲜花" to R.drawable.ic_category_flower_24dp
insertCategory(Category(name = "酒吧", type = TransactionType.EXPENSE, icon = R.drawable.ic_category_bar_24dp)) // "娱乐" to R.drawable.ic_category_bar_24dp
insertCategory(Category(name = "快递", type = TransactionType.EXPENSE, icon = R.drawable.ic_category_delivery_24dp)) // "外卖" to R.drawable.ic_category_delivery_24dp
insertCategory(Category(name = "数码", type = TransactionType.EXPENSE, icon = R.drawable.ic_category_digital_24dp)) // "数码" to R.drawable.ic_category_digital_24dp
insertCategory(Category(name = "化妆品", type = TransactionType.EXPENSE, icon = R.drawable.ic_category_cosmetics_24dp)) // "化妆品" to R.drawable.ic_category_cosmetics_24dp
insertCategory(Category(name = "水果", type = TransactionType.EXPENSE, icon = R.drawable.ic_category_fruit_24dp)) // "水果" to R.drawable.ic_category_fruit_24dp

View File

@ -15,9 +15,10 @@ object IconManager {
"娱乐" to R.drawable.ic_category_bar_24dp,
"居住" to R.drawable.ic_category_hotel_24dp,
"医疗" to R.drawable.ic_category_medicine_24dp,
"教育" to R.drawable.ic_category_training_24dp,
"培训" to R.drawable.ic_category_training_24dp,
"宠物" to R.drawable.ic_category_pet_24dp,
"鲜花" to R.drawable.ic_category_flower_24dp,
"娱乐" to R.drawable.ic_category_bar_24dp,
"外卖" to R.drawable.ic_category_delivery_24dp,
"数码" to R.drawable.ic_category_digital_24dp,
"化妆品" to R.drawable.ic_category_cosmetics_24dp,
@ -28,7 +29,6 @@ object IconManager {
"礼物" to R.drawable.ic_category_gift_24dp,
"其他" to R.drawable.ic_category_more_24dp,
"工资" to R.drawable.ic_category_membership_24dp,
"会员" to R.drawable.ic_category_membership_24dp,
"奖金" to R.drawable.ic_category_gift_24dp,
"投资" to R.drawable.ic_category_digital_24dp,
"其他" to R.drawable.ic_category_more_24dp