How to have folders auto close after app launch


Rayanmx

Members
3 Dec 2010
4
11
Hello everyone!

Sorry to post this here but I couldn't find a Feature Request forum anywhere... :confused:

Is it possible to have folders auto close after app launch?

I've seen this on other launchers (I think it was Launcher Pro) and it really makes the experience a lot better!

Best regards,
RayanMX
 
It's a really small Mod. I've attached my modified Launcher2.apk if you want to try it.. Just push Launcher2.apk to /system/app/

If you'd rather do the mod yourself I can let you know what I changed..


Launcher2.apk
 
Andy, I'd like to do this mod myself. Would you post instructions or a quick how-to, if you don't mind?
 
Andy, I'd like to do this mod myself. Would you post instructions or a quick how-to, if you don't mind?

Here you go..

Decompile Launcher2.apk
Open \com\android\launcher2\UserFolder.smali

Look for the Method "onItemClick"

Paste the code below at the end of the Method just before the "goto :goto_0" statement.

Recompile and push to /system/app

You may notice that you lose any Widgets that you had on your Desktop. I went into Manage Applications, selected Launcher2 from the list and cleared the data. That restored my desktop back to how it was. But you can always just add the missing Widgets back in again manually if that's easier.

Hope this helps??


.line 166
iget-object v1, p0, Lcom/android/launcher2/UserFolder;->mLauncher:Lcom/android/launcher2/Launcher;

invoke-virtual {v1, p0}, Lcom/android/launcher2/Launcher;->closeFolder(Lcom/android/launcher2/Folder;)Z