OSDN Git Service

Remove unnecessary casts on calls to findViewById
[android-x86/frameworks-base.git] / tests / VectorDrawableTest / src / com / android / test / dynamic / AnimatedVectorDrawableAttr.java
index 8de2f6b..47ca482 100644 (file)
@@ -25,7 +25,7 @@ public class AnimatedVectorDrawableAttr extends Activity {
         super.onCreate(savedInstanceState);
         setContentView(R.layout.activity_animated_vector_drawable_attr);
 
-        ImageView avdIv = (ImageView) findViewById(R.id.avd);
+        ImageView avdIv = findViewById(R.id.avd);
         AnimatedVectorDrawable avd = (AnimatedVectorDrawable) avdIv.getDrawable();
         avd.start();
     }