Skip to content

Commit a05592a

Browse files
author
Paul Ruiz
committed
little formatting to make things more readable
1 parent d014370 commit a05592a

File tree

2 files changed

+14
-4
lines changed

2 files changed

+14
-4
lines changed

IconColorization/app/src/main/java/com/ptrprograms/iconcolorization/activity/MainActivity.java

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,19 @@ protected void onCreate(Bundle savedInstanceState) {
5151
mDrawableUrlImage = (ImageView) findViewById( R.id.url_drawable );
5252
mDrawableUrlTransformedImage = (ImageView) findViewById( R.id.transformed_url_drawable );
5353

54-
Picasso.with( this ).load( R.drawable.ic_star ).transform( new ColorTransformation(getResources().getColor( R.color.local_drawable_color ) ) ).into( mDrawableTransformedImage );
55-
Picasso.with( this ).load( getString( R.string.image_url ) ).into( mDrawableUrlImage );
56-
Picasso.with( this ).load( getString( R.string.image_url ) ).transform( new ColorTransformation( getResources().getColor( R.color.remote_image_color ) ) ).into( mDrawableUrlTransformedImage );
54+
Picasso.with( this )
55+
.load( R.drawable.ic_star )
56+
.transform( new ColorTransformation(getResources().getColor( R.color.local_drawable_color ) ) )
57+
.into( mDrawableTransformedImage );
58+
59+
Picasso.with( this )
60+
.load( getString( R.string.image_url ) )
61+
.into( mDrawableUrlImage );
62+
63+
Picasso.with( this )
64+
.load( getString( R.string.image_url ) )
65+
.transform( new ColorTransformation( getResources().getColor( R.color.remote_image_color ) ) )
66+
.into( mDrawableUrlTransformedImage );
5767

5868
if( Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB )
5969
Picasso.with( this ).load( R.drawable.ic_star ).transform( new ColorTransformation( getResources().getColor( R.color.action_bar_icon_color ) ) ).into(ActionBarIconTarget);

IconColorization/app/src/main/java/com/ptrprograms/iconcolorization/utility/ColorTransformation.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public class ColorTransformation implements Transformation {
1818
public ColorTransformation() {
1919

2020
}
21-
21+
2222
public ColorTransformation( int color ) {
2323
setColor( color );
2424
}

0 commit comments

Comments
 (0)