Skip to content

Commit

Permalink
Relaxing variables' visibility for Location and ScreenState generators.
Browse files Browse the repository at this point in the history
* Linting excemptions for generators unused in other apps.
  • Loading branch information
audaciouscode committed May 28, 2017
1 parent df907c6 commit ecb6db8
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 deletions.
Expand Up @@ -120,9 +120,9 @@ public class Location extends Generator implements GoogleApiClient.ConnectionCal
private static final int DATABASE_VERSION = 1;

private static final String TABLE_HISTORY = "history";
private static final String HISTORY_OBSERVED = "observed";
private static final String HISTORY_LATITUDE = "latitude";
private static final String HISTORY_LONGITUDE = "longitude";
public static final String HISTORY_OBSERVED = "observed";
public static final String HISTORY_LATITUDE = "latitude";
public static final String HISTORY_LONGITUDE = "longitude";
private static final String HISTORY_ALTITUDE = "altitude";
private static final String HISTORY_BEARING = "bearing";
private static final String HISTORY_SPEED = "speed";
Expand Down
Expand Up @@ -57,8 +57,8 @@ public class ScreenState extends Generator{
private static final String DATABASE_PATH = "pdk-screen-state.sqlite";
private static final int DATABASE_VERSION = 2;

private static final String HISTORY_OBSERVED = "observed";
private static final String HISTORY_STATE = "state";
public static final String HISTORY_OBSERVED = "observed";
public static final String HISTORY_STATE = "state";
private static final String TABLE_HISTORY = "history";

private static ScreenState sInstance = null;
Expand Down
Expand Up @@ -1793,6 +1793,7 @@ private static String bindWorkoutsPage(ViewGroup container, DataPointViewHolder
return "" + card.getTag();
}

@SuppressWarnings("unused")
public void enableActivityMeasures(boolean enable) {
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(this.mContext);
SharedPreferences.Editor e = prefs.edit();
Expand All @@ -1802,6 +1803,7 @@ public void enableActivityMeasures(boolean enable) {
e.apply();
}

@SuppressWarnings("unused")
public void enableBodyMeasures(boolean enable) {
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(this.mContext);
SharedPreferences.Editor e = prefs.edit();
Expand All @@ -1811,6 +1813,7 @@ public void enableBodyMeasures(boolean enable) {
e.apply();
}

@SuppressWarnings("unused")
public void enableIntradayActivity(boolean enable) {
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(this.mContext);
SharedPreferences.Editor e = prefs.edit();
Expand All @@ -1820,6 +1823,7 @@ public void enableIntradayActivity(boolean enable) {
e.apply();
}

@SuppressWarnings("unused")
public void enableSleepMeasures(boolean enable) {
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(this.mContext);
SharedPreferences.Editor e = prefs.edit();
Expand All @@ -1829,6 +1833,7 @@ public void enableSleepMeasures(boolean enable) {
e.apply();
}

@SuppressWarnings("unused")
public void enableSleepSummary(boolean enable) {
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(this.mContext);
SharedPreferences.Editor e = prefs.edit();
Expand All @@ -1838,6 +1843,7 @@ public void enableSleepSummary(boolean enable) {
e.apply();
}

@SuppressWarnings("unused")
public void enableWorkouts(boolean enable) {
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(this.mContext);
SharedPreferences.Editor e = prefs.edit();
Expand All @@ -1847,6 +1853,7 @@ public void enableWorkouts(boolean enable) {
e.apply();
}

@SuppressWarnings("unused")
public void enableServerFetch(boolean enable) {
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(this.mContext);
SharedPreferences.Editor e = prefs.edit();
Expand Down

0 comments on commit ecb6db8

Please sign in to comment.