Version 2.2.1: Donation item only shown, when nothing is donated
This commit is contained in:
parent
d682999421
commit
217cf910a6
4 changed files with 8 additions and 5 deletions
|
@ -8,8 +8,8 @@ android {
|
|||
applicationId "de.marcelkapfer.morseconverter"
|
||||
minSdkVersion 11
|
||||
targetSdkVersion 22
|
||||
versionCode 220
|
||||
versionName "2.2 beta"
|
||||
versionCode 221
|
||||
versionName "2.2.1"
|
||||
}
|
||||
buildTypes {
|
||||
release {
|
||||
|
|
|
@ -58,6 +58,7 @@ public class MainActivity extends MaterialNavigationDrawer implements BillingPro
|
|||
private MaterialSection writtenMorse, normalMorse, writtenMorseList, donate, about;
|
||||
private MaterialActionBarDrawerToggle mDrawerToggle;
|
||||
|
||||
//Declaring the billing processor
|
||||
BillingProcessor bp;
|
||||
|
||||
//The MaterialNavigationDrawer init() methode replaces the normal onCreate() methode
|
||||
|
@ -88,7 +89,9 @@ public class MainActivity extends MaterialNavigationDrawer implements BillingPro
|
|||
this.addSection(normalMorse);
|
||||
this.addDivisor();
|
||||
this.addSection(writtenMorseList);
|
||||
if(!bp.isPurchased("donate")) {
|
||||
this.addBottomSection(donate);
|
||||
}
|
||||
this.addBottomSection(about);
|
||||
//set drawer image
|
||||
this.setDrawerHeaderImage(this.getResources().getDrawable(R.drawable.feature_graphics));
|
||||
|
|
|
@ -38,7 +38,7 @@
|
|||
<string name="aboutBug">Wenn Du einen Fehler gefunden hast, schreibe mit bitte ein Email an marcelmichaelkapfer@yahoo.co.nz</string>
|
||||
<string name="aboutHow">Du kannst eine ausführliche Anwendung auf marcel-kapfer.de/writtenmorse/index.html#howto_android finden.</string>
|
||||
<string name="aboutMissing">Wenn du auf einen fehlenden Code aufmerksam geworden bist, dann schreibe eine Email an marcelmichaelkapfer@yahoo.co.nz.</string>
|
||||
<string name="aboutVersion">2.2 beta \n15. Mai 2015</string>
|
||||
<string name="aboutVersion">2.2.1 \n16. Mai 2015</string>
|
||||
<string name="sectionBug">Fehler</string>
|
||||
<string name="sectionContact">Kontakt</string>
|
||||
<string name="sectionDeveloper">Entwickler</string>
|
||||
|
|
|
@ -43,7 +43,7 @@
|
|||
<string name="sectionHow">How to</string>
|
||||
<string name="sectionMissing">Missing Code</string>
|
||||
<!--About Texts-->
|
||||
<string name="aboutVersion">2.2 beta\n15 May 2015</string>
|
||||
<string name="aboutVersion">2.2.1 \n16 May 2015</string>
|
||||
<string name="aboutDeveloper" translatable="false">Marcel Michael Kapfer</string>
|
||||
<string name="aboutWebsite" translatable="false">marcel-kapfer.de/writtenmorse</string>
|
||||
<string name="aboutContact" translatable="false">marcelmichaelkapfer@yahoo.co.nz</string>
|
||||
|
|
Reference in a new issue