diff --git a/app/build.gradle b/app/build.gradle
index 71800eae..80d4e68f 100644
--- a/app/build.gradle
+++ b/app/build.gradle
@@ -5,7 +5,7 @@ android {
buildToolsVersion "29.0.0"
defaultConfig {
applicationId "lightswitch.emu"
- minSdkVersion 21
+ minSdkVersion 24
targetSdkVersion 29
versionCode 1
versionName "1.0"
diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml
index 284ef0fb..89284e49 100644
--- a/app/src/main/AndroidManifest.xml
+++ b/app/src/main/AndroidManifest.xml
@@ -5,6 +5,7 @@
+
parent, View view, int position, long id) {
if (adapter.getItemViewType(position) == ContentType.Item) {
- String path = ((GameItem) parent.getItemAtPosition(position)).getPath();
- notifyUser(getString(R.string.launching) + " " + path);
- loadFile(path, getApplicationInfo().dataDir + "/shared_prefs/" + getApplicationInfo().packageName + "_preferences.xml", getApplicationInfo().dataDir + "/log.bin");
+ GameItem item = ((GameItem) parent.getItemAtPosition(position));
+ notifyUser(getString(R.string.launching) + " " + item.getTitle());
+ loadFile(item.getPath(), getApplicationInfo().dataDir + "/shared_prefs/" + getApplicationInfo().packageName + "_preferences.xml", getApplicationInfo().dataDir + "/lightswitch.log");
}
}
});
diff --git a/app/src/main/res/drawable/ic_share.xml b/app/src/main/res/drawable/ic_share.xml
new file mode 100644
index 00000000..978c77d3
--- /dev/null
+++ b/app/src/main/res/drawable/ic_share.xml
@@ -0,0 +1,5 @@
+
+
+
diff --git a/app/src/main/res/menu/toolbar_log.xml b/app/src/main/res/menu/toolbar_log.xml
index 399f2edc..f91a90c5 100644
--- a/app/src/main/res/menu/toolbar_log.xml
+++ b/app/src/main/res/menu/toolbar_log.xml
@@ -7,6 +7,11 @@
android:title="@string/search"
app:showAsAction="ifRoom|withText"
app:actionViewClass="androidx.appcompat.widget.SearchView"/>
+
- Language
Clear
+ Share
The log file was not found
An I/O error has occurred
+ An error has occurred while sharing
The logs have been cleared