[app] Add repo to shortcuts
This commit is contained in:
parent
bfe905fabf
commit
264065275a
|
|
@ -0,0 +1,28 @@
|
|||
<?xml version="1.0" encoding="utf-8"?><!--
|
||||
~ This file is part of LSPosed.
|
||||
~
|
||||
~ LSPosed is free software: you can redistribute it and/or modify
|
||||
~ it under the terms of the GNU General Public License as published by
|
||||
~ the Free Software Foundation, either version 3 of the License, or
|
||||
~ (at your option) any later version.
|
||||
~
|
||||
~ LSPosed is distributed in the hope that it will be useful,
|
||||
~ but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
~ GNU General Public License for more details.
|
||||
~
|
||||
~ You should have received a copy of the GNU General Public License
|
||||
~ along with LSPosed. If not, see <https://www.gnu.org/licenses/>.
|
||||
~
|
||||
~ Copyright (C) 2021 LSPosed Contributors
|
||||
-->
|
||||
|
||||
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<background android:drawable="@color/material_grey_100" />
|
||||
<foreground>
|
||||
<!-- 44dp icon scaled to 52dp in 72dp, padding = (1-52/44*24/72)/2 -->
|
||||
<inset
|
||||
android:drawable="@drawable/ic_get_app"
|
||||
android:inset="30.303%" />
|
||||
</foreground>
|
||||
</adaptive-icon>
|
||||
|
|
@ -25,6 +25,6 @@
|
|||
android:viewportHeight="24"
|
||||
android:tint="?attr/colorControlNormal">
|
||||
<path
|
||||
android:fillColor="@android:color/white"
|
||||
android:fillColor="@color/material_blue_500"
|
||||
android:pathData="M13,5v6h1.17L12,13.17 9.83,11L11,11L11,5h2m2,-2L9,3v6L5,9l7,7 7,-7h-4L15,3zM19,18L5,18v2h14v-2z" />
|
||||
</vector>
|
||||
|
|
|
|||
|
|
@ -42,4 +42,15 @@
|
|||
android:targetClass="io.github.lsposed.manager.ui.activity.LogsActivity"
|
||||
android:targetPackage="io.github.lsposed.manager" />
|
||||
</shortcut>
|
||||
<shortcut
|
||||
android:enabled="true"
|
||||
android:icon="@drawable/shortcut_ic_repo"
|
||||
android:shortcutId="Repo"
|
||||
android:shortcutLongLabel="@string/module_repo"
|
||||
android:shortcutShortLabel="@string/module_repo">
|
||||
<intent
|
||||
android:action="android.intent.action.MAIN"
|
||||
android:targetClass="io.github.lsposed.manager.ui.activity.RepoActivity"
|
||||
android:targetPackage="io.github.lsposed.manager" />
|
||||
</shortcut>
|
||||
</shortcuts>
|
||||
Loading…
Reference in New Issue