import android.content.Context;
import android.content.Intent;
-import android.graphics.Color;
import android.graphics.drawable.ColorDrawable;
import android.util.Log;
import android.view.LayoutInflater;
final boolean sameProfile = currentProfile.equals(myProfile);
view.setAlpha(sameProfile ? 1 : 0.5f);
});
+
+ holder.mRearrangeHandle.setOnTouchListener((v, event) -> {
+ rearrangeHelper.startDrag(holder);
+ return true;
+ });
return holder;
}
@Override
holder.itemView.setTag(profile);
int hue = profile.getThemeId();
- if (hue == -1) holder.mColorTag.setBackgroundColor(Color.TRANSPARENT);
+ if (hue == -1) holder.mColorTag
+ .setBackgroundColor(Colors.getPrimaryColorForHue(Colors.DEFAULT_HUE_DEG));
else holder.mColorTag.setBackgroundColor(Colors.getPrimaryColorForHue(hue));
holder.mTitle.setText(profile.getName());