Skip to content

Commit

Permalink
solve bug 0000355
Browse files Browse the repository at this point in the history
  • Loading branch information
domjos1994 committed Oct 10, 2019
1 parent 8d5678c commit d189f24
Show file tree
Hide file tree
Showing 8 changed files with 0 additions and 29 deletions.
1 change: 0 additions & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ dependencies {
implementation 'androidx.multidex:multidex:2.0.1'

// google services
implementation 'com.google.android.gms:play-services-ads:18.2.0'
implementation 'com.google.android.material:material:1.0.0'

// external libraries
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@
import de.domjos.unitrackermobile.R;
import de.domjos.unitrackermobile.custom.AbstractActivity;
import de.domjos.unitrackermobile.custom.SwipeRefreshDeleteList;
import de.domjos.unitrackermobile.helper.AdHelper;
import de.domjos.unitrackermobile.helper.ArrayHelper;
import de.domjos.unitrackermobile.helper.Helper;
import de.domjos.unitrackermobile.settings.Globals;
Expand Down Expand Up @@ -333,7 +332,6 @@ protected void initControls() {

this.rowNoConnection = this.findViewById(R.id.rowNoConnection);
this.settings = MainActivity.GLOBALS.getSettings(this.getApplicationContext());
MainActivity.GLOBALS.setAdHelper(new AdHelper(this.settings, this));
this.firstLogIn = this.settings.isFirstLogin(false);

Helper.showPasswordDialog(MainActivity.this, this.firstLogIn, false, this::executeOnSuccess);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@ public ProjectActivity() {

@Override
protected void initActions() {
MainActivity.GLOBALS.getAdHelper().show();

this.lvProjects.click(new SwipeRefreshDeleteList.ClickListener() {
@Override
Expand Down
11 changes: 0 additions & 11 deletions app/src/main/java/de/domjos/unitrackermobile/settings/Globals.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,18 +20,15 @@

import android.content.Context;

import de.domjos.unitrackermobile.helper.AdHelper;
import de.domjos.unitrackermobile.helper.SQLiteGeneral;

public class Globals {
private SQLiteGeneral sqLiteGeneral;
private String password;
private AdHelper adHelper;

public Globals() {
this.sqLiteGeneral = null;
this.password = "";
this.adHelper = null;
}

public SQLiteGeneral getSqLiteGeneral() {
Expand All @@ -53,12 +50,4 @@ public String getPassword() {
public void setPassword(String password) {
this.password = password;
}

public void setAdHelper(AdHelper adHelper) {
this.adHelper = adHelper;
}

public AdHelper getAdHelper() {
return this.adHelper;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -133,10 +133,6 @@ public boolean showNotifications() {
return this.userPreferences.getBoolean("swtNotifications", false);
}

public boolean showAds() {
return this.userPreferences.getBoolean("swtDisableAds", false);
}

public boolean isEncryptionEnabled() {
return this.userPreferences.getBoolean("swtSecurityEnable", true);
}
Expand Down
2 changes: 0 additions & 2 deletions app/src/main/res/values-de/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -154,8 +154,6 @@
<string name="settings_general_list_scroll_summary">Soll ein, für die Breite des Bildschirmes zu langes Listen-Element gescrollt werden?</string>
<string name="settings_general_tutorial_title">Tutorial erneut anzeigen!</string>
<string name="settings_general_tutorial_summary">Wollen Sie das Tutorial erneut anzeigen lassen?</string>
<string name="settings_general_ads_enabled_title">Deaktiviere die Werbung</string>
<string name="settings_general_ads_enabled_summary">Die Werbung deaktivieren</string>
<string name="settings_bug_tracker">Bug-Tracker</string>
<string name="settings_bug_tracker_summary">Ändern Sie hier die Bug-Tracker spezifischen Einstellungen!</string>
<string name="settings_bug_tracker_mantis">MantisBT</string>
Expand Down
2 changes: 0 additions & 2 deletions app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -157,8 +157,6 @@
<string name="settings_general_list_scroll_summary">Do you want to scroll a list item that is too long for the width of the screen?</string>
<string name="settings_general_tutorial_title">Show tutorial again</string>
<string name="settings_general_tutorial_summary">Would you like to show tutorial again?</string>
<string name="settings_general_ads_enabled_title">Disable Ads</string>
<string name="settings_general_ads_enabled_summary">Disable the ads</string>
<string name="settings_bug_tracker">Bug-Tracker</string>
<string name="settings_bug_tracker_summary">Change the bug tracker specific settings here!</string>
<string name="settings_bug_tracker_mantis">MantisBT</string>
Expand Down
6 changes: 0 additions & 6 deletions app/src/main/res/xml/pref_general.xml
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,6 @@
android:title="@string/settings_general_numberOfItems"
android:summary="@string/settings_general_numberOfItems_summary" />

<SwitchPreference
android:key="swtDisableAds"
android:defaultValue="false"
android:title="@string/settings_general_ads_enabled_title"
android:summary="@string/settings_general_ads_enabled_summary" />

<EditTextPreference
android:key="txtFormatDate"
android:inputType="text"
Expand Down

0 comments on commit d189f24

Please sign in to comment.