needRestart condition logic has been moved from SharedPreferences to static variable.
Start implementation of app widget.