Skip to content

Commit

Permalink
LastApp Toggle [1/2]
Browse files Browse the repository at this point in the history
Creates an action useable by NavBar & NavRing to toggle
between most recent apps.  Will try to ignore the launcher
when possible.  ie, if you've just rebooted and have not opened any
apps, it will do nothing.  if you open 1 app, it will toggle between
that 1 app and the launcher.  Once two apps have been opened, it will
toggle between those two apps.
It's kind of like opening recents and hitting your ParanoidAndroid#2 slot repeatedly

PS 2:  Add Icons from Hoolm.  {Thanks!}
       Re-wrote the logic for selecting next app.  Rather than
toggling back to launcher if only 1 app open, it does nothing.
toggling only occurs now when there are at least two apps open.
One issue that I still need to work out is that 'Recents' is somehow
showing up as a valid target to toggle to.  It shouldn't.

ps 3:  getRunningTasks() does not filter out 'Excludefromrecents'.
Thus we need checks for 'default launcher' and SystemUI.
as I write this, I realize I might be able to query the
ExcludeFromRecents flag of the package a bit more easily.

ps 4: Whitespace fix.
ps 5: one more whitespace fix.
ps 6: remove unnecessary dependency

Signed-off-by: Zaphod <[email protected]>
Change-Id: I0b59121b07b9ba44a2837a8db0266441ed82f9a3

Conflicts:
	packages/SystemUI/res/values/strings.xml
	packages/SystemUI/src/com/android/systemui/SearchPanelView.java
	packages/SystemUI/src/com/android/systemui/aokp/AwesomeAction.java
  • Loading branch information
manelscout4life committed Mar 26, 2013
1 parent 415fe67 commit a66ee2c
Show file tree
Hide file tree
Showing 3 changed files with 1,812 additions and 0 deletions.
Loading

0 comments on commit a66ee2c

Please sign in to comment.