Skip to content

Commit

Permalink
Merge branch 'OmarBranch' of https://github.com/uOttawaSEGA2022/proje…
Browse files Browse the repository at this point in the history
…t-groupe-25 into OmarBranch
  • Loading branch information
OmarOuad committed Dec 12, 2022
2 parents 818f357 + e606490 commit 47ee993
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 1 deletion.
9 changes: 9 additions & 0 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,15 @@
tools:targetApi="31">
<activity
android:name=".UnpublishedRecipes"
android:exported="false">
<meta-data
android:name="android.app.lib_name"
android:value="" />
</activity>

<activity
android:name=".MyRecipes"

android:exported="false">
<meta-data
android:name="android.app.lib_name"
Expand Down
28 changes: 28 additions & 0 deletions app/src/main/java/com/example/akolapp/MyRecipes.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
package com.example.akolapp;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;
import android.widget.Button;

import com.google.firebase.firestore.FirebaseFirestore;

public class MyRecipes extends AppCompatActivity {
FirebaseFirestore db;
Button MoveToPublishedRecipes,Delete;

@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_my_recipes);

db = FirebaseFirestore.getInstance();
MoveToPublishedRecipes = findViewById(R.id.MoveToPublishedRecipesButton);
Delete = findViewById(R.id.DeleteButton);





}
}
6 changes: 5 additions & 1 deletion app/src/main/java/com/example/akolapp/PublishedRecipes.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import static android.content.ContentValues.TAG;


import androidx.annotation.NonNull;
import androidx.appcompat.app.AppCompatActivity;

Expand Down Expand Up @@ -41,10 +42,12 @@ public class PublishedRecipes extends AppCompatActivity {
//private String currID;
private FirebaseAuth auth;


@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_published_recipes);

Recipe recipe = getIntent().getParcelableExtra("Recipe");
recipeName = findViewById(R.id.RecipeName);
cuisineType = findViewById(R.id.CuisineType);
Expand Down Expand Up @@ -123,5 +126,6 @@ public void onFailure(@NonNull Exception e) {




}
}
}

0 comments on commit 47ee993

Please sign in to comment.