IvoGoman / Diabetes-App

Development Repository for the Team Project HWS 2015/ FSS 2016
1 stars 0 forks source link

[bloodsugar measurement icon] #49

Closed StefanHelmstetter closed 8 years ago

StefanHelmstetter commented 8 years ago

Icon to add measurments visible in various fragments, for example Statistics

nayera-muhammad commented 8 years ago

the error is very wierd as the icon add activities also appear on other tab's fragments if u go to settings for example and you go back.. I found out this error "Activity uni.mannheim.teamproject.diabetesplaner.UI.EntryScreenActivity has leaked ServiceConnection" I don't know if this can fix the problem or not... well i've been debugging for a couple of days nw

StefanHelmstetter commented 8 years ago

This error seems to be related to the recommendation services and therefore has nothing to do with the icons. I figured out that the problem is the StatisticsFragment where @IvoGoman defined his own menu in the ActionBar and overrides the onPrepareOptionsMenu and createOptionsMenu functions which then seems to be called in the StatisticsFragment as well as the EntryScreenActivity (parent activity). This casuses the problem. If you do not open the StatisticFragment everything will work fine. I integrated the Ivos menu into the ActionBar menu in the EntryScreenActivity. The icons will now be determined in the EntryScreenActivity.onPrepareOptionsMenu as well as in onNavigationItemSelected. This should fix the issue.