Move app settings to a different fragment

This commit is contained in:
Tommaso Berlose
2020-05-08 01:39:31 +02:00
parent 6a4cfdf22b
commit cb6c2c7764
53 changed files with 1052 additions and 747 deletions

View File

@ -14,6 +14,7 @@ import com.tommasoberlose.anotherwidget.R
import com.tommasoberlose.anotherwidget.global.Preferences
import com.tommasoberlose.anotherwidget.network.WeatherNetworkApi
import com.tommasoberlose.anotherwidget.ui.activities.MainActivity
import com.tommasoberlose.anotherwidget.ui.fragments.AppMainFragment
import com.tommasoberlose.anotherwidget.ui.widgets.MainWidget
import com.tommasoberlose.anotherwidget.utils.checkGrantedPermission
import org.greenrobot.eventbus.EventBus
@ -38,7 +39,7 @@ object WeatherHelper {
Preferences.customLocationLon = location.longitude.toString()
networkApi.updateWeather()
EventBus.getDefault().post(MainActivity.UpdateUiMessageEvent())
EventBus.getDefault().post(AppMainFragment.UpdateUiMessageEvent())
}
}
}