Bug 818021 - Use fade out transition when leaving awesome screen (r=mfinkle)

This commit is contained in:
Lucas Rocha 2012-12-05 16:46:17 +00:00
Родитель 49c0bc96c5
Коммит 4bede739c1
3 изменённых файлов: 16 добавлений и 2 удалений

Просмотреть файл

@ -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>