Skip to content

Commit

Permalink
Fix: Several crashes reported to Play Store, bump version for Beta to…
Browse files Browse the repository at this point in the history
… v2.33.153
  • Loading branch information
mstevetodd committed Aug 13, 2022
1 parent ee2900e commit 4fdb999
Show file tree
Hide file tree
Showing 10 changed files with 14 additions and 11 deletions.
4 changes: 2 additions & 2 deletions EngineDriver/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="jmri.enginedriver"
android:versionCode="152"
android:versionName="2.33.152" android:installLocation="auto">
android:versionCode="153"
android:versionName="2.33.153" android:installLocation="auto">
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" tools:ignore="ScopedStorage" />
Expand Down
3 changes: 2 additions & 1 deletion EngineDriver/src/main/assets/about_page.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ <h1>Engine Driver Throttle for Android</h1>
<li>Fix: manual turnout buttons not enabling</li>
<li>Fix: tolerate FKeys > 28</li>
<li>New: Preference to alter the Heartbeat Response Factor (percentage of the heartbeat period)</li>
<li>New: Preference to have the App Icon an App Name on the Action Bar act as an emergency stop</li>
<li>New: Preference to have the App Icon and App Name act as an emergency stop</li>
<li>Fix: Several crashes reported to Play Store</li>
</ul>
<p><em><a
href="https://raw.githubusercontent.com/JMRI/EngineDriver/master/changelog-and-todo-list.txt"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ protected void attachBaseContext(Context base) {
// common startActivity()
// used for swipes for the main activities only - Throttle, Turnouts, Routs, Web
protected void startACoreActivity(Activity activity, Intent in, boolean swipe, float deltaX) {
if (activity != null) {
if (activity != null && in != null) {
in.setFlags(Intent.FLAG_ACTIVITY_REORDER_TO_FRONT);
startActivity(in);
overridePendingTransition(mainapp.getFadeIn(swipe, deltaX), mainapp.getFadeOut(swipe, deltaX));
Expand Down
2 changes: 1 addition & 1 deletion EngineDriver/src/main/java/jmri/enginedriver/routes.java
Original file line number Diff line number Diff line change
Expand Up @@ -806,7 +806,7 @@ public boolean dispatchKeyEvent(KeyEvent event) {
// common startActivity()
// used for swipes for the main activities only - Throttle, Turnouts, Routs, Web
void startACoreActivity(Activity activity, Intent in, boolean swipe, float deltaX) {
if (activity != null) {
if (activity != null && in != null) {
in.setFlags(Intent.FLAG_ACTIVITY_REORDER_TO_FRONT);
startActivity(in);
overridePendingTransition(mainapp.getFadeIn(swipe, deltaX), mainapp.getFadeOut(swipe, deltaX));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1406,7 +1406,7 @@ private void process_consist_list(String response_str) {
Log.d("Engine_Driver", "t_a: consist header, addr='" + consist_addr
+ "', name='" + consist_name + "', desc='" + consist_desc + "'");
//don't add empty consists to list
if (consist_desc.length() > 0) {
if (consist_entries != null && consist_desc.length() > 0) {
consist_entries.put(consist_addr, consist_desc.toString());
} else {
Log.d("Engine_Driver", "skipping empty consist '" + consist_name + "'");
Expand Down
4 changes: 2 additions & 2 deletions EngineDriver/src/main/java/jmri/enginedriver/throttle.java
Original file line number Diff line number Diff line change
Expand Up @@ -7906,9 +7906,9 @@ protected void loadSounds() {
}

// common startActivity()
// used for swipes for the main activities only - Throttle, Turnouts, Routs, Web
// used for swipes for the main activities only - Throttle, Turnouts, Routes, Web
protected void startACoreActivity(Activity activity, Intent in, boolean swipe, float deltaX) {
if (activity != null) {
if (activity != null && in != null) {
in.setFlags(Intent.FLAG_ACTIVITY_REORDER_TO_FRONT);
startActivity(in);
overridePendingTransition(mainapp.getFadeIn(swipe, deltaX), mainapp.getFadeOut(swipe, deltaX));
Expand Down
2 changes: 1 addition & 1 deletion EngineDriver/src/main/java/jmri/enginedriver/turnouts.java
Original file line number Diff line number Diff line change
Expand Up @@ -1448,7 +1448,7 @@ public boolean dispatchKeyEvent(KeyEvent event) {
// common startActivity()
// used for swipes for the main activities only - Throttle, Turnouts, Routs, Web
void startACoreActivity(Activity activity, Intent in, boolean swipe, float deltaX) {
if (activity != null) {
if (activity != null && in != null) {
in.setFlags(Intent.FLAG_ACTIVITY_REORDER_TO_FRONT);
startActivity(in);
overridePendingTransition(mainapp.getFadeIn(swipe, deltaX), mainapp.getFadeOut(swipe, deltaX));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -750,7 +750,7 @@ public boolean dispatchKeyEvent(KeyEvent event) {
// common startActivity()
// used for swipes for the main activities only - Throttle, Turnouts, Routs, Web
void startACoreActivity(Activity activity, Intent in, boolean swipe, float deltaX) {
if (activity != null) {
if (activity != null && in != null) {
in.setFlags(Intent.FLAG_ACTIVITY_REORDER_TO_FRONT);
startActivity(in);
overridePendingTransition(mainapp.getFadeIn(swipe, deltaX), mainapp.getFadeOut(swipe, deltaX));
Expand Down
2 changes: 1 addition & 1 deletion EngineDriver/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -511,7 +511,7 @@
<string name="prefSelectedLocoIndicatorDefaultValue" translatable="false">None</string> <!-- DO NOT TRANSLATE -->

<string name="prefAppIconActionTitle">App Icon Action</string>
<string name="prefAppIconActionSummary">What happens when you click the App Icon aor App Name on the Action Bar.</string>
<string name="prefAppIconActionSummary">What happens when you click the App Icon or App Name on the Action Bar.</string>
<string name="prefAppIconActionDefaultValue" translatable="false">None</string> <!-- DO NOT TRANSLATE -->

<string name="prefDisableVolumeKeysTitle">Disable Volume keys?</string>
Expand Down
2 changes: 2 additions & 0 deletions changelog-and-todo-list.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
* add some padding to Port heading on Connect
* Show menu on Disconnect Screen
* Fix: tolerate FKeys > 28
* New: Preference to alter the Heartbeat Response Factor (percentage of the heartbeat period)
* New: Preference to have the App Icon and App Name act as an emergency stop
**Version 2.32.150
* Fix: soft keyboard stayed up after exit from Loco Select in some conditions
* Fix: roster icon url / location (broken in 148)
Expand Down

0 comments on commit 4fdb999

Please sign in to comment.