Rename "badges" to "dots" where appropriate

This will reduce confusion with the other "badging" concept we use for,
e.g. work profiles. It is also consistent with the external name
"notification dots".

Change-Id: I2a2c9d96dc0d6284eb0c48adc78a856271caad4d
This commit is contained in:
Tony Wickham
2018-12-03 18:11:39 -08:00
parent de78d7ca78
commit f34bee819c
111 changed files with 685 additions and 687 deletions

View File

@@ -39,7 +39,6 @@ import android.view.View;
import com.android.launcher3.CellLayout;
import com.android.launcher3.DeviceProfile;
import com.android.launcher3.Launcher;
import com.android.launcher3.R;
import com.android.launcher3.util.Themes;
import com.android.launcher3.views.ActivityContext;
@@ -64,7 +63,7 @@ public class PreviewBackground {
float mScale = 1f;
private float mColorMultiplier = 1f;
private int mBgColor;
private int mBadgeColor;
private int mDotColor;
private float mStrokeWidth;
private int mStrokeAlpha = MAX_BG_OPACITY;
private int mShadowAlpha = 255;
@@ -127,7 +126,7 @@ public class PreviewBackground {
int availableSpaceX, int topPadding) {
mInvalidateDelegate = invalidateDelegate;
mBgColor = Themes.getAttrColor(context, android.R.attr.colorPrimary);
mBadgeColor = Themes.getAttrColor(context, R.attr.folderBadgeColor);
mDotColor = Themes.getAttrColor(context, R.attr.folderDotColor);
DeviceProfile grid = activity.getDeviceProfile();
previewSize = grid.folderIconSizePx;
@@ -193,8 +192,8 @@ public class PreviewBackground {
return setColorAlphaBound(mBgColor, alpha);
}
public int getBadgeColor() {
return mBadgeColor;
public int getDotColor() {
return mDotColor;
}
public void drawBackground(Canvas canvas) {