зеркало из https://github.com/mozilla/gecko-dev.git
Bug 818021 - Use fade out transition when leaving awesome screen (r=mfinkle)
This commit is contained in:
Родитель
49c0bc96c5
Коммит
4bede739c1
|
@ -364,13 +364,13 @@ public class AwesomeBar extends GeckoActivity {
|
|||
private void cancelAndFinish() {
|
||||
setResult(Activity.RESULT_CANCELED);
|
||||
finish();
|
||||
overridePendingTransition(0, 0);
|
||||
overridePendingTransition(R.anim.awesomebar_hold_still, R.anim.awesomebar_fade_out);
|
||||
}
|
||||
|
||||
private void finishWithResult(Intent intent) {
|
||||
setResult(Activity.RESULT_OK, intent);
|
||||
finish();
|
||||
overridePendingTransition(0, 0);
|
||||
overridePendingTransition(R.anim.awesomebar_hold_still, R.anim.awesomebar_fade_out);
|
||||
}
|
||||
|
||||
private void openUrlAndFinish(String url) {
|
||||
|
|
|
@ -486,6 +486,7 @@ RES_XML = \
|
|||
|
||||
RES_ANIM = \
|
||||
res/anim/awesomebar_fade_in.xml \
|
||||
res/anim/awesomebar_fade_out.xml \
|
||||
res/anim/awesomebar_hold_still.xml \
|
||||
res/anim/grow_fade_in.xml \
|
||||
res/anim/grow_fade_in_center.xml \
|
||||
|
|
|
@ -0,0 +1,13 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- This Source Code Form is subject to the terms of the Mozilla Public
|
||||
- License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
|
||||
|
||||
<set xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
|
||||
<alpha android:interpolator="@android:anim/accelerate_interpolator"
|
||||
android:fromAlpha="1.0"
|
||||
android:toAlpha="0.0"
|
||||
android:duration="200"/>
|
||||
|
||||
</set>
|
Загрузка…
Ссылка в новой задаче