-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Fixes #171 Fix Lint errors/warnings: global, coding style: add missing spaces #1955
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the pull request! I've made a bunch of suggestions for other if statement fixes and resolved some merge conflicts.
Please can you
- Review my suggestions
- Test the new code. I know we shouldn't have broken anything but it's always worth double checking the core functions of the app when making such wide-reaching changes (almost 70 files!)
bottomSheetBehaviorForDetails.setState(BottomSheetBehavior.STATE_HIDDEN); | ||
bottomSheetBehavior.setState(BottomSheetBehavior.STATE_EXPANDED); | ||
}else if(bottomSheetBehavior.getState()==BottomSheetBehavior.STATE_EXPANDED){ | ||
}else if (bottomSheetBehavior.getState()==BottomSheetBehavior.STATE_EXPANDED){ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
}else if (bottomSheetBehavior.getState()==BottomSheetBehavior.STATE_EXPANDED){ | |
} else if (bottomSheetBehavior.getState() == BottomSheetBehavior.STATE_EXPANDED) { |
@@ -195,10 +195,10 @@ public boolean onOptionsItemSelected(MenuItem item) { | |||
// Handle item selection | |||
switch (item.getItemId()) { | |||
case R.id.action_display_list: | |||
if(bottomSheetBehavior.getState()==BottomSheetBehavior.STATE_COLLAPSED || bottomSheetBehavior.getState()==BottomSheetBehavior.STATE_HIDDEN){ | |||
if (bottomSheetBehavior.getState()==BottomSheetBehavior.STATE_COLLAPSED || bottomSheetBehavior.getState()==BottomSheetBehavior.STATE_HIDDEN){ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if (bottomSheetBehavior.getState()==BottomSheetBehavior.STATE_COLLAPSED || bottomSheetBehavior.getState()==BottomSheetBehavior.STATE_HIDDEN){ | |
if (bottomSheetBehavior.getState() == BottomSheetBehavior.STATE_COLLAPSED || bottomSheetBehavior.getState() == BottomSheetBehavior.STATE_HIDDEN) { |
@@ -281,7 +281,7 @@ private void updateMapToTrackPosition() { | |||
|
|||
// Make camera to follow user on location change | |||
CameraPosition position ; | |||
if(ViewUtil.isPortrait(getActivity())){ | |||
if (ViewUtil.isPortrait(getActivity())){ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if (ViewUtil.isPortrait(getActivity())){ | |
if (ViewUtil.isPortrait(getActivity())) { |
@@ -416,7 +416,7 @@ private void setListeners() { | |||
mapView.getMapAsync(mapboxMap -> { | |||
CameraPosition position; | |||
|
|||
if(ViewUtil.isPortrait(getActivity())){ | |||
if (ViewUtil.isPortrait(getActivity())){ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if (ViewUtil.isPortrait(getActivity())){ | |
if (ViewUtil.isPortrait(getActivity())) { |
@@ -87,7 +87,7 @@ private void refresh() { | |||
private void addNotifications() { | |||
Timber.d("Add notifications"); | |||
|
|||
if(mNotificationWorkerFragment == null){ | |||
if (mNotificationWorkerFragment == null){ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if (mNotificationWorkerFragment == null){ | |
if (mNotificationWorkerFragment == null) { |
@@ -95,7 +95,7 @@ private void saveQuery(String query) { | |||
public View onCreateView(LayoutInflater inflater, ViewGroup container,Bundle savedInstanceState) { | |||
View rootView = inflater.inflate(R.layout.fragment_browse_image, container, false); | |||
ButterKnife.bind(this, rootView); | |||
if(getActivity().getResources().getConfiguration().orientation == Configuration.ORIENTATION_PORTRAIT){ | |||
if (getActivity().getResources().getConfiguration().orientation == Configuration.ORIENTATION_PORTRAIT){ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if (getActivity().getResources().getConfiguration().orientation == Configuration.ORIENTATION_PORTRAIT){ | |
if (getActivity().getResources().getConfiguration().orientation == Configuration.ORIENTATION_PORTRAIT) { |
@@ -97,7 +97,7 @@ private void saveQuery(String query) { | |||
public View onCreateView(LayoutInflater inflater, ViewGroup container,Bundle savedInstanceState) { | |||
View rootView = inflater.inflate(R.layout.fragment_browse_image, container, false); | |||
ButterKnife.bind(this, rootView); | |||
if(getActivity().getResources().getConfiguration().orientation == Configuration.ORIENTATION_PORTRAIT){ | |||
if (getActivity().getResources().getConfiguration().orientation == Configuration.ORIENTATION_PORTRAIT){ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if (getActivity().getResources().getConfiguration().orientation == Configuration.ORIENTATION_PORTRAIT){ | |
if (getActivity().getResources().getConfiguration().orientation == Configuration.ORIENTATION_PORTRAIT) { |
@@ -418,14 +418,14 @@ public void onTextChanged(CharSequence s, int start, int before, int count) { | |||
|
|||
@OnClick(R.id.seeMore) | |||
public void onSeeMoreClicked(){ | |||
if(nominatedForDeletion.getVisibility()== VISIBLE) { | |||
if (nominatedForDeletion.getVisibility()== VISIBLE) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if (nominatedForDeletion.getVisibility()== VISIBLE) { | |
if (nominatedForDeletion.getVisibility() == VISIBLE) { |
@@ -156,7 +156,7 @@ public boolean onOptionsItemSelected(MenuItem item) { | |||
viewIntent.setAction(ACTION_VIEW); | |||
viewIntent.setData(m.getFilePageTitle().getMobileUri()); | |||
//check if web browser available | |||
if(viewIntent.resolveActivity(getActivity().getPackageManager()) != null){ | |||
if (viewIntent.resolveActivity(getActivity().getPackageManager()) != null){ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if (viewIntent.resolveActivity(getActivity().getPackageManager()) != null){ | |
if (viewIntent.resolveActivity(getActivity().getPackageManager()) != null) { |
@@ -58,7 +58,7 @@ public RequestBuilder action(String action) { | |||
} | |||
|
|||
public String getAuthCookie() { | |||
if(authCookie == null){ | |||
if (authCookie == null){ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if (authCookie == null){ | |
if (authCookie == null) { |
Tested tutorial, login, home, media detail view, nearby, explore, notifications, settings, about page. Results
|
global, coding style: add missing spaces
Fixes #{GitHub issue number and title (Please do not forget adding title) }
Description (required)
Fixes #171 (partially)
Tests performed (required)
none