Fixes issue #238 - Automatic refresh of the home timeline

This commit is contained in:
stom79 2018-01-08 18:11:36 +01:00
parent 611de762a1
commit 6ffae43600
1 changed files with 2 additions and 2 deletions

View File

@ -101,10 +101,10 @@ public class LiveNotificationService extends Service {
}
SharedPreferences sharedpreferences = getSharedPreferences(Helper.APP_PREFS, Context.MODE_PRIVATE);
boolean liveNotifications = sharedpreferences.getBoolean(Helper.SET_LIVE_NOTIFICATIONS, true);
boolean notify = sharedpreferences.getBoolean(Helper.SET_NOTIFY, true);
String userId;
SQLiteDatabase db = Sqlite.getInstance(getApplicationContext(), Sqlite.DB_NAME, null, Sqlite.DB_VERSION).open();
if( liveNotifications && notify){
if( liveNotifications ){
if( intent == null || intent.getStringExtra("userId") == null) {