Skip to content

Commit

Permalink
Bella: Logcat or GTFO
Browse files Browse the repository at this point in the history
  • Loading branch information
ujwalp15 committed Apr 27, 2017
1 parent 994e103 commit 67ab5f4
Showing 1 changed file with 18 additions and 6 deletions.
24 changes: 18 additions & 6 deletions app/src/main/java/com/example/android/Bella/SettingActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public class SettingActivity extends MaterialAboutActivity {
int orange = R.color.orange_600;
int grey = R.color.grey_500;
int lightGreen = R.color.green_500;
int lightBlue = R.color.blue_500;
int brown = R.color.brown_500;

@Override
protected MaterialAboutList getMaterialAboutList(Context c) {
Expand Down Expand Up @@ -57,7 +57,7 @@ protected MaterialAboutList getMaterialAboutList(Context c) {
.text("Changelog")
.icon(new IconicsDrawable(c)
.icon(CommunityMaterial.Icon.cmd_history)
.color(ContextCompat.getColor(c, purple))
.color(ContextCompat.getColor(c, brown))
.sizeDp(18))
.setOnClickListener(ConvenienceBuilder.createWebViewDialogOnClickAction(c, "Releases", "https://github.com/Bella-Assistant/Bella-Android/blob/master/CHANGELOG", true, false))
.build());
Expand Down Expand Up @@ -145,10 +145,22 @@ protected MaterialAboutList getMaterialAboutList(Context c) {
null,
"bangalore"));

MaterialAboutCard.Builder otherCardBuilder = new MaterialAboutCard.Builder();
otherCardBuilder.title("Other");
MaterialAboutCard.Builder appCardBuilder1 = new MaterialAboutCard.Builder();
appCardBuilder1.title("Other");

otherCardBuilder.addItem(new MaterialAboutActionItem.Builder()
appCardBuilder1.addItem(new MaterialAboutActionItem.Builder()
.icon(new IconicsDrawable(c)
.icon(CommunityMaterial.Icon.cmd_gavel)
.color(ContextCompat.getColor(c, brown))
.sizeDp(18))
.text("The Drill")
.subTextHtml("Logcat or GTFO")
.setIconGravity(MaterialAboutActionItem.GRAVITY_TOP)
.setOnClickListener(ConvenienceBuilder.createWebViewDialogOnClickAction(c, "Logcat or GTFO", "http://i.bittwiddlers.org/LIt.png", true, true))
.build()
);

appCardBuilder1.addItem(new MaterialAboutActionItem.Builder()
.icon(new IconicsDrawable(c)
.icon(CommunityMaterial.Icon.cmd_language_html5)
.color(ContextCompat.getColor(c, orange))
Expand All @@ -160,7 +172,7 @@ protected MaterialAboutList getMaterialAboutList(Context c) {
);


return new MaterialAboutList(appCardBuilder.build(), authorCardBuilder.build(), convenienceCardBuilder.build(), otherCardBuilder.build());
return new MaterialAboutList(appCardBuilder.build(), authorCardBuilder.build(), convenienceCardBuilder.build(), appCardBuilder1.build());
}

@Override
Expand Down

0 comments on commit 67ab5f4

Please sign in to comment.