Skip to content
This repository has been archived by the owner on Dec 3, 2021. It is now read-only.

Commit

Permalink
Merge branch 'release/v2.4.5'
Browse files Browse the repository at this point in the history
  • Loading branch information
aoudiamoncef committed May 27, 2018
2 parents a021754 + 5b841bf commit 35f05d4
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ android {
minSdkVersion 21
targetSdkVersion 27

versionCode 21
versionName "2.4.4"
versionCode 22
versionName "2.4.5"

testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
javaCompileOptions {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,9 @@ class MainActivity : RootActivity(), NavigationView.OnNavigationItemSelectedList
} else {
val backStackEntryCount = supportFragmentManager.backStackEntryCount
if (backStackEntryCount == 1) {
if (IOIOService.getServiceStatus()){
stopService(Intent(applicationContext, IOIOService::class.java))
}
val intent = Intent(this, SplashScreen::class.java)
startActivity(intent)
finish()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@ import science.apolline.root.RootActivity
import com.github.ivbaranov.rxbluetooth.predicates.BtPredicate
import com.fondesa.kpermissions.extension.permissionsBuilder
import com.fondesa.kpermissions.request.PermissionRequest
import ioio.lib.util.android.IOIOService
import org.jetbrains.anko.*
import science.apolline.service.sensor.IOIOService.Companion.getServiceStatus
import science.apolline.utils.CheckUtility


Expand All @@ -56,6 +58,11 @@ class SplashScreen : RootActivity(), AnkoLogger {

override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
if (getServiceStatus()){
val intent = Intent(this, MainActivity::class.java)
startActivity(intent)
finish()
}
mPrefs = PreferenceManager.getDefaultSharedPreferences(applicationContext)
EXTRA_DEVICE_ADDRESS = mPrefs.getString("device_uuid", "ffffffff-ffff-ffff-ffff-ffffffffffff")
SENSOR_MAC_ADDRESS = mPrefs.getString("sensor_mac_address", "ff-ff-ff-ff-ff-ff")
Expand Down
1 change: 1 addition & 0 deletions fastlane/metadata/android/en-US/changelogs/22.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- Fix some bugs.
1 change: 1 addition & 0 deletions fastlane/metadata/android/fr-FR/changelogs/22.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- Correction de quelques bugs.

0 comments on commit 35f05d4

Please sign in to comment.