Fix GalleryHeader

This commit is contained in:
seven332 committed 2019-06-15 12:02:53 +08:00
1 parent 06fd28290c
commit 9707ac470a
1 file changed
+3 -5
@@ -61,11 +61,9 @@ public class GalleryHeader extends ViewGroup {
protected void onFinishInflate() {
super.onFinishInflate();
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.P) {
battery = findViewById(R.id.battery);
progress = findViewById(R.id.progress);
clock = findViewById(R.id.clock);
}
battery = findViewById(R.id.battery);
progress = findViewById(R.id.progress);
clock = findViewById(R.id.clock);
}
private void measureChild(Rect rect, View view, int width, int paddingLeft, int paddingRight) {