|
|
@ -27,6 +27,8 @@ import android.util.DisplayMetrics;
|
|
|
|
import android.view.View;
|
|
|
|
import android.view.View;
|
|
|
|
import android.view.inputmethod.InputMethodManager;
|
|
|
|
import android.view.inputmethod.InputMethodManager;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import org.isoron.uhabits.BuildConfig;
|
|
|
|
|
|
|
|
|
|
|
|
public abstract class DialogHelper
|
|
|
|
public abstract class DialogHelper
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
@ -59,6 +61,12 @@ public abstract class DialogHelper
|
|
|
|
prefs.edit().putInt("launch_count", count + 1).apply();
|
|
|
|
prefs.edit().putInt("launch_count", count + 1).apply();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public static void updateLastAppVersion(Context context)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);
|
|
|
|
|
|
|
|
prefs.edit().putInt("last_version", BuildConfig.VERSION_CODE).apply();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public static int getLaunchCount(Context context)
|
|
|
|
public static int getLaunchCount(Context context)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);
|
|
|
|
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);
|
|
|
|