2 Commits
v2.0 ... master

Author SHA1 Message Date
Josh Patra
ddc2190ab9 Update README.md 2025-04-08 02:04:50 -04:00
167a4ce7c9 dark mode bug fixes 2020-12-10 09:18:17 -05:00
16 changed files with 107 additions and 8 deletions

Binary file not shown.

6
.idea/discord.xml generated Normal file
View File

@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="DiscordProjectSettings">
<option name="show" value="PROJECT" />
</component>
</project>

View File

@@ -7,6 +7,9 @@
<root url="jar://$USER_HOME$/.gradle/caches/transforms-2/files-2.1/a010526f470c551c94d8e651721fae4f/jetified-tableview-0.8.8/jars/classes.jar!/" /> <root url="jar://$USER_HOME$/.gradle/caches/transforms-2/files-2.1/a010526f470c551c94d8e651721fae4f/jetified-tableview-0.8.8/jars/classes.jar!/" />
<root url="file://$USER_HOME$/.gradle/caches/transforms-2/files-2.1/a010526f470c551c94d8e651721fae4f/jetified-tableview-0.8.8/res" /> <root url="file://$USER_HOME$/.gradle/caches/transforms-2/files-2.1/a010526f470c551c94d8e651721fae4f/jetified-tableview-0.8.8/res" />
<root url="file://$USER_HOME$/.gradle/caches/transforms-2/files-2.1/a010526f470c551c94d8e651721fae4f/jetified-tableview-0.8.8/AndroidManifest.xml" /> <root url="file://$USER_HOME$/.gradle/caches/transforms-2/files-2.1/a010526f470c551c94d8e651721fae4f/jetified-tableview-0.8.8/AndroidManifest.xml" />
<root url="jar://$USER_HOME$/.gradle/caches/transforms-2/files-2.1/7a68d47816e0681389798021a2b391d9/jetified-tableview-0.8.8/jars/classes.jar!/" />
<root url="file://$USER_HOME$/.gradle/caches/transforms-2/files-2.1/7a68d47816e0681389798021a2b391d9/jetified-tableview-0.8.8/AndroidManifest.xml" />
<root url="file://$USER_HOME$/.gradle/caches/transforms-2/files-2.1/7a68d47816e0681389798021a2b391d9/jetified-tableview-0.8.8/res" />
</CLASSES> </CLASSES>
<JAVADOC> <JAVADOC>
<root url="jar://$USER_HOME$/.gradle/caches/modules-2/files-2.1/com.evrencoskun.library/tableview/0.8.8/955d4ff9c5f6b8cb26dd62c7c12dbf37f0823d32/tableview-0.8.8-javadoc.jar!/" /> <root url="jar://$USER_HOME$/.gradle/caches/modules-2/files-2.1/com.evrencoskun.library/tableview/0.8.8/955d4ff9c5f6b8cb26dd62c7c12dbf37f0823d32/tableview-0.8.8-javadoc.jar!/" />

View File

@@ -9,6 +9,9 @@
<root url="file://$USER_HOME$/.gradle/caches/transforms-2/files-2.1/35536cc01d1794293f7893a0d7cd3d1e/jetified-picasso-2.71828/res" /> <root url="file://$USER_HOME$/.gradle/caches/transforms-2/files-2.1/35536cc01d1794293f7893a0d7cd3d1e/jetified-picasso-2.71828/res" />
<root url="file://$USER_HOME$/.gradle/caches/transforms-2/files-2.1/35536cc01d1794293f7893a0d7cd3d1e/jetified-picasso-2.71828/AndroidManifest.xml" /> <root url="file://$USER_HOME$/.gradle/caches/transforms-2/files-2.1/35536cc01d1794293f7893a0d7cd3d1e/jetified-picasso-2.71828/AndroidManifest.xml" />
<root url="jar://$USER_HOME$/.gradle/caches/transforms-2/files-2.1/35536cc01d1794293f7893a0d7cd3d1e/jetified-picasso-2.71828/jars/classes.jar!/" /> <root url="jar://$USER_HOME$/.gradle/caches/transforms-2/files-2.1/35536cc01d1794293f7893a0d7cd3d1e/jetified-picasso-2.71828/jars/classes.jar!/" />
<root url="file://$USER_HOME$/.gradle/caches/transforms-2/files-2.1/81a3173890fc616c855381f620c574d5/jetified-picasso-2.71828/res" />
<root url="jar://$USER_HOME$/.gradle/caches/transforms-2/files-2.1/81a3173890fc616c855381f620c574d5/jetified-picasso-2.71828/jars/classes.jar!/" />
<root url="file://$USER_HOME$/.gradle/caches/transforms-2/files-2.1/81a3173890fc616c855381f620c574d5/jetified-picasso-2.71828/AndroidManifest.xml" />
</CLASSES> </CLASSES>
<JAVADOC> <JAVADOC>
<root url="jar://$USER_HOME$/.gradle/caches/modules-2/files-2.1/com.squareup.picasso/picasso/2.71828/2843564e6bac90b1e125104d7c842c87a96a8ee9/picasso-2.71828-javadoc.jar!/" /> <root url="jar://$USER_HOME$/.gradle/caches/modules-2/files-2.1/com.squareup.picasso/picasso/2.71828/2843564e6bac90b1e125104d7c842c87a96a8ee9/picasso-2.71828-javadoc.jar!/" />

