Closed rajasone closed 5 years ago
Quick question, why do you have 2 settings fragments? SettingsFragment
and SettingsFragmentWithToolbar
- is it not possible to just use the SettingsFragment
?
I didn't try it myself, I'm just wondering why? (I guess you had a reason 😉 )
@spipau As our current application architecture each fragment is responsible
to show/handle it's toolbar, SettingsFragment
is of type PreferenceScreen
so it is not possible
to include a toolbar in SettingsFragment
, BaseFragment
is responsible to handle the toolbar and Up Navigation
so i created a fragment named as SettingsFragmentWithToolbar
which is just a container for Toolbar and SettingsFragment
, I think it is a clean solution to re-sue the BaseFragment
toolbar and navigation handling
Maybe we can improve this condition because currently if i open my app at 11:55 pm and after 5 minutes i open my app again (12:00am) this condition return
true
because we have different day of the month, it is working fine because of the another condition which checks thesize of existing news
, may be we can useDifference
class to get the difference in hours, i think it will be more efficient, it is not something really critical it's just a thought :) please check this link forDifference
class, thanks :)
You're right, but I don't think that it is a big problem. More like a nice to have thing, I don't think we need to be very precise here. But good point 😉
@spipau As our current application architecture each fragment is
responsible
to show/handle it's toolbar,SettingsFragment
is of typePreferenceScreen
so it is notpossible
to include a toolbar inSettingsFragment
,BaseFragment
is responsible to handle the toolbar andUp Navigation
so i created a fragment named asSettingsFragmentWithToolbar
which is just a container forToolbar and SettingsFragment
, I think it is a clean solution to re-sue theBaseFragment
toolbar and navigation handling
OK, I thought so, thanks, I guess it's OK 😄
Should we really offer the Sync News After
feature? I don't know if this necessary. Best practice is to always keep settings to a minimum.
@spipau i don't know either, you are right, may be we just allow user to Allow Sync Service
option only
@rajasone Thanks for removing the option. I just went through your changes and you implemented some logic to display the date of the last update, two things:
Never