Commit c1955619 authored by RAHUL SHARMA's avatar RAHUL SHARMA

Modified CreateEvent

parent 6ffbab0d
...@@ -100,10 +100,6 @@ public class CreateEventActivity extends AppCompatActivity { ...@@ -100,10 +100,6 @@ public class CreateEventActivity extends AppCompatActivity {
// createNewEvent(name,venue,date,time,description,going,interested,id,parent,url); // createNewEvent(name,venue,date,time,description,going,interested,id,parent,url);
createNewEvent(name,venue,date,time,description,going,interested,id,parent); createNewEvent(name,venue,date,time,description,going,interested,id,parent);
uploadImage(name); uploadImage(name);
// String url = fetchUrl(name);
// System.out.println("*********************bahar***********************************");
// System.out.println(url);
// System.out.println("********************************************************");
} }
}); });
...@@ -115,13 +111,6 @@ public class CreateEventActivity extends AppCompatActivity { ...@@ -115,13 +111,6 @@ public class CreateEventActivity extends AppCompatActivity {
} }
}); });
// uploadImage.setOnClickListener(new View.OnClickListener() {
// @Override
// public void onClick(View v) {
//
// }
// });
} }
@Override @Override
...@@ -138,7 +127,11 @@ public class CreateEventActivity extends AppCompatActivity { ...@@ -138,7 +127,11 @@ public class CreateEventActivity extends AppCompatActivity {
ref.putFile(filePath).addOnSuccessListener(new OnSuccessListener<UploadTask.TaskSnapshot>() { ref.putFile(filePath).addOnSuccessListener(new OnSuccessListener<UploadTask.TaskSnapshot>() {
@Override @Override
public void onSuccess(UploadTask.TaskSnapshot taskSnapshot) { public void onSuccess(UploadTask.TaskSnapshot taskSnapshot) {
System.out.println("*****************************************************");
System.out.println("*****************************************************");
System.out.println(taskSnapshot);
System.out.println("****************************************************");
System.out.println("*****************************************************");
} }
}) })
.addOnFailureListener(new OnFailureListener() { .addOnFailureListener(new OnFailureListener() {
......
...@@ -45,21 +45,21 @@ public class EventDescriptionActivity extends AppCompatActivity { ...@@ -45,21 +45,21 @@ public class EventDescriptionActivity extends AppCompatActivity {
setContentView(R.layout.activity_event_description); setContentView(R.layout.activity_event_description);
// Toast.makeText(getApplicationContext(),getIntent().getStringExtra("eventNameClicked"), Toast.LENGTH_SHORT).show(); // Toast.makeText(getApplicationContext(),getIntent().getStringExtra("eventNameClicked"), Toast.LENGTH_SHORT).show();
eventNameClicked = getIntent().getStringExtra("eventNameClicked"); eventNameClicked = getIntent().getStringExtra("eventNameClicked");
initRecyclerView(); // initRecyclerView();
fetchEventDescription(); fetchEventDescription();
// displayEventDescription(); // displayEventDescription();
} }
private void initRecyclerView() { // private void initRecyclerView() {
LinearLayoutManager linearLayoutManager = new LinearLayoutManager(this); // LinearLayoutManager linearLayoutManager = new LinearLayoutManager(this);
recyclerView.setLayoutManager(linearLayoutManager); // recyclerView.setLayoutManager(linearLayoutManager);
// myEventAdapter = new MyEventAdapter(); //// myEventAdapter = new MyEventAdapter();
// recyclerView.setAdapter(myEventAdapter); //// recyclerView.setAdapter(myEventAdapter);
//
setSupportActionBar(findViewById(R.id.toolbar)); // setSupportActionBar(findViewById(R.id.toolbar));
setTitle("Clicked Event"); // setTitle("Clicked Event");
} // }
private void displayEventDescription() { private void displayEventDescription() {
System.out.println("************************************************"); System.out.println("************************************************");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment