Skip to content

Commit

Permalink
updated
Browse files Browse the repository at this point in the history
  • Loading branch information
tortuvshin committed Jan 2, 2019
1 parent c8f6786 commit dbdbe0a
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 70 deletions.
2 changes: 1 addition & 1 deletion .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

34 changes: 0 additions & 34 deletions app/src/main/java/cloud/techstar/memorize/database/GoogleUser.java

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

public class MemorizeConstant {

// private static String WEB_URL = "https://jisho.techstar.cloud/api/";
private static String WEB_URL = "https://techstar-cloud-tortuvshin.c9users.io/api/";
private static String WEB_URL = "https://techstar-jisho.herokuapp.com/api/";
// private static String WEB_URL = "https://techstar-cloud-tortuvshin.c9users.io/api/";

public static String GET_WORDS = WEB_URL.concat("words");
public static String CREATE_WORD = WEB_URL.concat("word/create");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,6 @@ public class WordsPresenter implements WordsContract.Presenter, WordsDataSource.
private OkHttpClient jishoClient;
private List<Words> searchWords;

private DatabaseReference mDatabase;

public WordsPresenter(@NonNull WordsDataSource wordRepository, @NonNull WordsContract.View wordsView) {
this.wordRepository = wordRepository;
this.wordsView = wordsView;
Expand Down Expand Up @@ -103,12 +101,8 @@ public void onWordsLoaded(List<Words> words) {

List<Words> mainWords = new ArrayList<Words>();

mDatabase = FirebaseDatabase.getInstance().getReference();

for (Words word : words) {

// mDatabase.child("words").child(word.getId()).setValue(word);

switch (getFilterType()) {
case ALL_WORDS:
mainWords.add(word);
Expand Down

0 comments on commit dbdbe0a

Please sign in to comment.