This commit is contained in:
Tad 2017-12-17 07:48:17 -05:00
parent 23774983ab
commit e889bbce4a
3 changed files with 3 additions and 4 deletions

2
.idea/misc.xml generated
View file

@ -24,7 +24,7 @@
</value> </value>
</option> </option>
</component> </component>
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" default="true" project-jdk-name="JDK" project-jdk-type="JavaSDK"> <component name="ProjectRootManager" version="2" languageLevel="JDK_1_7" default="true" project-jdk-name="JDK" project-jdk-type="JavaSDK">
<output url="file://$PROJECT_DIR$/build/classes" /> <output url="file://$PROJECT_DIR$/build/classes" />
</component> </component>
<component name="ProjectType"> <component name="ProjectType">

View file

@ -24,9 +24,8 @@ class Database {
public final static HashMap<String, String> signaturesSHA1 = new HashMap<>(); public final static HashMap<String, String> signaturesSHA1 = new HashMap<>();
public final static HashMap<String, String> signaturesSHA256 = new HashMap<>(); public final static HashMap<String, String> signaturesSHA256 = new HashMap<>();
public Database(Context context, TextView log) { public Database(TextView log) {
Database.log = log; Database.log = log;
initDatabase(context);
} }
public static boolean areDatabasesAvailable() { public static boolean areDatabasesAvailable() {

View file

@ -53,7 +53,7 @@ public class MainActivity extends AppCompatActivity {
logView.append("Powered by ClamAV signatures\n"); logView.append("Powered by ClamAV signatures\n");
logView.append("\nDisclaimer: This is an extremely basic signature scanner\n\n"); logView.append("\nDisclaimer: This is an extremely basic signature scanner\n\n");
final Database database = new Database(this, logView); final Database database = new Database(logView);
malwareScanner = new MalwareScanner(this, this, true); malwareScanner = new MalwareScanner(this, this, true);
prefs = getSharedPreferences(BuildConfig.APPLICATION_ID, Context.MODE_PRIVATE); prefs = getSharedPreferences(BuildConfig.APPLICATION_ID, Context.MODE_PRIVATE);