Skip to content
This repository has been archived by the owner on Sep 3, 2021. It is now read-only.

Commit

Permalink
minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
catt-stefano committed Mar 27, 2017
1 parent 509031a commit ab4497a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ public void didDetermineStateForRegion(int i, Region region) {
if (region.getId2() != null && region.getId3() == null){
startRangingRegion(region);
}
if (AppLifecycleMonitor.isApplicationInForeground()){
if (AppVisibilityDetector.sIsForeground){
// switch to ranging mode only if we are in foreground
startRanging();
}
Expand Down
13 changes: 5 additions & 8 deletions src/main/java/it/near/sdk/reactions/feedback/FeedbackEvent.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
package it.near.sdk.reactions.feedback;

import android.content.Context;

import org.json.JSONException;

import java.util.HashMap;
Expand All @@ -10,7 +8,6 @@
import it.near.sdk.reactions.Event;
import it.near.sdk.utils.NearJsonAPIUtils;


/**
* Created by cattaneostefano on 11/10/2016.
*/
Expand All @@ -23,10 +20,10 @@ public class FeedbackEvent extends Event {
private static final String PROFILE_ID = "profile_id";
private static final String RES_TYPE = "answers";

String feedbackId;
int rating = -1;
String comment;
String recipeId;
private String feedbackId;
private int rating = -1;
private String comment;
private String recipeId;

public FeedbackEvent(String feedbackId, int rating, String comment, String recipeId) {
this.feedbackId = feedbackId;
Expand All @@ -35,7 +32,7 @@ public FeedbackEvent(String feedbackId, int rating, String comment, String recip
this.recipeId = recipeId;
}

public FeedbackEvent(Feedback feedback, int rating, String comment){
public FeedbackEvent(Feedback feedback, int rating, String comment) {
this.feedbackId = feedback.getId();
this.rating = rating;
this.comment = comment;
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/it/near/sdk/utils/AppVisibilityDetector.java
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public final class AppVisibilityDetector {
private static boolean DEBUG = false;
private static final String TAG = "AppVisibilityDetector";
private static AppVisibilityCallback sAppVisibilityCallback;
private static boolean sIsForeground = false;
public static boolean sIsForeground = false;
private static Handler sHandler;
private static final int MSG_GOTO_FOREGROUND = 1;
private static final int MSG_GOTO_BACKGROUND = 2;
Expand Down

0 comments on commit ab4497a

Please sign in to comment.