Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SystemUI: make long pressing recent switch to last app
With this patch, long pressing the recents key on the navigation bar will attempt to switch to your last application in the activity stack before the active one. The user's current home launcher package is ignored as well as SystemUI (so that RecentsActivity does not influence the behavior). Change-Id: I38771e0fce16b55bb5186af47115b4e812cb60b0 Signed-off-by: Roman Birg <roman@cyngn.com> Signed-off-by: Adnan Begovic <adnan@cyngn.com>
- Loading branch information
Showing
4 changed files
with
123 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<!-- Copyright (C) 2014 The CyanogenMod Project | ||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
http://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
--> | ||
|
||
<set xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:interpolator="@android:interpolator/linear"> | ||
|
||
<translate android:fromXDelta="0%" android:toXDelta="-35%" | ||
android:zAdjustment="bottom" | ||
android:duration="@android:integer/config_shortAnimTime" | ||
/> | ||
<scale android:fromXScale="0.80" android:toXScale="1.0" | ||
android:fromYScale="0.80" android:toYScale="1.0" | ||
android:pivotX="50%" android:pivotY="50%" | ||
android:duration="@android:integer/config_shortAnimTime" | ||
/> | ||
<translate android:fromXDelta="-35%" android:toXDelta="35%" | ||
android:zAdjustment="top" | ||
android:startOffset="@android:integer/config_shortAnimTime" | ||
android:duration="@android:integer/config_shortAnimTime" | ||
/> | ||
<alpha android:fromAlpha="0.6" android:toAlpha="1.0" | ||
android:duration="@android:integer/config_shortAnimTime" | ||
/> | ||
</set> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<!-- Copyright (C) 2014 The CyanogenMod Project | ||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
http://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
--> | ||
|
||
<set xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:interpolator="@android:interpolator/linear"> | ||
|
||
<translate android:fromXDelta="-35%" android:toXDelta="35%" | ||
android:zAdjustment="top" | ||
android:duration="@android:integer/config_shortAnimTime" | ||
/> | ||
<scale android:fromXScale="1.0" android:toXScale="0.80" | ||
android:fromYScale="1.0" android:toYScale="0.80" | ||
android:pivotX="50%" android:pivotY="50%" | ||
android:duration="@android:integer/config_shortAnimTime" | ||
/> | ||
<translate android:fromXDelta="35%" android:toXDelta="-35%" | ||
android:zAdjustment="bottom" | ||
android:startOffset="@android:integer/config_shortAnimTime" | ||
android:duration="@android:integer/config_shortAnimTime" | ||
/> | ||
<alpha android:fromAlpha="1.0" android:toAlpha="0.6" | ||
android:duration="@android:integer/config_shortAnimTime" | ||
/> | ||
</set> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters