[Beta] Potato Shortcut (Custom Application shortcut in expanded view or anywhere) topic


What is this?
This will let you add custom application shortcuts in expanded view

Screenshots

Hihi lolz

How to use?
Decompile your SystemUI (Must be Deodex)

Download the attached file
Extract the attached file
You now have 2 files , pkg.apk and SystemUISmali.zip
Install pkg.apk (Normal install)
Extract SystemUISmali.zip
You now have the smali files, paste it in the smali folder of your decompiled SystemUI

Go to res/layout/status_bar_tracking.xml
You will see this line


Code:


<com.android.systemui.statusbar.CloseDragHandle
android:id="@+id/close"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical" >


Paste this code after that line


Code:


<HorizontalScrollView
android:layout_width="match_parent"
android:layout_height="wrap_content">

<com.android.systemui.statusbar.potato.shortcuts.ShortcutView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="horizontal" />

</HorizontalScrollView>


NOTE. You can put the code everywhere you like, I just put it in the close drag handle just to be just LOL.
Tested in Galaxy and KitKat ROM by Vanya (Dunno his XDA name)


Known bug
This is in beta stage so expect minor bug
Shortcut icon is sometimes missing after a reboot - Solution, just update the shortcuts icon (This will be fixed in next release)

Permission
You can use this mod to your awesome ROM but don't change the smali names and the app name PLEASE , fixing bugs is harder than moving on (HUGOT!).

Credits
The PotatoInc (mariozawa)








Attached Thumbnails


Click image for larger version<br/><br/>Name:	device-2015-05-19-113226.png<br/>Views:	N/A<br/>Size:	11.5 KB<br/>ID:	3320734
 

Click image for larger version<br/><br/>Name:	device-2015-05-19-113253.png<br/>Views:	N/A<br/>Size:	37.2 KB<br/>ID:	3320735
 











Attached Files





File Type: zip Potato Shortcut.zip -
[Click for QR Code]
(747.9 KB)








0 commentaires:

Remarque : Seul un membre de ce blog est autorisé à enregistrer un commentaire.