Skip to content

Commit 67ab5f4

Browse files
committed
Bella: Logcat or GTFO
1 parent 994e103 commit 67ab5f4

File tree

1 file changed

+18
-6
lines changed

1 file changed

+18
-6
lines changed

app/src/main/java/com/example/android/Bella/SettingActivity.java

+18-6
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public class SettingActivity extends MaterialAboutActivity {
2727
int orange = R.color.orange_600;
2828
int grey = R.color.grey_500;
2929
int lightGreen = R.color.green_500;
30-
int lightBlue = R.color.blue_500;
30+
int brown = R.color.brown_500;
3131

3232
@Override
3333
protected MaterialAboutList getMaterialAboutList(Context c) {
@@ -57,7 +57,7 @@ protected MaterialAboutList getMaterialAboutList(Context c) {
5757
.text("Changelog")
5858
.icon(new IconicsDrawable(c)
5959
.icon(CommunityMaterial.Icon.cmd_history)
60-
.color(ContextCompat.getColor(c, purple))
60+
.color(ContextCompat.getColor(c, brown))
6161
.sizeDp(18))
6262
.setOnClickListener(ConvenienceBuilder.createWebViewDialogOnClickAction(c, "Releases", "https://github.com/Bella-Assistant/Bella-Android/blob/master/CHANGELOG", true, false))
6363
.build());
@@ -145,10 +145,22 @@ protected MaterialAboutList getMaterialAboutList(Context c) {
145145
null,
146146
"bangalore"));
147147

148-
MaterialAboutCard.Builder otherCardBuilder = new MaterialAboutCard.Builder();
149-
otherCardBuilder.title("Other");
148+
MaterialAboutCard.Builder appCardBuilder1 = new MaterialAboutCard.Builder();
149+
appCardBuilder1.title("Other");
150150

151-
otherCardBuilder.addItem(new MaterialAboutActionItem.Builder()
151+
appCardBuilder1.addItem(new MaterialAboutActionItem.Builder()
152+
.icon(new IconicsDrawable(c)
153+
.icon(CommunityMaterial.Icon.cmd_gavel)
154+
.color(ContextCompat.getColor(c, brown))
155+
.sizeDp(18))
156+
.text("The Drill")
157+
.subTextHtml("Logcat or GTFO")
158+
.setIconGravity(MaterialAboutActionItem.GRAVITY_TOP)
159+
.setOnClickListener(ConvenienceBuilder.createWebViewDialogOnClickAction(c, "Logcat or GTFO", "http://i.bittwiddlers.org/LIt.png", true, true))
160+
.build()
161+
);
162+
163+
appCardBuilder1.addItem(new MaterialAboutActionItem.Builder()
152164
.icon(new IconicsDrawable(c)
153165
.icon(CommunityMaterial.Icon.cmd_language_html5)
154166
.color(ContextCompat.getColor(c, orange))
@@ -160,7 +172,7 @@ protected MaterialAboutList getMaterialAboutList(Context c) {
160172
);
161173

162174

163-
return new MaterialAboutList(appCardBuilder.build(), authorCardBuilder.build(), convenienceCardBuilder.build(), otherCardBuilder.build());
175+
return new MaterialAboutList(appCardBuilder.build(), authorCardBuilder.build(), convenienceCardBuilder.build(), appCardBuilder1.build());
164176
}
165177

166178
@Override

0 commit comments

Comments
 (0)