Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Present distances in km/mi #624

Draft
wants to merge 140 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
140 commits
Select commit Hold shift + click to select a range
5364eff
Lint: Update workaround for GradleCompatible warning
gerhardol Dec 30, 2016
be2c2f0
Merge branch '_pr/remove-unused-resources3' into master-pr
gerhardol Dec 30, 2016
25b945a
Merge branch '_pr/centralize-play-version' into master-pr
gerhardol Dec 30, 2016
53d9d75
Merge branch '_pr/wear-lint-suppressions' into master-pr
gerhardol Dec 30, 2016
5a11030
Merge branch '_pr/lint-GradleCompatible-workaround' into master-pr
gerhardol Dec 30, 2016
507e90d
Merge branch '_pr/lint-suspicious-collection-calls' into master-pr
gerhardol Dec 30, 2016
704c46f
Merge branch '_pr/lint-wear-enable-travis' into master-pr
gerhardol Dec 30, 2016
d41d063
Merge branch '_pr/centralize-junit-mockito' into master-pr
gerhardol Dec 30, 2016
1b6d03c
Merge branch 'viewholder-pattern' into master-pr
gerhardol Dec 30, 2016
3954831
Merge branch '_pr/android-studio-2.3-gradle' into master-pr
gerhardol Dec 30, 2016
d708e31
Lint: Various lint suggestions and suppressions
gerhardol Dec 17, 2016
48931d9
Lint: Right-to-left lint suggestions
gerhardol Dec 17, 2016
7737902
Lint: Using private defined black
gerhardol Dec 17, 2016
c76f777
Lint: Specify locale when formatting strings
gerhardol Dec 17, 2016
1f176c0
Lint: Hardcoded strings
gerhardol Dec 17, 2016
1d6de6a
Lint: static field leak
gerhardol Dec 17, 2016
7f43db7
Lint: Class and method parameters can be local
gerhardol Dec 17, 2016
07af7f8
Lint: final for private/static does not make sense
gerhardol Dec 17, 2016
d87f468
Lint: Unnecessary public/private identifier
gerhardol Dec 17, 2016
1d1a7a4
Lint: Declaration access can be weaker
gerhardol Dec 17, 2016
7498648
Lint: Declaration can be final
gerhardol Dec 17, 2016
6f2d8bf
Lint: Override method only calls super
gerhardol Dec 17, 2016
0766720
Lint: field can be local
gerhardol Dec 17, 2016
95a07a2
Lint: If statements can be simplified
gerhardol Dec 17, 2016
5f30c46
Lint: return is not needed last in a void method
gerhardol Dec 17, 2016
e172ebd
Lint: Unnecessary boolean expression - simplify
gerhardol Dec 17, 2016
073bb9c
Lint: SuppressWarnings("BooleanMethodIsAlwaysInverted")
gerhardol Dec 17, 2016
c692127
Lint: Unnecessary local variable
gerhardol Dec 17, 2016
4559cbf
Lint: Suppress warnings for empty methods
gerhardol Dec 17, 2016
17147ba
Lint: Access can be weaker
gerhardol Dec 17, 2016
3e4c6a5
Lint: Explicit type can be replaced with <>
gerhardol Dec 17, 2016
0dd9330
Lint: Suppress warning for pointless arithmetic expression
gerhardol Dec 17, 2016
3d0a54c
Lint: Missing baseLineAligned:false for better performance
gerhardol Dec 17, 2016
0cd1e95
Lint: Obsolete layout properties
gerhardol Dec 17, 2016
b290c95
Lint: Remove unused resources in xml
gerhardol Dec 17, 2016
8864eb2
Lint: Various suppressions of OK reports
gerhardol Dec 18, 2016
f1e1abe
Lint: Various minor fixes
gerhardol Dec 18, 2016
be5cb2e
Lint: Dangling Javadoc declaration
gerhardol Dec 18, 2016
2c92f6c
Lint: object was updated but never queried
gerhardol Dec 18, 2016
fc76283
Lint: Manifest updates for FirebaseAppIndexing, backup
gerhardol Dec 18, 2016
ea42f11
Lint: @NonNull attribute was overridden
gerhardol Dec 18, 2016
015c984
Lint: Suppress ResultOfMethodCallIgnored
gerhardol Dec 18, 2016
bc04fc3
Lint: Expression is unused
gerhardol Dec 18, 2016
7ddc471
Lint: Empty if/else clauses
gerhardol Dec 18, 2016
6bb8695
Lint: Unused parameters to functions
gerhardol Dec 18, 2016
96bddd8
Lint: Compare with equals() rather than ==
gerhardol Dec 18, 2016
198598d
Lint: Unused imports
gerhardol Dec 17, 2016
9bd2e5d
Lint: Default template warning
gerhardol Dec 18, 2016
e8385a2
Lint: Suppress XmlUnboundNsPrefix
gerhardol Dec 18, 2016
6dc38cb
Minor comments and changes after a manual review of the changes
gerhardol Dec 20, 2016
fe4e805
A few manual changes after a rebase
gerhardol Dec 21, 2016
3ec95f6
Lint: ObsoleteSdkInt
gerhardol Dec 21, 2016
2ebefbf
Lint: Declaration access can be weaker
gerhardol Dec 21, 2016
c307149
Lint: Declaration can have final modifier
gerhardol Dec 21, 2016
93bc85b
Lint: Delete unnecessary import
gerhardol Dec 21, 2016
af841ed
Lint: Dangling Javadoc comment
gerhardol Dec 21, 2016
e447a3f
Lint: Unused XML schema declaration
gerhardol Dec 21, 2016
68ecc41
Lint: If statement has an empty body
gerhardol Dec 21, 2016
6738e00
Lint: Constant conditions, boolean is always true/false
gerhardol Dec 22, 2016
908b2aa
Lint: Unused import
gerhardol Dec 22, 2016
79536fa
Lint: Method only calls its super
gerhardol Dec 22, 2016
271a5b5
Lint: ignore 'ApplySharedPref'
gerhardol Dec 22, 2016
0b22315
Lint: ignore="AllowBackup,GoogleAppIndexingWarning"
gerhardol Dec 22, 2016
76914a9
Lint: Redundant throws clause
gerhardol Dec 22, 2016
22cf000
Lint: Update workaround for GradleCompatible warning
gerhardol Dec 22, 2016
4c0a894
Lint: TextView Internationalization, Number formatting does not take …
gerhardol Dec 22, 2016
cfe8129
Lint: Image without contentDescription
gerhardol Dec 22, 2016
7caef49
Lint: RelativeOverlap: Overlapping items in RelativeLayout
gerhardol Dec 22, 2016
e100e09
Lint: Overdraw: Painting regions more than once
gerhardol Dec 22, 2016
939b4d3
Lint: Useless parent layout
gerhardol Dec 23, 2016
a8e6f74
Lint: Unused import
gerhardol Dec 23, 2016
47badd4
Lint: Constant Conditions
gerhardol Dec 23, 2016
87916bb
Lint: Probable bugs: Assigned value is never used
gerhardol Dec 23, 2016
3bc36d0
Lint: InflateParams parent should not be null
gerhardol Dec 23, 2016
2ce6cfd
Lint: Bitmap drawable in density-independent folder
gerhardol Dec 23, 2016
0cfaf2a
Lint: Field can be converted to local variable
gerhardol Dec 23, 2016
4ec15d8
Lint: Android Studio Inspect configuration
gerhardol Dec 23, 2016
60dedd9
Lint: Delete unnecessary imports
gerhardol Dec 23, 2016
105d1a1
Lint: Duplicate throws, there is a more general exception already
gerhardol Dec 23, 2016
dc06247
Lint: Suppress ButtonStyle warnings
gerhardol Dec 23, 2016
2230efa
Lint Suppress UnusedReturnValue
gerhardol Dec 24, 2016
b7742f2
Lint: Suppress AccessStaticViaInstance
gerhardol Dec 24, 2016
79a4d12
Lint: Suppress PointlessBooleanExpression
gerhardol Dec 24, 2016
469aac7
Lint: FrameLayout can be replaced with <merge> tag
gerhardol Dec 24, 2016
7e1be51
Lint: SuppressLint("ClickableViewAccessibility")
gerhardol Dec 29, 2016
d221b06
Add Froyo NoInspection GradleDependency again
gerhardol Dec 30, 2016
d3283d6
Lint: Declaration access can be weaker
gerhardol Dec 30, 2016
a1d74a6
Manual adjustment after rebase
gerhardol Dec 30, 2016
7197870
Remove @TargetApi() annotations
gerhardol Dec 30, 2016
cfe380e
Revert @TargetApi() changes for a few files
gerhardol Dec 30, 2016
975e896
Sync from Transifex
gerhardol Dec 31, 2016
b138d30
Transifex reorder after Swedish push
gerhardol Dec 31, 2016
f60ef6e
Transifex sync after PR #525 - added attributes
gerhardol Dec 31, 2016
30a0432
Transifex Bosnian update
gerhardol Feb 2, 2017
607cb53
Transifex hu update
gerhardol Feb 2, 2017
36146c4
Transifex fr update
gerhardol Feb 2, 2017
c3f8686
Transifex CS update
gerhardol Feb 28, 2017
c6feab3
Lint detected when using AS2.4 preview
gerhardol Mar 27, 2017
7ea94bb
Lint findings
gerhardol Dec 31, 2016
0fc7214
Lint: GradleCompatible, force support-v4 version
gerhardol Jan 1, 2017
974d9ea
Remove dependency of samsung_ble_sdk_200.jar via project proterty.
rickyepoderi Jan 15, 2017
afb4d9e
Gradle plugin update for AS 2.3
gerhardol Apr 6, 2017
1324257
Merge branch 'master' into _pr/lint-eliminations
gerhardol Apr 6, 2017
8f24b3f
Lint false positives: Link to reports
gerhardol Apr 11, 2017
03d157d
Merge branch '_pr/lint-wear-enable-travis' into _pr/lint-eliminations
gerhardol Apr 26, 2017
5e389f3
Ignore LogNotTimber lint
gerhardol Apr 26, 2017
b094314
New lints after Runalyze updates
gerhardol Apr 26, 2017
4135768
Update to latest Google libraries
gerhardol Apr 26, 2017
89faa92
Merge remote-tracking branch 'origin/master' into _pr/lint-eliminations
gerhardol Apr 28, 2017
c968170
Merge remote-tracking branch 'origin/master' into _pr/lint-eliminations
gerhardol May 3, 2017
f650b8a
Merge branch 'master' into test/lint-eliminations-merge2
gerhardol Jun 18, 2017
0da3176
Some new lint from master
gerhardol Jun 18, 2017
f0bef09
Merge remote-tracking branch 'origin/master' into test/lint-eliminati…
gerhardol Jul 22, 2017
eeb45bc
AS2.3 Gradle plugin update
gerhardol Jul 28, 2017
501c8d3
Merge remote-tracking branch 'origin/master' into _pr/lint-eliminations
gerhardol Jul 28, 2017
e1c2bb8
Lint: AppLinkError suppression
gerhardol Jul 30, 2017
1bf1c2b
Lint: Eliminate CustomViewStyleable for NumberPicker
gerhardol Jul 30, 2017
1856ee9
Lint: suppress ClickableViewAccessibility
gerhardol Jul 31, 2017
803e4a2
Lint: Eliminate PrivateResource for GoogleFitData
gerhardol Jul 30, 2017
f3f3e12
Lint: Suppress StaticFieldLeak
gerhardol Jul 30, 2017
48592be
Lint: Add baseline files, suppressing non interesting issues
gerhardol Jul 31, 2017
ae742c8
Prepare for Android Studio 3: Add Google repo, set flavorDimension
gerhardol Jul 22, 2017
8c52664
Add Google repository for app/wear
gerhardol Jul 31, 2017
abe3d92
Update build-tools to 26.0.1
gerhardol Jul 31, 2017
9f25f94
Lint: Better solution for support:wearable vs wearable:wearable
gerhardol Aug 9, 2017
5c3b80d
Lint: Updated comments for GradleCompatible
gerhardol Aug 9, 2017
1284c80
Ignore gen/
gerhardol Aug 9, 2017
58628a6
Merge remote-tracking branch 'origin/master' into pr/524-lint-elimina…
gerhardol Aug 11, 2017
de79cde
Various inspect changes
gerhardol Aug 11, 2017
243c48d
AS3 Lint, supress StaticTaskLeak
gerhardol Aug 11, 2017
d7d245c
ANT+ lib should be provided, not compile
gerhardol Aug 11, 2017
3f51ea3
Target Android O
gerhardol Aug 11, 2017
2e95239
Lint: Regression for InflateParams in HRSettings
gerhardol Aug 11, 2017
5b8ec1d
Revert "ANT+ lib should be provided, not compile"
gerhardol Aug 11, 2017
7c83f1d
Merge branch 'pr/615-hr-settings-noprovider' into pr/524-lint-elimina…
gerhardol Aug 11, 2017
73f56ab
Merge remote-tracking branch 'origin/master' into pr/524-lint-elimina…
gerhardol Aug 11, 2017
fc00155
Revert "Target Android O"
gerhardol Aug 13, 2017
a31b479
Merge branch 'master' into pr/524-lint-eliminations
gerhardol Aug 13, 2017
76ed2bd
Present distances in km/mi
gerhardol Aug 20, 2017
49181d1
Froyo NewApi lint errors
gerhardol Aug 20, 2017
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ local.properties
.gradle/
.idea/
build/
gen/

