Skip to content

Commit

Permalink
Merge pull request #184 from heremaps/ts/2311
Browse files Browse the repository at this point in the history
MSDKUI-2311: Access to storage issue
  • Loading branch information
tstaszak89 authored Aug 18, 2020
2 parents 922411d + 51011a2 commit 77961d0
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ package com.here.msdkuiapp.base

import android.os.Bundle
import android.os.Environment
import android.util.Log
import androidx.appcompat.app.AppCompatActivity
import com.here.android.mpa.common.MapSettings
import com.here.msdkuiapp.common.AppActionBar
Expand All @@ -31,12 +32,18 @@ import java.io.File
*/
@ContainerOptions(CacheImplementation.NO_CACHE)
abstract class BaseActivity : AppCompatActivity() {
private val TAG = BaseActivity::class.java.name

lateinit var appActionBar: AppActionBar

override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
MapSettings.setDiskCacheRootPath(getMapDataPath())
try {
MapSettings.setDiskCacheRootPath(getMapDataPath())
} catch (e: IllegalArgumentException) {
Log.e(TAG, "Failed to set disk cache root path", e)
}

appActionBar = AppActionBar(this).setUpActionBar()
}

Expand Down
4 changes: 2 additions & 2 deletions MSDKUIDemo/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ gson_version=2.8.2
play_service_version=17.0.0
multidex_version=2.0.1
# design lib
appcompat_version=1.1.0
appcompat_version=1.2.0
constraint_layout_version=1.1.3
android_material_version=1.1.0
android_material_version=1.2.0
# ui testing
espresso_version=3.2.0
test_version=1.2.0
Expand Down
4 changes: 2 additions & 2 deletions MSDKUIKit/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ target_sdk_version=23
min_sdk_version=19
# design lib
constraint_layout_version=1.1.3
appcompat_version=1.1.0
android_material_version=1.1.0
appcompat_version=1.2.0
android_material_version=1.2.0
recyclerview_version=1.1.0
# unit tests
junit_version=4.12
Expand Down
4 changes: 2 additions & 2 deletions MSDKUIKit/quality/spotbugs/spotbugs-filter.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
~ limitations under the License.
-->

<SpotBugsFilter>
<FindBugsFilter>
<!-- http://stackoverflow.com/questions/7568579/eclipsefindbugs-exclude-filter-files-doesnt-work -->
<Match>
<Class name="~.*\.R\$.*"/>
Expand All @@ -32,4 +32,4 @@
</Match>


</SpotBugsFilter>
</FindBugsFilter>

0 comments on commit 77961d0

Please sign in to comment.