Skip to content

Commit 887209b

Browse files
committed
Fix: finish the feature component scope on feature activity exit.
1 parent bf5668c commit 887209b

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

app/src/main/java/com/cleanarch/features/wikientry/data/remote/WikiApiService.java

-2
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@
2424

2525
public interface WikiApiService {
2626

27-
// https://en.wikipedia.org/w/api.php?format=json&action=query&prop=extracts&exintro=&explaintext=&titles=Stack%20Overflow
28-
2927
@GET("/w/api.php?format=json&action=query&prop=extracts&exintro=&explaintext=")
3028
Flowable<WikiEntryApiResponse> getWikiEntry(@Query("titles") String title);
3129
}

app/src/main/java/com/cleanarch/features/wikientry/presentation/WikiEntryActivity.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ protected void onDestroy() {
7171
super.onDestroy();
7272

7373
//WikiEntry feature compoonent scope ends here
74-
((CleanArchApp)getApplication()).buildWikiEntryComponent();
74+
((CleanArchApp)getApplication()).releaseWikiEntryComponent();
7575
}
7676

7777
private View.OnClickListener submitButtonOnClickListener = new View.OnClickListener() {

0 commit comments

Comments
 (0)