implements FS#304: Remove 'Check for updates'

This commit is contained in:
steckbrief 2019-07-07 23:25:05 +02:00
parent ba61b4c008
commit d288d6bb16
4 changed files with 0 additions and 18 deletions

View file

@ -1048,10 +1048,6 @@ public class NotificationService {
return mBuilder.build();
}
public void AppUpdateServiceNotification(Notification notification) {
notify(FOREGROUND_NOTIFICATION_ID, notification);
}
private void notify(String tag, int id, Notification notification) {
final NotificationManagerCompat notificationManager = NotificationManagerCompat.from(mXmppConnectionService);
try {

View file

@ -1095,7 +1095,6 @@ public class ConversationFragment extends XmppFragment implements EditMessage.Ke
boolean hasAttachments = mediaPreviewAdapter != null && mediaPreviewAdapter.hasAttachments();
menuInflater.inflate(R.menu.fragment_conversation, menu);
final MenuItem menuInviteContact = menu.findItem(R.id.action_invite);
final MenuItem menuSearchUpdates = menu.findItem(R.id.action_check_updates);
final MenuItem menuArchiveChat = menu.findItem(R.id.action_archive_chat);
final MenuItem menuGroupDetails = menu.findItem(R.id.action_group_details);
final MenuItem menuContactDetails = menu.findItem(R.id.action_contact_details);
@ -1124,11 +1123,9 @@ public class ConversationFragment extends XmppFragment implements EditMessage.Ke
menuContactDetails.setVisible(false);
}
menuMediaBrowser.setVisible(true);
menuSearchUpdates.setVisible(false);
ConversationMenuConfigurator.configureAttachmentMenu(conversation, menu, activity.xmppConnectionService.getAttachmentChoicePreference(), hasAttachments);
ConversationMenuConfigurator.configureEncryptionMenu(conversation, menu);
} else {
menuSearchUpdates.setVisible(true);
menuInviteContact.setVisible(false);
menuGroupDetails.setVisible(false);
menuContactDetails.setVisible(false);

View file

@ -565,13 +565,6 @@ public class ConversationsActivity extends XmppActivity implements OnConversatio
case R.id.action_scan_qr_code:
UriHandlerActivity.scan(this);
return true;
case R.id.action_check_updates:
if (xmppConnectionService.hasInternetConnection()) {
openInstallFromUnknownSourcesDialogIfNeeded(true);
} else {
Toast.makeText(this, R.string.account_status_no_internet, Toast.LENGTH_LONG).show();
}
break;
case R.id.action_invite_user:
inviteUser();
break;

View file

@ -18,10 +18,6 @@
android:orderInCategory="100"
android:title="@string/action_settings"
app:showAsAction="never" />
<item
android:id="@+id/action_check_updates"
android:title="@string/action_check_update"
app:showAsAction="never" />
<item
android:id="@+id/action_invite_user"
android:orderInCategory="100"