mirror of
https://github.com/ClaytonWWilson/Listify.git
synced 2025-12-16 02:38:47 +00:00
Added shared button back to shopping list page
This commit is contained in:
parent
1fd0149b2e
commit
56cd59351f
@ -42,7 +42,7 @@ public class ListPage extends AppCompatActivity implements Requestor.Receiver {
|
|||||||
Button decrQuan;
|
Button decrQuan;
|
||||||
Button removeItem;
|
Button removeItem;
|
||||||
Button clearAll;
|
Button clearAll;
|
||||||
//Button shareList;
|
Button shareList;
|
||||||
|
|
||||||
TextView tvTotalPrice;
|
TextView tvTotalPrice;
|
||||||
ProgressBar loadingListItems;
|
ProgressBar loadingListItems;
|
||||||
@ -109,7 +109,7 @@ public class ListPage extends AppCompatActivity implements Requestor.Receiver {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
/*shareList = (Button) findViewById(R.id.buttonShare);
|
shareList = (Button) findViewById(R.id.buttonShare);
|
||||||
shareList.setOnClickListener(new View.OnClickListener() {
|
shareList.setOnClickListener(new View.OnClickListener() {
|
||||||
@Override
|
@Override
|
||||||
public void onClick(View v) {
|
public void onClick(View v) {
|
||||||
@ -139,7 +139,7 @@ public class ListPage extends AppCompatActivity implements Requestor.Receiver {
|
|||||||
AlertDialog dialog = builder.create();
|
AlertDialog dialog = builder.create();
|
||||||
dialog.show();
|
dialog.show();
|
||||||
}
|
}
|
||||||
});*/
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
@ -3,6 +3,7 @@ package com.example.listify.ui.home;
|
|||||||
import android.app.AlertDialog;
|
import android.app.AlertDialog;
|
||||||
import android.content.DialogInterface;
|
import android.content.DialogInterface;
|
||||||
import android.content.Intent;
|
import android.content.Intent;
|
||||||
|
import android.net.Uri;
|
||||||
import android.os.Bundle;
|
import android.os.Bundle;
|
||||||
import android.util.Log;
|
import android.util.Log;
|
||||||
import android.view.View;
|
import android.view.View;
|
||||||
@ -64,10 +65,26 @@ public class HomeFragment extends Fragment {
|
|||||||
am.changePassword(am.getEmail());
|
am.changePassword(am.getEmail());
|
||||||
}
|
}
|
||||||
catch (Exception e) {}
|
catch (Exception e) {}
|
||||||
try {
|
/*try {
|
||||||
am.confirmPasswordReset("", "");
|
am.confirmPasswordReset("", "");
|
||||||
}
|
}
|
||||||
catch (Exception e) {}
|
|
||||||
|
String[] TO = {am.getEmail()};
|
||||||
|
Intent emailIntent = new Intent(Intent.ACTION_SEND);
|
||||||
|
emailIntent.setData(Uri.parse("mailto:"));
|
||||||
|
emailIntent.setType("text/plain");
|
||||||
|
emailIntent.putExtra(Intent.EXTRA_EMAIL, TO);
|
||||||
|
emailIntent.putExtra(Intent.EXTRA_SUBJECT, "Listify account deleted");
|
||||||
|
emailIntent.putExtra(Intent.EXTRA_TEXT, "Hello, this email is to confirm that you have deleted your Listify account.");
|
||||||
|
try {
|
||||||
|
startActivity(Intent.createChooser(emailIntent, "Send mail..."));
|
||||||
|
getActivity().finish();
|
||||||
|
Log.i("Finished sending email...", "");
|
||||||
|
System.out.println("A");
|
||||||
|
} catch (Exception e) {
|
||||||
|
e.printStackTrace();
|
||||||
|
System.out.println("B");
|
||||||
|
}*/
|
||||||
|
|
||||||
am.deleteUser(requestor);
|
am.deleteUser(requestor);
|
||||||
Intent intent = new Intent(getActivity(), com.example.listify.ui.LoginPage.class);
|
Intent intent = new Intent(getActivity(), com.example.listify.ui.LoginPage.class);
|
||||||
|
|||||||
@ -26,14 +26,14 @@
|
|||||||
android:text="Clear All"
|
android:text="Clear All"
|
||||||
android:textSize="10sp"/>
|
android:textSize="10sp"/>
|
||||||
|
|
||||||
<!--<Button
|
<Button
|
||||||
android:id="@+id/buttonShare"
|
android:id="@+id/buttonShare"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginStart="26dp"
|
android:layout_marginStart="1dp"
|
||||||
android:layout_marginTop="10dp"
|
android:layout_marginTop="1dp"
|
||||||
android:text="Share"
|
android:text="Share"
|
||||||
android:textSize="10sp"/>-->
|
android:textSize="10sp"/>
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user