# Intellij files (Android Studio)
*.iml
Expand Down
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ android:
components:
- tools #latest for "builtin" sdk tools (24.4.1 in Android-25)
#To update SDK Tools to latest, another update is required
#- tools #latest, 25.2.4 as of 2016-12-16
- platform-tools #latest, 25.0.3 as of 2016-12-17
#- tools #latest, 26.0.2 as of 2017-07-30
- platform-tools #latest, 26.0.0 as of 2017-07-30
- build-tools-26.0.1
- android-25
- extra-android-m2repository
Expand Down
3 changes: 1 addition & 2 deletions Project_Default.xml
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--suppress XmlUnboundNsPrefix -->
<inspections version="1.0">
<option name="myName" value="Project Default" />
<option name="myLocal" value="true" />
<inspection_tool class="AndroidLintExtraTranslation" enabled="false" level="ERROR" enabled_by_default="false" />
<inspection_tool class="AndroidLintImpliedQuantity" enabled="false" level="ERROR" enabled_by_default="false" />
<inspection_tool class="AndroidLintMissingQuantity" enabled="false" level="ERROR" enabled_by_default="false" />
<inspection_tool class="AndroidLintMissingTranslation" enabled="false" level="ERROR" enabled_by_default="false" />
<inspection_tool class="LoggerInitializedWithForeignClass" enabled="false" level="WARNING" enabled_by_default="false">
<option name="loggerClassName" value="org.apache.log4j.Logger,org.slf4j.LoggerFactory,org.apache.commons.logging.LogFactory,java.util.logging.Logger" />
Expand Down
23 changes: 19 additions & 4 deletions app/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,11 @@
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:extractNativeLibs="false"
android:theme="@style/AppTheme">
android:supportsRtl="true"
android:allowBackup="true"
android:theme="@style/AppTheme"
android:fullBackupContent="@xml/backup_descriptor"
tools:ignore="UnusedAttribute">

