How to have folders auto close after app launch

Discussion in 'Question & Answers' started by Rayanmx, May 6, 2011.

  1. Rayanmx

    RayanmxMembers

    Dec 3, 2010
    4
    0
    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
     
  2. bryanchapman9999

    Nov 22, 2010
    37
    0
    16
    Oh man, I would love this....!
     
  3. Zeak Zikansson

    Jun 18, 2011
    63
    0
    16
    Graphic & Web Designer, Web development made e
    Manchester, Lancashire, United Kingdom
    Me too. See no point in keeping them open..
     
  4. Andy Thomson

    Andy ThomsonStaff Developer

    May 10, 2011
    1,316
    616
    230
    Senior Software Engineer
    Edinburgh, United Kingdom, United Kingdom
    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
     
  5. Dead-I

    Dead-IMembers

    Nov 21, 2010
    77
    1
    18
    Thanks for the mod Andy.
     
  6. Andy Thomson

    Andy ThomsonStaff Developer

    May 10, 2011
    1,316
    616
    230
    Senior Software Engineer
    Edinburgh, United Kingdom, United Kingdom
    No Problem.. Glad it's working for you...
     
  7. ZeroBarrier

    Nov 24, 2010
    249
    0
    38
    Las Vegas, NV
    Andy, I'd like to do this mod myself. Would you post instructions or a quick how-to, if you don't mind?
     
  8. samuaz

    samuazMembers

    Nov 14, 2010
    14
    0
    11
    +1 Quick how-to please i like make it for miui spanish.. tanx
     
  9. Andy Thomson

    Andy ThomsonStaff Developer

    May 10, 2011
    1,316
    616
    230
    Senior Software Engineer
    Edinburgh, United Kingdom, United Kingdom
    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
     

Share Our Site