Skip to content
This repository was archived by the owner on Jan 14, 2025. It is now read-only.

Commit 0b55c14

Browse files
Update TapIntroHelper.java
[ci skip]
1 parent c9d6d50 commit 0b55c14

File tree

1 file changed

+49
-47
lines changed

1 file changed

+49
-47
lines changed

Diff for: core/src/main/java/com/dm/material/dashboard/candybar/helpers/TapIntroHelper.java

+49-47
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,8 @@ public static void showHomeIntros(@NonNull Context context, @Nullable RecyclerVi
5959
tapTargetSequence.continueOnCancel(true);
6060

6161
Typeface title = TypefaceHelper.getMedium(context);
62-
Typeface description = TypefaceHelper.getRegular(context);
62+
//Todo:
63+
//Typeface description = TypefaceHelper.getRegular(context);
6364

6465
if (toolbar != null) {
6566
TapTarget tapTarget = TapTarget.forToolbarNavigationIcon(toolbar,
@@ -71,12 +72,13 @@ public static void showHomeIntros(@NonNull Context context, @Nullable RecyclerVi
7172
.drawShadow(Preferences.get(context).isTapIntroShadowEnabled());
7273

7374
if (title != null) {
74-
tapTarget.titleTypeface(title);
75+
tapTarget.textTypeface(title);
7576
}
7677

77-
if (description != null) {
78-
tapTarget.descriptionTypeface(description);
79-
}
78+
//Todo:
79+
//if (description != null) {
80+
//tapTarget.descriptionTypeface(description);
81+
//}
8082

8183
tapTargetSequence.target(tapTarget);
8284
}
@@ -105,12 +107,12 @@ public static void showHomeIntros(@NonNull Context context, @Nullable RecyclerVi
105107
.drawShadow(Preferences.get(context).isTapIntroShadowEnabled());
106108

107109
if (title != null) {
108-
tapTarget.titleTypeface(title);
110+
tapTarget.textTypeface(title);
109111
}
110112

111-
if (description != null) {
112-
tapTarget.descriptionTypeface(description);
113-
}
113+
//if (description != null) {
114+
//tapTarget.descriptionTypeface(description);
115+
//}
114116

115117
tapTargetSequence.target(tapTarget);
116118
}
@@ -167,12 +169,12 @@ public static void showIconsIntro(@NonNull Context context) {
167169
.drawShadow(Preferences.get(context).isTapIntroShadowEnabled());
168170

169171
if (title != null) {
170-
tapTarget.titleTypeface(title);
172+
tapTarget.textTypeface(title);
171173
}
172174

173-
if (description != null) {
174-
tapTarget.descriptionTypeface(description);
175-
}
175+
//if (description != null) {
176+
//tapTarget.descriptionTypeface(description);
177+
//}
176178

177179
TapTargetView.showFor(activity, tapTarget,
178180
new TapTargetView.Listener() {
@@ -230,12 +232,12 @@ public static void showRequestIntro(@NonNull Context context, @Nullable Recycler
230232
.drawShadow(Preferences.get(context).isTapIntroShadowEnabled());
231233

232234
if (title != null) {
233-
tapTarget.titleTypeface(title);
235+
tapTarget.textTypeface(title);
234236
}
235237

236-
if (description != null) {
237-
tapTarget.descriptionTypeface(description);
238-
}
238+
//if (description != null) {
239+
//tapTarget.descriptionTypeface(description);
240+
//}
239241

240242
tapTargetSequence.target(tapTarget);
241243
}
@@ -254,12 +256,12 @@ public static void showRequestIntro(@NonNull Context context, @Nullable Recycler
254256
.drawShadow(Preferences.get(context).isTapIntroShadowEnabled());
255257

256258
if (title != null) {
257-
tapTarget.titleTypeface(title);
259+
tapTarget.textTypeface(title);
258260
}
259261

260-
if (description != null) {
261-
tapTarget.descriptionTypeface(description);
262-
}
262+
//if (description != null) {
263+
//tapTarget.descriptionTypeface(description);
264+
//}
263265

264266
tapTargetSequence.target(tapTarget);
265267
}
@@ -276,12 +278,12 @@ public static void showRequestIntro(@NonNull Context context, @Nullable Recycler
276278
.drawShadow(Preferences.get(context).isTapIntroShadowEnabled());
277279

278280
if (title != null) {
279-
tapTarget.titleTypeface(title);
281+
tapTarget.textTypeface(title);
280282
}
281283

282-
if (description != null) {
283-
tapTarget.descriptionTypeface(description);
284-
}
284+
//if (description != null) {
285+
//tapTarget.descriptionTypeface(description);
286+
//}
285287

286288
tapTargetSequence.target(tapTarget);
287289
}
@@ -311,12 +313,12 @@ public static void showRequestIntro(@NonNull Context context, @Nullable Recycler
311313
.drawShadow(Preferences.get(context).isTapIntroShadowEnabled());
312314

313315
if (title != null) {
314-
tapTarget.titleTypeface(title);
316+
tapTarget.textTypeface(title);
315317
}
316318

317-
if (description != null) {
318-
tapTarget.descriptionTypeface(description);
319-
}
319+
//if (description != null) {
320+
//tapTarget.descriptionTypeface(description);
321+
//}
320322

321323
tapTargetSequence.target(tapTarget);
322324
}
@@ -404,14 +406,14 @@ public static void showWallpapersIntro(@NonNull Context context, @Nullable Recyc
404406
.drawShadow(Preferences.get(context).isTapIntroShadowEnabled());
405407

406408
if (title != null) {
407-
tapTarget.titleTypeface(title);
408-
tapTarget1.titleTypeface(title);
409+
tapTarget.textTypeface(title);
410+
tapTarget1.textTypeface(title);
409411
}
410412

411-
if (description != null) {
412-
tapTarget.descriptionTypeface(description);
413-
tapTarget1.descriptionTypeface(description);
414-
}
413+
//if (description != null) {
414+
//tapTarget.descriptionTypeface(description);
415+
//tapTarget1.descriptionTypeface(description);
416+
//}
415417

416418
tapTargetSequence.target(tapTarget);
417419
tapTargetSequence.target(tapTarget1);
@@ -468,12 +470,12 @@ public static void showWallpaperPreviewIntro(@NonNull Context context, @ColorInt
468470
.drawShadow(Preferences.get(context).isTapIntroShadowEnabled());
469471

470472
if (title != null) {
471-
tapTarget.titleTypeface(title);
473+
tapTarget.textTypeface(title);
472474
}
473475

474-
if (description != null) {
475-
tapTarget.descriptionTypeface(description);
476-
}
476+
//if (description != null) {
477+
//tapTarget.descriptionTypeface(description);
478+
//}
477479

478480
tapTargetSequence.target(tapTarget);
479481

@@ -488,12 +490,12 @@ public static void showWallpaperPreviewIntro(@NonNull Context context, @ColorInt
488490
.drawShadow(Preferences.get(context).isTapIntroShadowEnabled());
489491

490492
if (title != null) {
491-
tapTarget1.titleTypeface(title);
493+
tapTarget1.textTypeface(title);
492494
}
493495

494-
if (description != null) {
495-
tapTarget1.descriptionTypeface(description);
496-
}
496+
//if (description != null) {
497+
//tapTarget1.descriptionTypeface(description);
498+
//}
497499

498500
tapTargetSequence.target(tapTarget1);
499501
}
@@ -512,12 +514,12 @@ public static void showWallpaperPreviewIntro(@NonNull Context context, @ColorInt
512514
.drawShadow(Preferences.get(context).isTapIntroShadowEnabled());
513515

514516
if (title != null) {
515-
tapTarget.titleTypeface(title);
517+
tapTarget.textTypeface(title);
516518
}
517519

518-
if (description != null) {
519-
tapTarget.descriptionTypeface(description);
520-
}
520+
//if (description != null) {
521+
//tapTarget.descriptionTypeface(description);
522+
//}
521523

522524
tapTargetSequence.target(tapTarget);
523525
}

0 commit comments

Comments
 (0)