Skip to content

Commit 35943cb

Browse files
committed
Add Gitter channel in About
1 parent 25d23c3 commit 35943cb

File tree

3 files changed

+13
-3
lines changed

3 files changed

+13
-3
lines changed

app/build.gradle

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ android {
77
applicationId "org.sw24softwares.starkeverben"
88
minSdkVersion 17
99
targetSdkVersion 25
10-
versionCode 7
11-
versionName "2.2"
10+
versionCode 8
11+
versionName "3.0"
1212
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
1313
}
1414
buildTypes {

app/src/main/java/org/sw24softwares/starkeverben/AboutActivity.java

+11-1
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ protected void onCreate(Bundle savedInstanceState) {
3333
.addItem(new Element().setTitle(getResources().getString(R.string.version) + " " + BuildConfig.VERSION_NAME))
3434
.addGroup(getResources().getString(R.string.connect))
3535
.addGitHub("Sw24Softwares/StarkeVerben")
36+
.addItem(addGitter("Sw24Softwares/StarkeVerben"))
3637
.addWebsite("https://sw24softwares.github.io/");
3738
aboutPage = setUpDependencies(aboutPage);
3839
aboutPage = setUpDevelopers(aboutPage);
@@ -46,7 +47,7 @@ protected AboutPage setUpDependencies(AboutPage ap) {
4647
ap.addItem(addDependencies("Pulsator4Droid","https://github.com/booncol/Pulsator4Droid"));
4748
ap.addItem(addDependencies("BottomNavigation","https://github.com/Ashok-Varma/BottomNavigation"));
4849
ap.addItem(addDependencies("Android About Page","https://github.com/medyo/android-about-page"));
49-
ap.addItem(addDependencies("Material Design", "https://material.io"));
50+
ap.addItem(addDependencies("Material Design Icons", "https://material.io/icons"));
5051
return ap;
5152
}
5253
protected Element addDependencies(final String title, final String link) {
@@ -69,4 +70,13 @@ protected Element addDeveloper(final String title, final String link, final Inte
6970
.setIntent(new Intent(Intent.ACTION_VIEW, Uri.parse(link)));
7071
return elem;
7172
}
73+
74+
protected Element addGitter(final String link) {
75+
Element elem = new Element()
76+
.setTitle("Gitter")
77+
.setIconDrawable(R.drawable.gitter)
78+
.setAutoApplyIconTint(false)
79+
.setIntent(new Intent(Intent.ACTION_VIEW, Uri.parse("https://gitter.im/" + link)));
80+
return elem;
81+
}
7282
}

app/src/main/res/drawable/gitter.png

854 Bytes
Loading

0 commit comments

Comments
 (0)