diff --git a/CHANGELOG.md b/CHANGELOG.md index f9b5633..9d69eb8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,7 @@ Changelog Released on 11th July 2013 - NEW: weather is now cached to reduce "???" messages while searching for a location +- NEW: you can now force the widget texts language (auto, English or Italian, for now) - FIX: removed 1 minute refresh interval (was only meant for debugging) - FIX: removed buttons from loading layouts, they couldn't do anything anyway - FIX: removed minor bug when switching from loading layout to "real" layout (could have caused issues to poorly written launchers) diff --git a/res/values/colors.xml b/res/values/colors.xml index d9c9d26..62d64bc 100644 --- a/res/values/colors.xml +++ b/res/values/colors.xml @@ -57,5 +57,5 @@ #ffb14545 #ff009300 #ff265baf - #20000000 + #30000000 \ No newline at end of file diff --git a/res/values/dimens.xml b/res/values/dimens.xml index 18db994..11bc768 100644 --- a/res/values/dimens.xml +++ b/res/values/dimens.xml @@ -35,5 +35,6 @@ 8dp 8dp 24dp + 100dp \ No newline at end of file diff --git a/src/net/frakbot/FWeather/util/TrackerHelper.java b/src/net/frakbot/FWeather/util/TrackerHelper.java index c61bfc3..b387a8f 100644 --- a/src/net/frakbot/FWeather/util/TrackerHelper.java +++ b/src/net/frakbot/FWeather/util/TrackerHelper.java @@ -8,18 +8,20 @@ import net.frakbot.FWeather.global.Const; /** + * Helper for the Google Analytics tracking. + *

* Created by Francesco Pontillo on 03/07/13. */ public class TrackerHelper { private static final String TAG = TrackerHelper.class.getSimpleName(); - public static void activityStart(Activity context) { - EasyTracker.getInstance().activityStart(context); + public static void activityStart(Activity activity) { + EasyTracker.getInstance().activityStart(activity); } - public static void activityStop(Activity context) { - EasyTracker.getInstance().activityStop(context); + public static void activityStop(Activity activity) { + EasyTracker.getInstance().activityStop(activity); } public static void sendException(Context context, String description, boolean fatal) { @@ -30,11 +32,14 @@ public static void sendException(Context context, String description, boolean fa public static void preferenceChange(Context context, String preferenceKey, Long value) { SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context); boolean track = prefs.getBoolean(Const.Preferences.ANALYTICS, false); + if (track) { - EasyTracker.getTracker().sendEvent( - Const.Preferences.PREFERENCE, Const.Preferences.CHANGE, preferenceKey, value); + EasyTracker.getTracker() + .sendEvent(Const.Preferences.PREFERENCE, Const.Preferences.CHANGE, + preferenceKey, value); FLog.d(context, TAG, "Tracked preference changed event"); - } else { + } + else { FLog.d(context, TAG, "Could not track preference changed event, analytics is disabled by user"); } } diff --git a/src/net/frakbot/FWeather/util/WidgetHelper.java b/src/net/frakbot/FWeather/util/WidgetHelper.java index 6e816a0..cc2d86a 100644 --- a/src/net/frakbot/FWeather/util/WidgetHelper.java +++ b/src/net/frakbot/FWeather/util/WidgetHelper.java @@ -22,6 +22,7 @@ import android.content.Intent; import android.text.Html; import android.text.Spanned; +import android.view.Gravity; import android.view.LayoutInflater; import android.view.View; import android.widget.Toast; @@ -327,6 +328,7 @@ public static Toast makeToast(Context c, int text, int duration) { Toast t = new Toast(c); t.setView(view); t.setDuration(duration); + t.setGravity(Gravity.BOTTOM, 0, c.getResources().getDimensionPixelSize(R.dimen.toast_yoffset)); return t; } } \ No newline at end of file