Proper shortcut name

This commit is contained in:
topjohnwu 2021-01-24 07:59:37 -08:00
parent c97fb385cd
commit c609a01e55
6 changed files with 5 additions and 6 deletions

View File

@ -29,7 +29,7 @@ object Shortcuts {
val manager = context.getSystemService<ShortcutManager>() ?: return val manager = context.getSystemService<ShortcutManager>() ?: return
val intent = context.packageManager.getLaunchIntentForPackage(context.packageName) ?: return val intent = context.packageManager.getLaunchIntentForPackage(context.packageName) ?: return
val info = ShortcutInfo.Builder(context, Const.Nav.HOME) val info = ShortcutInfo.Builder(context, Const.Nav.HOME)
.setShortLabel(context.getString(R.string.app_name)) .setShortLabel(context.getString(R.string.magisk))
.setIntent(intent) .setIntent(intent)
.setIcon(context.getIcon(R.drawable.ic_launcher)) .setIcon(context.getIcon(R.drawable.ic_launcher))
.build() .build()

View File

@ -64,7 +64,7 @@
app:layout_constraintStart_toEndOf="@+id/hide_icon" app:layout_constraintStart_toEndOf="@+id/hide_icon"
app:layout_constraintTop_toTopOf="parent" app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_chainStyle="packed" app:layout_constraintVertical_chainStyle="packed"
tools:text="@string/app_name" /> tools:text="@string/magisk" />
<TextView <TextView
android:id="@+id/hide_package" android:id="@+id/hide_package"

View File

@ -58,7 +58,7 @@
app:layout_constraintEnd_toEndOf="parent" app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent" app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" app:layout_constraintTop_toTopOf="parent"
tools:text="@string/app_name" /> tools:text="@string/magisk" />
<TextView <TextView
android:id="@+id/log_date" android:id="@+id/log_date"

View File

@ -61,7 +61,7 @@
app:layout_constraintEnd_toStartOf="@+id/policy_indicator" app:layout_constraintEnd_toStartOf="@+id/policy_indicator"
app:layout_constraintStart_toEndOf="@+id/policy_app_icon" app:layout_constraintStart_toEndOf="@+id/policy_app_icon"
app:layout_constraintTop_toTopOf="@+id/policy_app_icon" app:layout_constraintTop_toTopOf="@+id/policy_app_icon"
tools:text="@string/app_name" /> tools:text="@string/magisk" />
<TextView <TextView
android:id="@+id/policy_package_name" android:id="@+id/policy_package_name"

View File

@ -2,7 +2,6 @@
<resources> <resources>
<!-- Static strings --> <!-- Static strings -->
<string name="app_name" translatable="false">Magisk Manager</string>
<string name="magisk" translatable="false">Magisk</string> <string name="magisk" translatable="false">Magisk</string>
<string name="magiskhide" translatable="false">MagiskHide</string> <string name="magiskhide" translatable="false">MagiskHide</string>
<string name="empty" translatable="false"/> <string name="empty" translatable="false"/>

View File

@ -28,6 +28,6 @@ kapt.incremental.apt=true
# Magisk # Magisk
magisk.stubVersion=16 magisk.stubVersion=16
magisk.versionCode=21401 magisk.versionCode=21402
magisk.ndkVersion=21d magisk.ndkVersion=21d
magisk.fullNdkVersion=21.3.6528147 magisk.fullNdkVersion=21.3.6528147