Skip to content

Commit 834a64e

Browse files
committed
Updated icons
1 parent 985d692 commit 834a64e

File tree

48 files changed

+14
-13
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+14
-13
lines changed

.idea/misc.xml

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
16.2 KB
23.1 KB

app/src/main/java/app/simple/positional/adapters/settings/AdapterIcons.kt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,10 @@ class AdapterIcons : RecyclerView.Adapter<AdapterIcons.Holder>() {
4949
context.packageManager.getComponentEnabledSetting(ComponentName(context, IconOneAlias::class.java)) -> {
5050
0
5151
}
52-
context.packageManager.getComponentEnabledSetting(ComponentName(context, IconTwoAlias::class.java)) -> {
52+
context.packageManager.getComponentEnabledSetting(ComponentName(context, IconLegacyAlias::class.java)) -> {
5353
1
5454
}
55-
context.packageManager.getComponentEnabledSetting(ComponentName(context, IconLegacyAlias::class.java)) -> {
55+
context.packageManager.getComponentEnabledSetting(ComponentName(context, IconTwoAlias::class.java)) -> {
5656
2
5757
}
5858
context.packageManager.getComponentEnabledSetting(ComponentName(context, IconThreeAlias::class.java)) -> {
@@ -87,8 +87,8 @@ class AdapterIcons : RecyclerView.Adapter<AdapterIcons.Holder>() {
8787

8888
private fun setIcon(context: Context, position: Int) {
8989
context.packageManager.setComponentEnabledSetting(ComponentName(context, IconOneAlias::class.java), getStatusFromPosition(position == 0), PackageManager.DONT_KILL_APP)
90-
context.packageManager.setComponentEnabledSetting(ComponentName(context, IconTwoAlias::class.java), getStatusFromPosition(position == 1), PackageManager.DONT_KILL_APP)
91-
context.packageManager.setComponentEnabledSetting(ComponentName(context, IconLegacyAlias::class.java), getStatusFromPosition(position == 2), PackageManager.DONT_KILL_APP)
90+
context.packageManager.setComponentEnabledSetting(ComponentName(context, IconLegacyAlias::class.java), getStatusFromPosition(position == 1), PackageManager.DONT_KILL_APP)
91+
context.packageManager.setComponentEnabledSetting(ComponentName(context, IconTwoAlias::class.java), getStatusFromPosition(position == 2), PackageManager.DONT_KILL_APP)
9292
context.packageManager.setComponentEnabledSetting(ComponentName(context, IconThreeAlias::class.java), getStatusFromPosition(position == 3), PackageManager.DONT_KILL_APP)
9393
context.packageManager.setComponentEnabledSetting(ComponentName(context, IconFourAlias::class.java), getStatusFromPosition(position == 4), PackageManager.DONT_KILL_APP)
9494
context.packageManager.setComponentEnabledSetting(ComponentName(context, IconFiveAlias::class.java), getStatusFromPosition(position == 5), PackageManager.DONT_KILL_APP)
@@ -110,8 +110,8 @@ class AdapterIcons : RecyclerView.Adapter<AdapterIcons.Holder>() {
110110
companion object {
111111
val list = arrayListOf(
112112
R.mipmap.ic_launcher_default,
113-
R.mipmap.ic_launcher_two,
114113
R.mipmap.ic_launcher_legacy,
114+
R.mipmap.ic_launcher_two,
115115
R.mipmap.ic_launcher_three,
116116
R.mipmap.ic_launcher_four,
117117
R.mipmap.ic_launcher_five,
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
3-
<background android:drawable="@color/ic_launcher_three_background" />
4-
<foreground android:drawable="@mipmap/ic_launcher_three_foreground" />
3+
<background android:drawable="@mipmap/ic_launcher_three_background"/>
4+
<foreground android:drawable="@mipmap/ic_launcher_three_foreground"/>
55
</adaptive-icon>
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
3-
<background android:drawable="@color/ic_launcher_three_background" />
4-
<foreground android:drawable="@mipmap/ic_launcher_three_foreground" />
3+
<background android:drawable="@mipmap/ic_launcher_three_background"/>
4+
<foreground android:drawable="@mipmap/ic_launcher_three_foreground"/>
55
</adaptive-icon>
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
3-
<background android:drawable="@color/ic_launcher_two_background" />
4-
<foreground android:drawable="@mipmap/ic_launcher_two_foreground" />
3+
<background android:drawable="@mipmap/ic_launcher_two_background"/>
4+
<foreground android:drawable="@mipmap/ic_launcher_two_foreground"/>
55
</adaptive-icon>
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
3-
<background android:drawable="@color/ic_launcher_two_background" />
4-
<foreground android:drawable="@mipmap/ic_launcher_two_foreground" />
3+
<background android:drawable="@mipmap/ic_launcher_two_background"/>
4+
<foreground android:drawable="@mipmap/ic_launcher_two_foreground"/>
55
</adaptive-icon>
879 Bytes
4.15 KB

0 commit comments

Comments
 (0)