<activity
android:name=".view.MainLayout"
Expand All @@ -60,7 +64,18 @@
<data android:host="*" />
<data android:pathPattern="runnerup.db.export" />
</intent-filter>
</activity>
<intent-filter>
<action android:name="android.intent.action.VIEW" />

<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<!--FirebaseAppIndexing-->
<data
android:host="github.com"
android:pathPrefix="/jonasoreland/runnerup"
android:scheme="http" />
</intent-filter>
</activity>

<activity android:name=".view.StartActivity"/>

Expand Down Expand Up @@ -89,14 +104,14 @@
<activity android:name=".view.UploadActivity"/>

<activity android:name=".view.ManageWorkoutsActivity">
<intent-filter>
<intent-filter tools:ignore="GoogleAppIndexingWarning,AppLinkUrlError">
<action android:name="android.intent.action.VIEW" />
<action android:name="android.intent.action.EDIT" />
<category android:name="android.intent.category.DEFAULT" />
<data android:mimeType="application/vnd.garmin.workout+json"/>
</intent-filter>
<!-- Check for application/json too, see http://code.google.com/p/android/issues/detail?id=48594 -->
<intent-filter>
<intent-filter tools:ignore="GoogleAppIndexingWarning,AppLinkUrlError">
<action android:name="android.intent.action.VIEW" />
<action android:name="android.intent.action.EDIT" />
<category android:name="android.intent.category.DEFAULT" />
Expand Down
1 change: 1 addition & 0 deletions app/assets/bundled/shared_prefs/100m_audio_cues.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?xml version='1.0' encoding='utf-8' standalone='yes' ?>
<!--suppress XmlUnboundNsPrefix -->
<map>
<boolean name="cueinfo_target_coaching" value="false" />
<boolean name="cueinfo_total_time" value="false" />
Expand Down
9 changes: 2 additions & 7 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -98,13 +98,9 @@ android {
checkReleaseBuilds true
//promote to error, must be handled
fatal 'InlinedApi', 'InconsistentArrays'
//TODO: See GradleCompatible comments, check manually with ./gradlew app:dependencies
//Remove with AS3: https://issuetracker.google.com/issues/37131435
warning 'GradleCompatible'
//Support lib > 25.0.1 _sometimes_ raises this issue. Should be fixed though
warning 'RestrictedApi'
// Ignore some specific checks completely
ignore 'MissingTranslation'

//All translations will not be complete
ignore 'MissingTranslation'
//icon with all densities are not included - don't bother
Expand Down Expand Up @@ -136,10 +132,9 @@ dependencies {
compile project(':hrdevice')
latestWearApp project(':wear')

//Lint bug: https://code.google.com/p/android/issues/detail?id=231323
latestCompile "com.android.support:design:${rootProject.ext.supportLibrary}"

//Lint bug: https://code.google.com/p/android/issues/detail?id=231321
//Lint bug: https://issuetracker.google.com/issues/37131433
//noinspection GradleDependency
froyoCompile 'com.android.support:design:24.1.0' //SDK <10 dropped in 24.2

Expand Down
3 changes: 2 additions & 1 deletion app/froyo/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@
tools:overrideLibrary="com.mapbox.mapboxsdk, com.jjoe64.graphview"/>

<application
android:label="@string/app_name">
android:label="@string/app_name"
tools:ignore="AllowBackup,GoogleAppIndexingWarning">
</application>

</manifest>
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import org.runnerup.tracker.WorkoutObserver;
import org.runnerup.workout.WorkoutInfo;

@TargetApi(Build.VERSION_CODES.FROYO)

public class TrackerPebble extends DefaultTrackerComponent implements WorkoutObserver {

public static final String NAME = "PEBBLE";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
import org.runnerup.tracker.WorkoutObserver;
import org.runnerup.workout.WorkoutInfo;

@TargetApi(Build.VERSION_CODES.FROYO)

public class TrackerWear extends DefaultTrackerComponent implements WorkoutObserver {

public static final String NAME = "WEAR";
Expand Down
2 changes: 1 addition & 1 deletion app/froyo/java/org/runnerup/util/MapWrapper.java
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
import java.util.Iterator;
import java.util.List;

@TargetApi(Build.VERSION_CODES.FROYO)

public class MapWrapper implements Constants {

public MapWrapper(Context context, SQLiteDatabase mDB, long mID, Formatter formatter, MapView mapView) {
Expand Down
2 changes: 1 addition & 1 deletion app/froyo/java/org/runnerup/widget/AboutPreference.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
import android.preference.DialogPreference;
import android.util.AttributeSet;

@TargetApi(Build.VERSION_CODES.FROYO)

public class AboutPreference extends DialogPreference {

public AboutPreference(Context context, AttributeSet attrs) {
Expand Down
7 changes: 5 additions & 2 deletions app/latest/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,13 @@
~ along with this program. If not, see <http://www.gnu.org/licenses/>.
-->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="org.runnerup">
xmlns:tools="http://schemas.android.com/tools"
package="org.runnerup">


<application
android:label="@string/app_name">
android:label="@string/app_name"
tools:ignore="AllowBackup,GoogleAppIndexingWarning">
<meta-data android:name="com.google.android.gms.version"
android:value="@integer/google_play_services_version" />
<receiver android:name=".feedwidget.FeedWidgetProvider" >
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ public class Geoid {
private static short offset_south_pole = 0;
private static boolean s_model_ok = false;

@SuppressWarnings("UnusedReturnValue")
public static boolean init(InputStream is) {
if(s_model_ok) {
return true;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,15 @@ private class ProgressDialogStub extends ProgressDialog {
public void setCancelable(boolean cancelable) {}
public void show() {}
public void dismiss() {}
@SuppressWarnings("EmptyMethod")
public void setTitle(String title) {}
@SuppressWarnings("EmptyMethod")
public void setMessage(String message) {}
public Button getButton(int pos) { return null; }
public void cancel() {}
public void setCanceledOnTouchOutside(boolean canceled) {}
public void setMax(int max) {}
@SuppressWarnings("EmptyMethod")
public void setButton(int pos, String arg, DialogInterface.OnClickListener listener) {}
public void setProgress(int progress) {}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
package org.runnerup.feedwidget;

import android.annotation.TargetApi;
import android.content.ContentValues;
import android.content.Intent;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.graphics.Bitmap;
import android.os.Build;
import android.util.Log;
import android.view.View;
import android.widget.AdapterView;
Expand All @@ -23,7 +21,7 @@

import java.text.DateFormat;

@TargetApi(Build.VERSION_CODES.HONEYCOMB)

public class FeedWidgetService extends RemoteViewsService {
@Override
public RemoteViewsFactory onGetViewFactory(Intent intent) {
Expand Down Expand Up @@ -62,8 +60,7 @@ public RemoteViews getViewAt(int position) {
Log.w(getClass().getSimpleName(), "getViewAt: " + position + " is invalid position!");
return null;
}
final RemoteViews rv = getViewFactorizedAt(position);
return rv;
return getViewFactorizedAt(position);
}

// code is mainly a copy/paste from FeedActivity.java:getViewAt - however it could/should be done properly byy refactoring
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,10 @@
*/
package org.runnerup.tracker.component;

import android.annotation.TargetApi;
import android.content.Context;
import android.content.Intent;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.os.Build;
import android.preference.PreferenceManager;
import android.support.v4.content.LocalBroadcastManager;
import android.widget.Toast;
Expand All @@ -45,15 +43,15 @@

import java.util.HashMap;

@TargetApi(Build.VERSION_CODES.JELLY_BEAN)

public class TrackerPebble extends DefaultTrackerComponent implements WorkoutObserver, WorkoutStepListener, ValueModel.ChangeListener<TrackerState> {
public static final String NAME = "PEBBLE";
private Context context;
private PebbleKit.PebbleDataReceiver sportsDataHandler = null;
private Formatter formatter;
private boolean isMetric;
private boolean bMetricSent;
private Tracker tracker;
private final Tracker tracker;

public TrackerPebble(Tracker tracker) {
this.tracker = tracker;
Expand Down Expand Up @@ -153,7 +151,7 @@ public void onStepChanged(Step oldStep, Step newStep) {

}

public void customizeWatchApp() {
private void customizeWatchApp() {
try {
final String customAppName = "RunnerUp";
final Bitmap customIcon = BitmapFactory.decodeResource(context.getResources(), R.drawable.ic_icon_runnerup30x30);
Expand Down
Loading