Skip to content

Commit

Permalink
removed the need for root access
Browse files Browse the repository at this point in the history
  • Loading branch information
Klaus3d3 committed Jul 9, 2018
1 parent e968bf2 commit 9124de3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ public void onDataReceived(TransportDataItem transportDataItem) {
}
if (action.equals(Constants.ACTION_XDRIP_ALARM))
{ HermesEventBus.getDefault().post(new xDripAlarm(db));

confirm_sgv_data(db.getString("reply_message"));


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
import com.klaus3d3.xdripwidgetforamazfit.events.SnoozeRemoteConfirmation;
import com.klaus3d3.xdripwidgetforamazfit.events.xDripAlarm;
import com.klaus3d3.xdripwidgetforamazfit.events.xDripCancelConfirmation;
import com.klaus3d3.xdripwidgetforamazfit.MainService;
import com.github.marlonlom.utilities.timeago.TimeAgo;


Expand Down Expand Up @@ -107,10 +108,11 @@ public class NightscoutPage extends AbstractPlugin {
//Much like a fragment, getView returns the content view of the page. You can set up your layout here
@Override
public View getView(Context paramContext) {
mContext = paramContext;

Intent intent = new Intent(paramContext, MainService.class);
paramContext.startService(intent);
initIcons(paramContext);

mContext = paramContext;
Log.d(Constants.TAG_NIGHTSCOUT_PAGE, "getView()" + paramContext.getPackageName());

mView = LayoutInflater.from(paramContext).inflate(R.layout.nightscoout_page, null);
Expand Down

0 comments on commit 9124de3

Please sign in to comment.