diff --git a/.gradle/5.6.4/executionHistory/executionHistory.bin b/.gradle/5.6.4/executionHistory/executionHistory.bin
index 86ba3dd..9d60397 100644
Binary files a/.gradle/5.6.4/executionHistory/executionHistory.bin and b/.gradle/5.6.4/executionHistory/executionHistory.bin differ
diff --git a/.gradle/5.6.4/executionHistory/executionHistory.lock b/.gradle/5.6.4/executionHistory/executionHistory.lock
index 30850dd..93fbe82 100644
Binary files a/.gradle/5.6.4/executionHistory/executionHistory.lock and b/.gradle/5.6.4/executionHistory/executionHistory.lock differ
diff --git a/.gradle/5.6.4/fileHashes/fileHashes.bin b/.gradle/5.6.4/fileHashes/fileHashes.bin
index 2ca1c35..dff573d 100644
Binary files a/.gradle/5.6.4/fileHashes/fileHashes.bin and b/.gradle/5.6.4/fileHashes/fileHashes.bin differ
diff --git a/.gradle/5.6.4/fileHashes/fileHashes.lock b/.gradle/5.6.4/fileHashes/fileHashes.lock
index 38262ba..3168bef 100644
Binary files a/.gradle/5.6.4/fileHashes/fileHashes.lock and b/.gradle/5.6.4/fileHashes/fileHashes.lock differ
diff --git a/.gradle/5.6.4/fileHashes/resourceHashesCache.bin b/.gradle/5.6.4/fileHashes/resourceHashesCache.bin
index 25df958..664ae5c 100644
Binary files a/.gradle/5.6.4/fileHashes/resourceHashesCache.bin and b/.gradle/5.6.4/fileHashes/resourceHashesCache.bin differ
diff --git a/.gradle/5.6.4/javaCompile/classAnalysis.bin b/.gradle/5.6.4/javaCompile/classAnalysis.bin
index bba2503..ff980e1 100644
Binary files a/.gradle/5.6.4/javaCompile/classAnalysis.bin and b/.gradle/5.6.4/javaCompile/classAnalysis.bin differ
diff --git a/.gradle/5.6.4/javaCompile/jarAnalysis.bin b/.gradle/5.6.4/javaCompile/jarAnalysis.bin
index 64b91c7..57b346c 100644
Binary files a/.gradle/5.6.4/javaCompile/jarAnalysis.bin and b/.gradle/5.6.4/javaCompile/jarAnalysis.bin differ
diff --git a/.gradle/5.6.4/javaCompile/javaCompile.lock b/.gradle/5.6.4/javaCompile/javaCompile.lock
index 6c1a277..e6b806e 100644
Binary files a/.gradle/5.6.4/javaCompile/javaCompile.lock and b/.gradle/5.6.4/javaCompile/javaCompile.lock differ
diff --git a/.gradle/5.6.4/javaCompile/taskHistory.bin b/.gradle/5.6.4/javaCompile/taskHistory.bin
index df861ae..8599585 100644
Binary files a/.gradle/5.6.4/javaCompile/taskHistory.bin and b/.gradle/5.6.4/javaCompile/taskHistory.bin differ
diff --git a/.gradle/buildOutputCleanup/buildOutputCleanup.lock b/.gradle/buildOutputCleanup/buildOutputCleanup.lock
index 9000fec..85993f6 100644
Binary files a/.gradle/buildOutputCleanup/buildOutputCleanup.lock and b/.gradle/buildOutputCleanup/buildOutputCleanup.lock differ
diff --git a/.idea/caches/build_file_checksums.ser b/.idea/caches/build_file_checksums.ser
index 2e3e10f..a38c666 100644
Binary files a/.idea/caches/build_file_checksums.ser and b/.idea/caches/build_file_checksums.ser differ
diff --git a/app/src/main/java/com/josh/trackcovid19v2/LogsUtil.java b/app/src/main/java/com/josh/trackcovid19v2/LogsUtil.java
deleted file mode 100644
index ec7a155..0000000
--- a/app/src/main/java/com/josh/trackcovid19v2/LogsUtil.java
+++ /dev/null
@@ -1,30 +0,0 @@
-package com.josh.trackcovid19v2;
-
-import java.io.BufferedReader;
-import java.io.IOException;
-import java.io.InputStreamReader;
-
-/**
- * This class will provide utility to read logs.
- *
- * @author Chintan Rathod (http://chintanrathod.com)
- */
-public class LogsUtil {
-
- public static StringBuilder readLogs() {
- StringBuilder logBuilder = new StringBuilder();
- try {
- Process process = Runtime.getRuntime().exec("logcat -d");
- BufferedReader bufferedReader = new BufferedReader(
- new InputStreamReader(process.getInputStream()));
-
- String line;
- while ((line = bufferedReader.readLine()) != null) {
- logBuilder.append(line + "\n");
- }
- } catch (IOException e) {
- }
- return logBuilder;
- }
-}
-
diff --git a/app/src/main/java/com/josh/trackcovid19v2/SendFeedbackFragment.java b/app/src/main/java/com/josh/trackcovid19v2/SendFeedbackFragment.java
index d848000..02d9820 100644
--- a/app/src/main/java/com/josh/trackcovid19v2/SendFeedbackFragment.java
+++ b/app/src/main/java/com/josh/trackcovid19v2/SendFeedbackFragment.java
@@ -4,7 +4,6 @@ import android.app.Activity;
import android.app.AlertDialog;
import android.content.DialogInterface;
import android.content.Intent;
-import android.net.Uri;
import android.os.Build;
import android.os.Bundle;
@@ -88,6 +87,10 @@ public class SendFeedbackFragment extends Fragment {
builder.setPositiveButton("YES", new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int which) {
+
+ String toS = "joshpatra12@protonmail.com";
+ String subS = subject.getText().toString();
+ String mesS = message.getText().toString();
String system = System.getProperty("os.version");
Integer API = Build.VERSION.SDK_INT;
String device = Build.DEVICE;
@@ -102,44 +105,17 @@ public class SendFeedbackFragment extends Fragment {
.getMetrics(displayMetrics);
int height = displayMetrics.heightPixels + getNavigationBarHeight();
int width = displayMetrics.widthPixels;
- String toS = "joshpatra12@protonmail.com";
- String subS = subject.getText().toString();
- String mesS = message.getText().toString() + "\n\n\n\n\n\n" + "\nAPI: " + API + "\nDevice: "
- + device + "\nModel: "+ model +"\nType:" + type +"\nUser:" + user +
- "\nDisplay height: " + height + "\nDisplay width: " + width;
-
-
-
- /*
- Intent emailIntent = new Intent(Intent.ACTION_SENDTO);
- emailIntent.putExtra(Intent.EXTRA_EMAIL, toS);
- emailIntent.putExtra(Intent.EXTRA_SUBJECT, subS);
- emailIntent.putExtra(Intent.EXTRA_TEXT, mesS + "\n\n\n\n\n\n" + "\nAPI: " + API + "\nDevice: "
- + device + "\nModel: " + model + "\nType:" + type + "\nUser:" + user +
- "\nDisplay height: " + height + "\nDisplay width: " + width);
- startActivity(Intent.createChooser(emailIntent, "Choose an app to sdend the email with ⬇️"));
-
- */
- /*
Intent email = new Intent(Intent.ACTION_SEND);
email.putExtra(Intent.EXTRA_EMAIL , new String [] {toS});
-
email.putExtra(Intent.EXTRA_SUBJECT , subS);
- email.putExtra(Intent.EXTRA_TEXT , mesS);
+ email.putExtra(Intent.EXTRA_TEXT , mesS + "\n\n\n\n\n\n" + "\nAPI: " + API + "\nDevice: "
+ + device + "\nModel: "+ model +"\nType:" + type +"\nUser:" + user +
+ "\nDisplay height: " + height + "\nDisplay width: " + width);
+
email.setType("message/rfc822");
- startActivity(Intent.createChooser(email, "Choose an app to send the email with ⬇"));
- *
-
- */
- Intent intent = new Intent(Intent.ACTION_SENDTO);
- intent.setData(Uri.parse("mailto:")); // only email apps should handle this
- intent.putExtra(Intent.EXTRA_EMAIL, new String [] {toS});
- intent.putExtra(Intent.EXTRA_SUBJECT, subS);
- intent.putExtra(Intent.EXTRA_TEXT, mesS);
- startActivity(Intent.createChooser(intent, "Choose an app to send the email with ⬇"));
+ startActivity(Intent.createChooser(email, "Choose an app to send the email with"));
dialog.dismiss();
-
}
});
@@ -159,7 +135,6 @@ public class SendFeedbackFragment extends Fragment {
});
return view;
}
-
private int getNavigationBarHeight() {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN_MR1) {
DisplayMetrics metrics = new DisplayMetrics();
diff --git a/app/src/main/res/drawable-mdpi/btn_rounded_darker.xml b/app/src/main/res/drawable-mdpi/btn_rounded_darker.xml
deleted file mode 100644
index ab68be2..0000000
--- a/app/src/main/res/drawable-mdpi/btn_rounded_darker.xml
+++ /dev/null
@@ -1,5 +0,0 @@
-
-
-
-
-
diff --git a/app/src/main/res/drawable/btn_rounded.xml b/app/src/main/res/drawable/btn_rounded.xml
deleted file mode 100644
index 02df046..0000000
--- a/app/src/main/res/drawable/btn_rounded.xml
+++ /dev/null
@@ -1,5 +0,0 @@
-
-
-
-
-
diff --git a/app/src/main/res/layout/activity_home.xml b/app/src/main/res/layout/activity_home.xml
index 0086d62..b3de999 100644
--- a/app/src/main/res/layout/activity_home.xml
+++ b/app/src/main/res/layout/activity_home.xml
@@ -31,9 +31,8 @@