Skip to content

Commit

Permalink
Merge pull request #54 from DevFactory/release/multiple-quality-impro…
Browse files Browse the repository at this point in the history
…vements-fix-1

Multiple quality improvements
  • Loading branch information
wasabeef committed May 9, 2016
2 parents 79ecd6b + c402394 commit 8111d58
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions richeditor/src/main/java/jp/wasabeef/richeditor/Utils.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@

public final class Utils {

private Utils() throws InstantiationException {
throw new InstantiationException("This class is not for instantiation");
}

public static String toBase64(Bitmap bitmap) {
ByteArrayOutputStream baos = new ByteArrayOutputStream();
bitmap.compress(Bitmap.CompressFormat.PNG, 100, baos);
Expand Down
4 changes: 2 additions & 2 deletions sample/src/main/java/jp/wasabeef/sample/MainActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ public class MainActivity extends AppCompatActivity {
});

findViewById(R.id.action_txt_color).setOnClickListener(new View.OnClickListener() {
boolean isChanged;
private boolean isChanged;

@Override public void onClick(View v) {
mEditor.setTextColor(isChanged ? Color.BLACK : Color.RED);
Expand All @@ -127,7 +127,7 @@ public class MainActivity extends AppCompatActivity {
});

findViewById(R.id.action_bg_color).setOnClickListener(new View.OnClickListener() {
boolean isChanged;
private boolean isChanged;

@Override public void onClick(View v) {
mEditor.setTextBackgroundColor(isChanged ? Color.TRANSPARENT : Color.YELLOW);
Expand Down

0 comments on commit 8111d58

Please sign in to comment.