Closed HemangNakarani closed 4 years ago
Can I take this issue?
Sure, Go Ahead !!
@HemangNakarani Fragments are supposed to be blank for now, right?
@HemangNakarani @prit29 I have a suggestion, In settings as well as LayoutOneActivity we have snippets of redundant code like fetching the list of tab items from SharedPreferences and saving them back to SharedPreferences using Gson.
I want to add methods for them in Utils>Methods.java class to make it look cleaner. Can I add them in the PR I'll make solving this issue #30 ?
I'll just add a public method that returns a list of strings in a fetchTabItems( ) method and one void method for saving the list using saveTabItems( ) method.
@HemangNakarani @prit29 I have a suggestion, In settings as well as LayoutOneActivity we have snippets of redundant code like fetching the list of tab items from SharedPreferences and saving them back to SharedPreferences using Gson.
I want to add methods for them in Utils>Methods.java class to make it look cleaner. Can I add them in the PR I'll make solving this issue #30 ?
I'll just add a public method that returns a list of strings in a fetchTabItems( ) method and one void method for saving the list using saveTabItems( ) method.
Yeah, Very Nice idea. Go ahead. I have opened a separate issue for it. So you can make a new PR besides this issue. @ashishpatel16 comment on #43 so I can assign it to you.
@HemangNakarani @prit29 I've made a PR #45 . Do Suggest Changes!
Reference : tablayout and view pager