Version 1.12
This commit is contained in:
@@ -42,10 +42,10 @@ android {
|
||||
buildToolsVersion "19.1.0"
|
||||
defaultConfig {
|
||||
applicationId "com.maskyn.fileeditor"
|
||||
minSdkVersion 14
|
||||
minSdkVersion 10
|
||||
targetSdkVersion 19
|
||||
versionCode 27
|
||||
versionName "1.11"
|
||||
versionCode 29
|
||||
versionName "1.12"
|
||||
}
|
||||
compileOptions {
|
||||
sourceCompatibility JavaVersion.VERSION_1_7
|
||||
|
@@ -26,6 +26,7 @@
|
||||
<uses-permission android:name="android.permission.ACCESS_SUPERUSER" />
|
||||
<uses-permission android:name="android.permission.INTERNET" />
|
||||
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
|
||||
<uses-permission android:name="com.android.vending.BILLING" />
|
||||
|
||||
<supports-screens
|
||||
android:anyDensity="true"
|
||||
@@ -39,7 +40,7 @@
|
||||
android:allowBackup="true"
|
||||
android:icon="@drawable/ic_launcher"
|
||||
android:label="@string/nome_app_turbo_editor"
|
||||
android:hardwareAccelerated="false"
|
||||
android:hardwareAccelerated="true"
|
||||
android:largeHeap="true"
|
||||
android:supportsRtl="true"
|
||||
android:name="sharedcode.turboeditor.activity.MyApp"
|
||||
|
@@ -30,11 +30,9 @@ import java.util.Calendar;
|
||||
import sharedcode.turboeditor.preferences.PreferenceHelper;
|
||||
|
||||
public class AdsHelper {
|
||||
private Activity activity;
|
||||
private InterstitialAd interstitial;
|
||||
|
||||
public AdsHelper(Activity activity) {
|
||||
this.activity = activity;
|
||||
|
||||
interstitial = new InterstitialAd(activity);
|
||||
interstitial.setAdUnitId("ca-app-pub-5679083452234719/7178038180");
|
||||
@@ -47,15 +45,6 @@ public class AdsHelper {
|
||||
}
|
||||
|
||||
public void displayInterstitial() {
|
||||
|
||||
int numberOfAdsRequested = PreferenceHelper.getNumberOfAdsRequested(activity);
|
||||
numberOfAdsRequested++;
|
||||
PreferenceHelper.setNumberOfAdsRequested(activity, numberOfAdsRequested);
|
||||
|
||||
if (numberOfAdsRequested % 3 == 0 && interstitial != null && interstitial.isLoaded()) {
|
||||
interstitial.show();
|
||||
int today = Calendar.getInstance().get(Calendar.DAY_OF_MONTH);
|
||||
PreferenceHelper.setLastDayAdShowed(activity, today);
|
||||
}
|
||||
interstitial.show();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user