kopia lustrzana https://github.com/ge0rg/aprsdroid
Move screen-on and volume settings to top-level activities, fix #260
rodzic
ae0e3ab53b
commit
afbb002841
|
@ -59,6 +59,8 @@ class GoogleMapAct extends Activity with MapLoaderBase
|
|||
|
||||
override def onResume(): Unit = {
|
||||
super.onResume()
|
||||
setKeepScreenOn()
|
||||
setVolumeControls()
|
||||
mapview.onResume()
|
||||
}
|
||||
|
||||
|
|
|
@ -20,4 +20,10 @@ class LoadingListActivity extends ListActivity
|
|||
override def onStopLoading() {
|
||||
setProgressBarIndeterminateVisibility(false)
|
||||
}
|
||||
|
||||
override def onResume() {
|
||||
super.onResume()
|
||||
setKeepScreenOn()
|
||||
setVolumeControls()
|
||||
}
|
||||
}
|
||||
|
|
|
@ -38,8 +38,6 @@ class MainListActivity(actname : String, menuid : Int) extends LoadingListActivi
|
|||
setTitleStatus()
|
||||
setupButtons(AprsService.running)
|
||||
makeLaunchActivity(actname)
|
||||
setKeepScreenOn()
|
||||
setVolumeControls()
|
||||
|
||||
registerReceiver(miclReceiver, new IntentFilter(AprsService.MICLEVEL))
|
||||
registerReceiver(linkOnOffReceiver, new IntentFilter(AprsService.SERVICE_STOPPED))
|
||||
|
|
Ładowanie…
Reference in New Issue