This repository was archived by the owner on Nov 28, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed
app/src/main/java/org/freshrss/easyrss Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -251,22 +251,23 @@ public void onLogoutRequired() {
251
251
public void onClick (final DialogInterface dialog , final int which ) {
252
252
ProgressDialog .show (new ContextThemeWrapper (Home .this , android .R .style .Theme_DeviceDefault_Dialog ),
253
253
Home .this .getString (R .string .TxtWorking ), Home .this .getString (R .string .TxtClearingCache ));
254
- final Handler handler = new Handler () {
254
+ /* final Handler handler = new Handler() {
255
255
@Override
256
256
public void handleMessage(final Message msg) {
257
257
final Intent intent = new Intent(Home.this, Home.class);
258
258
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
259
259
Home.this.startActivity(intent);
260
260
finish();
261
261
}
262
- };
262
+ };*/
263
263
final Thread thread = new Thread () {
264
264
@ Override
265
265
public void run () {
266
266
DataMgr .getInstance ().clearAll ();
267
267
ReaderAccountMgr .getInstance ().clearLogin ();
268
268
DataUtils .deleteFile (new File (DataUtils .getAppFolderPath ()));
269
- handler .sendEmptyMessage (0 );
269
+ //handler.sendEmptyMessage(0);
270
+ System .exit (0 );
270
271
}
271
272
};
272
273
thread .setPriority (Thread .MIN_PRIORITY );
Original file line number Diff line number Diff line change @@ -139,7 +139,7 @@ protected void startSyncing() throws DataSyncerException {
139
139
NetworkMgr .getInstance ().startSyncItemContent ();
140
140
141
141
final SettingNotificationOn sNotification = new SettingNotificationOn (dataMgr );
142
- if (sNotification .getData ()) {
142
+ if (sNotification .getData () != null ) {
143
143
final String sSetting = dataMgr .getSettingByName (Setting .SETTING_GLOBAL_ITEM_UNREAD_COUNT );
144
144
final int unreadCount = (sSetting == null ) ? 0 : Integer .valueOf (sSetting );
145
145
if (unreadCount > 0 ) {
You can’t perform that action at this time.
0 commit comments