mirror of
https://github.com/etesync/android
synced 2025-01-11 08:10:58 +00:00
Remove menu option to refresh calendars.
This commit is contained in:
parent
30631a0b89
commit
7e912fecec
@ -173,27 +173,11 @@ public class AccountActivity extends AppCompatActivity implements Toolbar.OnMenu
|
||||
public boolean onMenuItemClick(MenuItem item) {
|
||||
Intent intent;
|
||||
switch (item.getItemId()) {
|
||||
case R.id.refresh_address_books:
|
||||
if (accountInfo != null && accountInfo.carddav != null) {
|
||||
intent = new Intent(this, DavService.class);
|
||||
intent.setAction(DavService.ACTION_REFRESH_COLLECTIONS);
|
||||
intent.putExtra(DavService.EXTRA_DAV_SERVICE_ID, accountInfo.carddav.id);
|
||||
startService(intent);
|
||||
}
|
||||
break;
|
||||
case R.id.create_address_book:
|
||||
intent = new Intent(this, CreateAddressBookActivity.class);
|
||||
intent.putExtra(CreateAddressBookActivity.EXTRA_ACCOUNT, account);
|
||||
startActivity(intent);
|
||||
break;
|
||||
case R.id.refresh_calendars:
|
||||
if (accountInfo != null && accountInfo.caldav != null) {
|
||||
intent = new Intent(this, DavService.class);
|
||||
intent.setAction(DavService.ACTION_REFRESH_COLLECTIONS);
|
||||
intent.putExtra(DavService.EXTRA_DAV_SERVICE_ID, accountInfo.caldav.id);
|
||||
startService(intent);
|
||||
}
|
||||
break;
|
||||
case R.id.create_calendar:
|
||||
intent = new Intent(this, CreateCalendarActivity.class);
|
||||
intent.putExtra(CreateCalendarActivity.EXTRA_ACCOUNT, account);
|
||||
|
@ -9,9 +9,6 @@
|
||||
|
||||
<menu xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
|
||||
<item android:id="@+id/refresh_calendars"
|
||||
android:title="@string/account_refresh_calendar_list"/>
|
||||
|
||||
<item android:id="@+id/create_calendar"
|
||||
android:title="@string/account_create_new_calendar"/>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user