Skip to content

Commit

Permalink
Clean
Browse files Browse the repository at this point in the history
  • Loading branch information
nielsandriesse committed May 14, 2021
1 parent 92acb50 commit 9ab58c2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 76 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ public enum MaterialColor {

private final String serialized;


MaterialColor(@ColorRes int mainColor, @ColorRes int tintColor, @ColorRes int shadeColor, String serialized) {
this.mainColor = mainColor;
this.tintColor = tintColor;
Expand Down Expand Up @@ -110,9 +109,9 @@ public enum MaterialColor {
}

public boolean represents(Context context, int colorValue) {
return context.getResources().getColor(mainColor) == colorValue ||
context.getResources().getColor(tintColor) == colorValue ||
context.getResources().getColor(shadeColor) == colorValue;
return context.getResources().getColor(mainColor) == colorValue
|| context.getResources().getColor(tintColor) == colorValue
|| context.getResources().getColor(shadeColor) == colorValue;
}

public String serialize() {
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
package org.session.libsession.utilities.color.spans;


import androidx.annotation.NonNull;
import android.text.TextPaint;
import android.text.style.MetricAffectingSpan;

public class CenterAlignedRelativeSizeSpan extends MetricAffectingSpan {

private final float relativeSize;

public CenterAlignedRelativeSizeSpan(float relativeSize) {
Expand Down

0 comments on commit 9ab58c2

Please sign in to comment.