Skip to content

Commit

Permalink
remove all unnecessary comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Abdullahfoysal committed Apr 26, 2020
1 parent f9df81f commit e6513e8
Show file tree
Hide file tree
Showing 7 changed files with 5 additions and 88 deletions.
47 changes: 0 additions & 47 deletions Covid19Shahajjo/app/google-services.json

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -37,42 +37,7 @@ protected void onCreate(Bundle savedInstanceState) {

YouTubeVideos youTubeVideos=new YouTubeVideos(covid19StoryActivity,null,null);

/*********************************ADD VIDEO INFO TO FIREBASE*********************************************/

//Add youtubeVideo data to firebase

/* Data Schema :
root:
video:
autoGenerated Id:
title: about the video or selialization
url: zx6uMCoW2gQ //https://www.youtube.com/watch?v=zx6uMCoW2gQ
youTubeVideos.addYoutubeVideoData(databaseReference,"about the video or selialization","zx6uMCoW2gQ");
*/

/*********************************DELETE AND UPDATE VIDEO TO FIREBASE*********************************************/

/*
//delete a video information with title
youTubeVideos.deleteYoutubeVideoData(databaseReference,"Test");
//update title with presentTitle
// youTubeVideos.updateYoutubeVideoTitleData();
//update url with presentTitle
// youTubeVideos.updateYoutubeVideoUrlData();
//update title+ url with presentTitle
youTubeVideos.updateYoutubeVideoData(databaseReference,"Empty","About Corona virus","PSnSo9kYlH4");*/


/*********************************GET VIDEO INFO FROM FIREBASE*********************************************/

//get Youtube data from firebase and show on recycle view (VideoAdapter)
youTubeVideos.getYoutubeVideoData(databaseReference,storyRecyclerView);


Expand All @@ -90,7 +55,7 @@ private void setUserPreferableTitle(){
String title = getResources().getString(R.string.covid_story_title_bd);
setTitle(title);
}else{
setTitle("Covid Story");
setTitle("Covid-19 Story");
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public void onClick(View view) {

@Override
public void onReady(YouTubePlayer youTubePlayer) {
// super.onReady(youTubePlayer);

covid19StoryActivity.getLifecycle().addObserver(holder.youTubePlayerView);
youTubePlayer.cueVideo(youTubeVideosList.get(position).getUrl(),0);
youTubePlayerArrayList.add(youTubePlayer);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ public void setUrl(String url) {
this.url = url;
}

///Add Youtube video title and watch link to firebase realtime database

public void addYoutubeVideoData(DatabaseReference databaseReference,String title,String url){

Expand Down Expand Up @@ -83,7 +82,7 @@ public void onDataChange(@NonNull DataSnapshot dataSnapshot) {

for(DataSnapshot youtubeVideo : dataSnapshot.getChildren()){
YouTubeVideos tempdata =youtubeVideo.getValue(YouTubeVideos.class);
//Add data to vector data

youTubeVideos.add(new YouTubeVideos(tempdata.getTitle(),tempdata.getUrl()));

}
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

We developed this application to provide some emergency contacts and information to help people in Bangladesh in the situation of COVID-19.

<img src="/images/1.jpg" style="zoom: 33%;" />
<img src="/images/1.png" style="zoom: 33%;" />



Expand Down Expand Up @@ -35,7 +35,7 @@ We developed this application to provide some emergency contacts and information

* **Covid-19 Story**

<img src="/images/8.jpg" style="zoom: 25%;" />
<img src="/images/8.png" style="zoom: 25%;" />



Expand Down
Binary file modified images/1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/8.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit e6513e8

Please sign in to comment.