Merge "Remove old animation" into klp-dev
This commit is contained in:
@@ -18,7 +18,5 @@
|
||||
-->
|
||||
<resources>
|
||||
<integer name="kg_carousel_angle">75</integer>
|
||||
<integer name="kg_security_flip_duration">100</integer>
|
||||
<integer name="kg_security_fade_duration">100</integer>
|
||||
<integer name="kg_glowpad_rotation_offset">0</integer>
|
||||
</resources>
|
||||
|
||||
@@ -1,33 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Copyright (C) 2012 The Android Open Source 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:shareInterpolator="false">
|
||||
|
||||
<scale
|
||||
android:interpolator="@android:anim/decelerate_interpolator"
|
||||
android:fromXScale="0.0"
|
||||
android:toXScale="1.0"
|
||||
android:fromYScale="1.0"
|
||||
android:toYScale="1.0"
|
||||
android:pivotX="50%"
|
||||
android:pivotY="50%"
|
||||
android:fillEnabled="true"
|
||||
android:fillAfter="true"
|
||||
android:duration="@integer/kg_security_flip_duration"
|
||||
android:startOffset="@integer/kg_security_flip_duration" />
|
||||
|
||||
</set>
|
||||
|
||||
@@ -1,32 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Copyright (C) 2012 The Android Open Source 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:shareInterpolator="false">
|
||||
|
||||
<scale
|
||||
android:interpolator="@android:anim/accelerate_interpolator"
|
||||
android:fromXScale="1.0"
|
||||
android:toXScale="0.0"
|
||||
android:fromYScale="1.0"
|
||||
android:toYScale="1.0"
|
||||
android:pivotX="50%"
|
||||
android:pivotY="50%"
|
||||
android:fillEnabled="true"
|
||||
android:fillAfter="true"
|
||||
android:duration="@integer/kg_security_flip_duration" />
|
||||
|
||||
</set>
|
||||
|
||||
@@ -1,22 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Copyright (C) 2012 The Android Open Source 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.
|
||||
-->
|
||||
|
||||
<alpha xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:interpolator="@android:interpolator/decelerate_quad"
|
||||
android:fromAlpha="0.0" android:toAlpha="1.0"
|
||||
android:duration="@integer/kg_security_fade_duration" />
|
||||
|
||||
|
||||
@@ -1,21 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Copyright (C) 2012 The Android Open Source 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.
|
||||
-->
|
||||
<alpha xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:interpolator="@android:interpolator/accelerate_quad"
|
||||
android:fromAlpha="1.0"
|
||||
android:toAlpha="0.0"
|
||||
android:duration="@integer/kg_security_fade_duration"
|
||||
/>
|
||||
@@ -18,7 +18,5 @@
|
||||
-->
|
||||
<resources>
|
||||
<integer name="kg_carousel_angle">75</integer>
|
||||
<integer name="kg_security_flip_duration">100</integer>
|
||||
<integer name="kg_security_fade_duration">100</integer>
|
||||
<integer name="kg_glowpad_rotation_offset">0</integer>
|
||||
</resources>
|
||||
|
||||
@@ -54,7 +54,6 @@ import android.view.LayoutInflater;
|
||||
import android.view.MotionEvent;
|
||||
import android.view.View;
|
||||
import android.view.WindowManager;
|
||||
import android.view.animation.AnimationUtils;
|
||||
import android.widget.RemoteViews.OnClickHandler;
|
||||
|
||||
import java.io.File;
|
||||
@@ -971,10 +970,6 @@ public class KeyguardHostView extends KeyguardViewBase {
|
||||
// Find and show this child.
|
||||
final int childCount = mSecurityViewContainer.getChildCount();
|
||||
|
||||
mSecurityViewContainer.setInAnimation(
|
||||
AnimationUtils.loadAnimation(mContext, R.anim.keyguard_security_fade_in));
|
||||
mSecurityViewContainer.setOutAnimation(
|
||||
AnimationUtils.loadAnimation(mContext, R.anim.keyguard_security_fade_out));
|
||||
final int securityViewIdForMode = getSecurityViewIdForMode(securityMode);
|
||||
for (int i = 0; i < childCount; i++) {
|
||||
if (mSecurityViewContainer.getChildAt(i).getId() == securityViewIdForMode) {
|
||||
|
||||
Reference in New Issue
Block a user