Drop unnecessary elses after returns
This commit is contained in:
parent
9997b0f448
commit
401a1d473d
@ -546,12 +546,11 @@ public class AppProvider extends FDroidProvider {
|
|||||||
if (TextUtils.isEmpty(query)) {
|
if (TextUtils.isEmpty(query)) {
|
||||||
// Return all the things for an empty search.
|
// Return all the things for an empty search.
|
||||||
return getContentUri();
|
return getContentUri();
|
||||||
} else {
|
|
||||||
return getContentUri().buildUpon()
|
|
||||||
.appendPath(PATH_SEARCH)
|
|
||||||
.appendPath(query)
|
|
||||||
.build();
|
|
||||||
}
|
}
|
||||||
|
return getContentUri().buildUpon()
|
||||||
|
.appendPath(PATH_SEARCH)
|
||||||
|
.appendPath(query)
|
||||||
|
.build();
|
||||||
}
|
}
|
||||||
|
|
||||||
public static Uri getSearchInstalledUri(String query) {
|
public static Uri getSearchInstalledUri(String query) {
|
||||||
|
@ -199,11 +199,10 @@ public abstract class AppListFragment extends ListFragment implements
|
|||||||
onSearchStopped();
|
onSearchStopped();
|
||||||
setEmptyText(getEmptyMessage());
|
setEmptyText(getEmptyMessage());
|
||||||
return false;
|
return false;
|
||||||
} else {
|
|
||||||
onSearch();
|
|
||||||
setEmptyText(getNoSearchResultsMessage());
|
|
||||||
return true;
|
|
||||||
}
|
}
|
||||||
|
onSearch();
|
||||||
|
setEmptyText(getNoSearchResultsMessage());
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void updateSearchQuery(@Nullable String query) {
|
public void updateSearchQuery(@Nullable String query) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user