File tree Expand file tree Collapse file tree 5 files changed +17
-3
lines changed
portable/comp-android/diacomp/src/main
java/org/bosik/diacomp/android/frontend/activities Expand file tree Collapse file tree 5 files changed +17
-3
lines changed Original file line number Diff line number Diff line change @@ -286,6 +286,12 @@ public boolean onOptionsItemSelected(MenuItem item)
286
286
startActivityForResult (intent , CODE_LOGIN );
287
287
return true ;
288
288
}
289
+ case R .id .item_diary_refresh :
290
+ {
291
+ final Account account = AccountUtils .getAccount (this );
292
+ ContentResolver .requestSync (account , DiaryContentProvider .AUTHORITY , Bundle .EMPTY );
293
+ return true ;
294
+ }
289
295
case R .id .item_diary_preferences :
290
296
{
291
297
startActivity (new Intent (getBaseContext (), ActivityPreferences .class ));
Original file line number Diff line number Diff line change 22
22
android : icon =" @drawable/ic_action_new_account"
23
23
android : showAsAction =" always"
24
24
android : title =" @string/main_option_login" />
25
+ <item
26
+ android : id =" @+id/item_diary_refresh"
27
+ android : title =" @string/main_option_refresh" />
25
28
<item
26
29
android : id =" @+id/item_diary_preferences"
27
30
android : icon =" @drawable/menu_settings"
Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" encoding =" UTF-8" ?>
2
- <menu xmlns : android =" http://schemas.android.com/apk/res/android" >
2
+ <menu xmlns : android =" http://schemas.android.com/apk/res/android" >
3
3
4
4
<item
5
5
android : id =" @+id/item_common_login"
6
6
android : icon =" @drawable/ic_action_new_account"
7
7
android : showAsAction =" always"
8
- android : title =" @string/main_option_login" />
8
+ android : title =" @string/main_option_login" />
9
+ <item
10
+ android : id =" @+id/item_diary_refresh"
11
+ android : title =" @string/main_option_refresh" />
9
12
<item
10
13
android : id =" @+id/item_diary_preferences"
11
14
android : icon =" @drawable/menu_settings"
12
- android : title =" @string/main_option_preferences" />
15
+ android : title =" @string/main_option_preferences" />
13
16
14
17
</menu >
Original file line number Diff line number Diff line change 133
133
<string name =" main_option_diary" >Дневник</string >
134
134
<string name =" main_option_login" >Вход</string >
135
135
<string name =" main_option_preferences" >Настройки</string >
136
+ <string name =" main_option_refresh" >Обновить</string >
136
137
<string name =" main_title" >Компенсация</string >
137
138
<string name =" notification_download_channel_description" >Уведомление о статусе загрузки</string >
138
139
<string name =" notification_download_channel_name" >Загрузки</string >
Original file line number Diff line number Diff line change 135
135
<string name =" main_option_diary" >Diary</string >
136
136
<string name =" main_option_login" >Login</string >
137
137
<string name =" main_option_preferences" >Preferences</string >
138
+ <string name =" main_option_refresh" >Refresh</string >
138
139
<string name =" main_title" >Diacomp</string >
139
140
<string name =" notification_download_channel_description" >Notifies when download is in progress</string >
140
141
<string name =" notification_download_channel_name" >Downloads</string >
You can’t perform that action at this time.
0 commit comments