Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
mattvchandler committed Mar 28, 2019
1 parent 46a53ee commit 3b68db9
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ apply plugin: 'kotlin-android'

ext.ver_major = 1
ext.ver_minor = 0
ext.ver_patch = 2
ext.ver_patch = 3
ext.min_sdk = 19

private Integer gen_version_code()
Expand Down Expand Up @@ -61,7 +61,7 @@ dependencies {
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
implementation 'androidx.appcompat:appcompat:1.1.0-alpha03'
implementation 'androidx.preference:preference:1.1.0-alpha04'
implementation 'com.google.android.material:material:1.1.0-alpha04'
implementation 'com.google.android.material:material:1.1.0-alpha05'
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
}
repositories {
Expand Down
4 changes: 4 additions & 0 deletions app/src/main/cpp/engine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -426,6 +426,10 @@ void Engine::stop() noexcept
{
LOG_ERROR_PRINT("Engine::stop", "could not serialize data: %s", e.what());
}
catch(...)
{
LOG_ERROR_WRITE("Engine::stop", "unknown exception when opening savefile");
}
}
void Engine::set_focus(bool focus) noexcept
{
Expand Down
4 changes: 2 additions & 2 deletions app/src/main/java/MainActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ class MainActivity: Themed_activity(), SurfaceHolder.Callback

R.id.help ->
{
val toast_delay = 4000L; // ms
val toast_delay = 4000L // ms
Toast.makeText(this, resources.getString(R.string.help_general), Toast.LENGTH_LONG).show()
// TODO: using a delayed handler as a workaround for bug in android: https://issuetracker.google.com/issues/79159357
// remove when bug is resolved
Expand All @@ -395,7 +395,7 @@ class MainActivity: Themed_activity(), SurfaceHolder.Callback
Toast.makeText(this, resources.getString(R.string.help_accel), Toast.LENGTH_LONG).show()
else
Toast.makeText(this, resources.getString(R.string.help_touch), Toast.LENGTH_LONG).show()
}, toast_delay);
}, toast_delay)
true
}

Expand Down

0 comments on commit 3b68db9

Please sign in to comment.