mirror of
https://github.com/chararomandroid/android_device_samsung_a20
synced 2026-08-21 19:55:33 -04:00
universal7885: parts: try fixing nullptr
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
This commit is contained in:
parent
4897ff7354
commit
ee9fca37fd
5 changed files with 5 additions and 10 deletions
|
|
@ -24,7 +24,6 @@ import com.android.internal.R.id.home
|
|||
class DeviceSettingsActivity : FragmentActivity() {
|
||||
override fun onCreate(savedInstanceState: Bundle?) {
|
||||
super.onCreate(savedInstanceState)
|
||||
actionBar.setDisplayHomeAsUpEnabled(true)
|
||||
val fragment = this.supportFragmentManager.findFragmentById(content)
|
||||
val mDeviceSettingsFragment: DeviceSettings
|
||||
if (fragment == null) {
|
||||
|
|
@ -42,4 +41,4 @@ class DeviceSettingsActivity : FragmentActivity() {
|
|||
}
|
||||
return super.onOptionsItemSelected(item)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -24,7 +24,6 @@ import com.android.internal.R.id.home
|
|||
class BatteryActivity : FragmentActivity() {
|
||||
override fun onCreate(savedInstanceState: Bundle?) {
|
||||
super.onCreate(savedInstanceState)
|
||||
actionBar.setDisplayHomeAsUpEnabled(true)
|
||||
val fragment = this.supportFragmentManager.findFragmentById(content)
|
||||
val batteryFragment: BatteryFragment
|
||||
if (fragment == null) {
|
||||
|
|
@ -42,4 +41,4 @@ class BatteryActivity : FragmentActivity() {
|
|||
}
|
||||
return super.onOptionsItemSelected(item)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -24,7 +24,6 @@ import com.android.internal.R.id.home
|
|||
class DolbyActivity : FragmentActivity() {
|
||||
override fun onCreate(savedInstanceState: Bundle?) {
|
||||
super.onCreate(savedInstanceState)
|
||||
actionBar.setDisplayHomeAsUpEnabled(true)
|
||||
val fragment = this.supportFragmentManager.findFragmentById(content)
|
||||
val dolbyFragment: DolbyFragment
|
||||
if (fragment == null) {
|
||||
|
|
@ -42,4 +41,4 @@ class DolbyActivity : FragmentActivity() {
|
|||
}
|
||||
return super.onOptionsItemSelected(item)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -24,7 +24,6 @@ import com.android.internal.R.id.home
|
|||
class FlashLightActivity : FragmentActivity() {
|
||||
override fun onCreate(savedInstanceState: Bundle?) {
|
||||
super.onCreate(savedInstanceState)
|
||||
actionBar.setDisplayHomeAsUpEnabled(true)
|
||||
val fragment = this.supportFragmentManager.findFragmentById(content)
|
||||
val flashLightFragment: FlashLightFragment
|
||||
if (fragment == null) {
|
||||
|
|
@ -42,4 +41,4 @@ class FlashLightActivity : FragmentActivity() {
|
|||
}
|
||||
return super.onOptionsItemSelected(item)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -24,7 +24,6 @@ import androidx.fragment.app.FragmentActivity
|
|||
class ClearSpeakerActivity : FragmentActivity() {
|
||||
override fun onCreate(savedInstanceState: Bundle?) {
|
||||
super.onCreate(savedInstanceState)
|
||||
actionBar.setDisplayHomeAsUpEnabled(true)
|
||||
val fragment = this.supportFragmentManager.findFragmentById(content)
|
||||
val clearSpeakerFragment: ClearSpeakerFragment
|
||||
if (fragment == null) {
|
||||
|
|
@ -42,4 +41,4 @@ class ClearSpeakerActivity : FragmentActivity() {
|
|||
}
|
||||
return super.onOptionsItemSelected(item)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue