Skip to content

Commit

Permalink
bug fixes and code optimization
Browse files Browse the repository at this point in the history
  • Loading branch information
SidharthMudgil committed Jun 5, 2022
1 parent e10ebf9 commit 1871986
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 2 deletions.
Binary file added Reco/app/release/app-release.apk
Binary file not shown.
20 changes: 20 additions & 0 deletions Reco/app/release/output-metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"version": 3,
"artifactType": {
"type": "APK",
"kind": "Directory"
},
"applicationId": "com.sidharth.reco",
"variantName": "release",
"elements": [
{
"type": "SINGLE",
"filters": [],
"attributes": [],
"versionCode": 1,
"versionName": "1.0",
"outputFile": "app-release.apk"
}
],
"elementType": "File"
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import android.view.inputmethod.InputMethodManager;
import android.widget.EditText;

import androidx.annotation.NonNull;
import androidx.appcompat.app.AppCompatActivity;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
Expand Down Expand Up @@ -44,7 +45,7 @@ public class ChatActivity extends AppCompatActivity {
private static final ArrayList<String> MOODS = new ArrayList<>(Arrays.asList("happy", "calm", "anxious", "energetic", "indian"));
private static final ArrayList<String> FEEDBACK = new ArrayList<>(Arrays.asList("Yes", "No"));

private ArrayList<ChatModel> chats;
private static ArrayList<ChatModel> chats;
private ChatAdapter chatAdapter;
private RecyclerView recyclerView;

Expand All @@ -56,7 +57,9 @@ protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_chat);

SongRecommender.initializeSongData(this);
if (savedInstanceState == null) {
SongRecommender.initializeSongData(this);
}

// intro chats
ChatOptionModel moodOptionModel = new ChatOptionModel(TYPE_MOOD, MOODS);
Expand Down

0 comments on commit 1871986

Please sign in to comment.