Minor styling improvements

This commit is contained in:
Michael Schättgen 2017-12-30 01:14:45 +01:00
parent 3a396fe3f6
commit c82cfca4f8
3 changed files with 10 additions and 3 deletions

View file

@ -1,6 +1,8 @@
package me.impy.aegis;
import android.animation.ObjectAnimator;
import android.graphics.Color;
import android.graphics.PorterDuff;
import android.os.Handler;
import android.support.v7.widget.RecyclerView;
import android.view.View;
@ -31,6 +33,9 @@ public class KeyProfileHolder extends RecyclerView.ViewHolder {
_profileDrawable = view.findViewById(R.id.ivTextDrawable);
_progressBar = view.findViewById(R.id.progressBar);
_uiHandler = new Handler();
int primaryColorId = view.getContext().getResources().getColor(R.color.colorPrimary);
_progressBar.getProgressDrawable().setColorFilter(primaryColorId, PorterDuff.Mode.SRC_IN);
}
public void setData(KeyProfile profile, boolean showIssuer) {