Skip to content

Commit

Permalink
初回起動時に強制終了していた問題を解消
Browse files Browse the repository at this point in the history
  • Loading branch information
daigorian committed Jun 23, 2021
1 parent be2a752 commit a05b1af
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ android {
applicationId "com.daigorian.epcltvapp"
minSdkVersion 22
targetSdkVersion 30
versionCode 12
versionName "1.12"
versionCode 13
versionName "1.13"

}

Expand Down
7 changes: 4 additions & 3 deletions app/src/main/java/com/daigorian/epcltvapp/MainFragment.kt
Original file line number Diff line number Diff line change
Expand Up @@ -88,11 +88,12 @@ class MainFragment : BrowseSupportFragment() {

//設定値を取得
val ipAddress = PreferenceManager.getDefaultSharedPreferences(context)
.getString(getString(R.string.pref_key_ip_addr), "")!!
.getString(getString(R.string.pref_key_ip_addr), getString(R.string.pref_val_ip_addr_default))!!
val port = PreferenceManager.getDefaultSharedPreferences(context)
.getString(getString(R.string.pref_key_port_num), "")!!
.getString(getString(R.string.pref_key_port_num), getString(R.string.pref_val_port_num_default))!!
val defaultLimit = PreferenceManager.getDefaultSharedPreferences(context)
.getString(getString(R.string.pref_key_fetch_limit), "")!!
.getString(getString(R.string.pref_key_fetch_limit), getString(R.string.pref_val_fetch_limit_default
))!!


//バージョンチェックして適切なバージョンのAPIを初期化
Expand Down

0 comments on commit a05b1af

Please sign in to comment.