28
.project Normal file
View File

@@ -0,0 +1,28 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>TrackCovid19</name>
<comment>Project TrackCovid19 created by Buildship.</comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.buildship.core.gradleprojectbuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.buildship.core.gradleprojectnature</nature>
</natures>
<filteredResources>
<filter>
<id>1606852722430</id>
<name></name>
<type>30</type>
<matcher>
<id>org.eclipse.core.resources.regexFilterMatcher</id>
<arguments>node_modules|.git|__CREATED_BY_JAVA_LANGUAGE_SERVER__</arguments>
</matcher>
</filter>
</filteredResources>
</projectDescription>

View File

@@ -0,0 +1,13 @@
arguments=
auto.sync=false
build.scans.enabled=false
connection.gradle.distribution=GRADLE_DISTRIBUTION(WRAPPER)
connection.project.dir=
eclipse.preferences.version=1
gradle.user.home=
java.home=/Library/Java/JavaVirtualMachines/adoptopenjdk-11.jdk/Contents/Home
jvm.arguments=
offline.mode=false
override.workspace.settings=true
show.console.view=true
show.executions.view=true

View File

@@ -3,6 +3,10 @@ An app that helps you to track the progress of COVID-19 around the world.
If it is needed, feel free to submit an issue on this Github page, and the issue will be fixed ASAP. If it is needed, feel free to submit an issue on this Github page, and the issue will be fixed ASAP.
<img src="https://github.com/user-attachments/assets/d3f1698a-0717-4f29-8885-9ee8c559bacb" width="250">
# Downloading the app onto your own (Android) phone # Downloading the app onto your own (Android) phone
In order to download the app on your own, you will need to navigate to my release apk download page, [which I will link here](https://github.com/SoPat712/TrackCovid19/releases/download/v1.4/TrackCovid19.apk), or you can wait for the approval of the app to the Google Play Store. In order to download the app on your own, you will need to navigate to my release apk download page, [which I will link here](https://github.com/SoPat712/TrackCovid19/releases/download/v1.4/TrackCovid19.apk), or you can wait for the approval of the app to the Google Play Store.

6
app/.classpath Normal file
View File

@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-11/"/>
<classpathentry kind="con" path="org.eclipse.buildship.core.gradleclasspathcontainer"/>
<classpathentry kind="output" path="bin/default"/>
</classpath>

34
app/.project Normal file
View File

@@ -0,0 +1,34 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>app</name>
<comment>Project app created by Buildship.</comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.buildship.core.gradleprojectbuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jdt.core.javanature</nature>
<nature>org.eclipse.buildship.core.gradleprojectnature</nature>
</natures>
<filteredResources>
<filter>
<id>1606852722445</id>
<name></name>
<type>30</type>
<matcher>
<id>org.eclipse.core.resources.regexFilterMatcher</id>
<arguments>node_modules|.git|__CREATED_BY_JAVA_LANGUAGE_SERVER__</arguments>
</matcher>
</filter>
</filteredResources>
</projectDescription>

View File

@@ -0,0 +1,2 @@
connection.project.dir=..
eclipse.preferences.version=1

View File

@@ -1,7 +1,6 @@
package com.josh.trackcovid19v2; package com.josh.trackcovid19v2;
import android.app.Activity; import android.app.Activity;
import android.content.Context;
import android.os.Bundle; import android.os.Bundle;
import android.view.Menu; import android.view.Menu;
import android.view.View; import android.view.View;
@@ -43,6 +42,7 @@ public class MainActivity extends AppCompatActivity {
Toast.makeText(getApplicationContext(), "Data Imported Successfully",Toast.LENGTH_SHORT).show(); Toast.makeText(getApplicationContext(), "Data Imported Successfully",Toast.LENGTH_SHORT).show();
} }
public static void hideKeyboardFrom(Activity activity) { public static void hideKeyboardFrom(Activity activity) {
InputMethodManager imm = (InputMethodManager) activity.getSystemService(Activity.INPUT_METHOD_SERVICE); InputMethodManager imm = (InputMethodManager) activity.getSystemService(Activity.INPUT_METHOD_SERVICE);
//Find the currently focused view, so we can grab the correct window token from it. //Find the currently focused view, so we can grab the correct window token from it.

View File

@@ -24,6 +24,8 @@ public class SettingsActivity extends AppCompatActivity {
if (actionBar != null) { if (actionBar != null) {
actionBar.setDisplayHomeAsUpEnabled(true); actionBar.setDisplayHomeAsUpEnabled(true);
} }
System.out.println("SettingsActivity OnCreate");
Log.i("steaass","asdfasdfasfdasdfafs onCretaaa");
} }
public static class SettingsFragment extends PreferenceFragmentCompat { public static class SettingsFragment extends PreferenceFragmentCompat {
@@ -37,13 +39,11 @@ public class SettingsActivity extends AppCompatActivity {
public boolean onPreferenceChange(Preference preference, Object newValue) { public boolean onPreferenceChange(Preference preference, Object newValue) {
if (AppCompatDelegate.getDefaultNightMode() == AppCompatDelegate.MODE_NIGHT_YES) { if (AppCompatDelegate.getDefaultNightMode() == AppCompatDelegate.MODE_NIGHT_YES) {
AppCompatDelegate.setDefaultNightMode(AppCompatDelegate.MODE_NIGHT_NO); AppCompatDelegate.setDefaultNightMode(AppCompatDelegate.MODE_NIGHT_NO);
darkModeSwitch.setDefaultValue(true);
Log.i("aa","set off dark mode"); Log.i("aa","set off dark mode");
} else { } else {
AppCompatDelegate.setDefaultNightMode(AppCompatDelegate.MODE_NIGHT_YES); AppCompatDelegate.setDefaultNightMode(AppCompatDelegate.MODE_NIGHT_YES);
darkModeSwitch.setDefaultValue(false);
Log.i("aa","set on dark mode"); Log.i("aa","set on dark mode");
darkModeSwitch.setEnabled(true);
} }
return false; return false;
} }

View File

@@ -23,7 +23,7 @@ import retrofit2.converter.gson.GsonConverterFactory;
public class NetworkUtils { public class NetworkUtils {
private static final String LOG_TAG = NetworkUtils.class.getSimpleName(); private static final String LOG_TAG = NetworkUtils.class.getSimpleName();
private static final String BASE_URL = "https://disease.sh/"; private static final String BASE_URL = "https://corona.lmao.ninja/";
private static Retrofit getRetrofit() { private static Retrofit getRetrofit() {
return new Retrofit.Builder().baseUrl(BASE_URL).addConverterFactory(GsonConverterFactory return new Retrofit.Builder().baseUrl(BASE_URL).addConverterFactory(GsonConverterFactory

View File

@@ -7,7 +7,7 @@
<SwitchPreference <SwitchPreference
android:key="darkMode" android:key="darkMode"
android:title="Dark Mode" android:title="Dark Mode"
android:defaultValue="false"
android:summaryOff="Disabled" android:summaryOff="Disabled"
android:summaryOn="Enabled"/> android:summaryOn="Enabled"/>