Commit Graph

1645 Commits

Author SHA1 Message Date
B. Petersen 36e19c5abb do not hide the title with the number of selected items 2020-10-20 16:23:49 +02:00
B. Petersen 71fefcde39 remove unused resend-option from menu 2020-10-20 15:56:18 +02:00
Hocuri 484f1c80ed "forward" should not go to overflow menu, fix #1656 2020-10-20 10:36:21 +02:00
B. Petersen b8099e8107 reword protection message and make it translatable 2020-10-18 13:13:11 +02:00
bjoern 26cb61c460 Merge pull request #1667 from deltachat/remove-dead-code
remove dead code
2020-10-17 13:30:56 +02:00
B. Petersen 66bb7c372a add an option to access the user-profile from the contact-list 2020-10-17 01:57:41 +02:00
bjoern f51c0771e3 Merge pull request #1665 from deltachat/open-in-external-on-error
If audio failed to play, open it in external app
2020-10-17 01:10:08 +02:00
B. Petersen 8278b337ec remove dead code 2020-10-17 01:04:52 +02:00
Hocuri 2fa048ef9d Use viewtype instead of mimetype for presenting messages
See https://github.com/deltachat/deltachat-core-rust/pull/1973/
2020-10-17 00:46:09 +02:00
bjoern 81658d65d9 Merge pull request #1660 from deltachat/faster-list-load
Faster conversations list load
2020-10-17 00:33:00 +02:00
bjoern 65fba582fa Merge pull request #1659 from deltachat/no-quick-contact
Don't use quickContact in the ConversationListItem
2020-10-17 00:28:17 +02:00
Hocuri ed63538d7e Rename to SetStartingPositionLinearLayoutManager 2020-10-16 18:51:59 +02:00
Hocuri befe953b61 formatting 2020-10-16 18:51:59 +02:00
Hocuri 1634ecf725 Performance tweak 2020-10-16 18:51:59 +02:00
Hocuri 15373f9cc1 move directly to first-unread message fix #1654 2020-10-16 18:51:59 +02:00
Hocuri a3f23d4761 Don't smooth scroll if animations are disabled (@link2xt in testing group) 2020-10-16 18:51:59 +02:00
Hocuri e2ad740d92 If audio failed to play, open it in external app 2020-10-16 18:00:27 +02:00
Hocuri 99d52f0be2 Remove updateDeviceChats (see https://github.com/deltachat/deltachat-core-rust/pull/1957) 2020-10-16 10:22:40 +02:00
B. Petersen 581580a2d5 fixup 2020-10-15 01:06:19 +02:00
B. Petersen f424f49c20 make new stock-strings translatable 2020-10-15 01:04:34 +02:00
Hocuri 4f32411293 Log.i instead of Log.w 2020-10-14 14:08:34 +02:00
Hocuri 287b2d0b83 Don't set a fallback avatar
if it is missing the error avatar will be shown, which is the same, but
so we don't have to call getFallbackAvatarDrawable twice
2020-10-14 14:07:07 +02:00
Hocuri f9771fc546 Also, when one clicked on the contact photo in the contact selection…
…list (the one that appears when the "+" is clicked), nothing happened;
fix that too
2020-10-14 13:43:01 +02:00
Hocuri f60a88b6f7 Don't use quickContact in the ConversationListItem
quickContact means that you get to the contact details screen by
clicking the avatar. In the conversations list this is usually disabled,
just for the search it stayed enabled, which was unexpected
(because it was usually disabled ;-) ).

Even worse, in the search clicking the avatar sometimes got me to the
wrong contact details. No idea why, but I think disabling is better
anyway.
2020-10-14 11:30:34 +02:00
B. Petersen dde0247681 adapt to new protect-api 2020-10-13 22:07:08 +02:00
Hocuri c720df5d5c Add swipe-to-reply quotes 2020-10-11 22:09:51 +03:00
bjoern 852e7cd33a Merge pull request #1652 from deltachat/better-notification-removal
better multi-device notification removal
2020-10-09 12:56:39 +02:00
B. Petersen c89bec6a8b call removeNotifications() from bg thread and tweak comment 2020-10-09 12:55:54 +02:00
bjoern c2d7ffe8d5 Merge pull request #1651 from deltachat/fast-forward
direct forward to "saved messages"
2020-10-09 12:42:48 +02:00
B. Petersen cf1ab5f136 remove notifications when we know, a chat has no unread messages 2020-10-08 18:50:16 +02:00
B. Petersen 618af02bf5 fix "unread" appearance of chatlist
before, the summary was bold when unread!=0
and the badge was shown when last-message-state=fresh|noticed.

this is synced now;
the unread-count-badge is mutual exclusive to checkmarks,
so not meant to be shown for already answered messages.
2020-10-08 18:41:04 +02:00
B. Petersen 6a763ec285 speed up removeNotifications() if there is nothing to remove 2020-10-08 18:17:37 +02:00
B. Petersen 57210a2137 direct forward to "saved messages"
when forwarding to "saved messages",
the ui goes back to the chat and the position in the original chat
and shows a short "saved" hint.

this saves at least one tap,
and makes saving multiple messages easier
as you stay in context.
btw, this is also how telegram handles things
and makes the saving as easy to use as starring eg. in whatsapp.

forwarding messasges to other chats is not changed.
2020-10-08 01:23:27 +02:00
B. Petersen bfa8d09809 remove unsued starred api 2020-10-08 00:04:03 +02:00
Hocuri a647911772 Add "go to last seen" (#1641) 2020-10-07 13:16:23 +02:00
Hocuri c9f8ee6555 Just catch weird security exception (#1640) 2020-10-01 16:27:42 +02:00
bjoern a57ef4539a Merge pull request #1632 from TPS/master
Lossless shrink image sizes
2020-09-27 12:01:40 +02:00
Hocuri 8bc2b602c1 Fix error not shown when configuring 2020-09-26 21:35:47 +02:00
B. Petersen 25ad9973af catch new DC_EVENT_MSGS_NOTICED as needed 2020-09-25 22:41:08 +02:00
ImgBotApp 7304131b96 [ImgBot] Optimize images
*Total -- 4,577.36kb -> 4,299.93kb (6.06%)

/res/drawable-xxhdpi/ic_lock_white_18dp.png -- 1.29kb -> 0.58kb (54.92%)
/res/drawable-xhdpi/ic_attach_white_24dp.png -- 3.12kb -> 1.45kb (53.64%)
/res/drawable-xxhdpi/ic_unlocked_white_24dp.png -- 1.87kb -> 0.93kb (50.21%)
/docs/images/2019-12-material-icon-template.png -- 72.29kb -> 37.38kb (48.29%)
/res/drawable-hdpi/ic_attach_white_24dp.png -- 1.99kb -> 1.04kb (47.57%)
/store/logo.svg -- 7.46kb -> 4.12kb (44.8%)
/store/logo512x512.png -- 56.80kb -> 32.03kb (43.61%)
/res/drawable-xhdpi/qr_overlay.png -- 4.86kb -> 2.85kb (41.33%)
/res/drawable-xxhdpi/ic_attach_grey600_24dp.png -- 3.24kb -> 1.92kb (40.64%)
/res/drawable-mdpi/ic_attach_white_24dp.png -- 1.10kb -> 0.70kb (36.65%)
/res/drawable-xxhdpi/ic_attach_white_24dp.png -- 2.93kb -> 1.86kb (36.44%)
/res/drawable-xhdpi/ic_circle_fill_white_48dp.png -- 2.31kb -> 1.50kb (35.1%)
/res/drawable-hdpi/ic_circle_fill_white_48dp.png -- 1.68kb -> 1.12kb (33.2%)
/res/drawable-xxhdpi/notification_permanent.png -- 2.38kb -> 1.61kb (32.36%)
/res/drawable-xhdpi/ic_backspace_grey600_24dp.png -- 4.18kb -> 2.86kb (31.45%)
/res/drawable-xxxhdpi/ic_pin_white.png -- 1.99kb -> 1.37kb (31.08%)
/res/drawable-xxxhdpi/ic_unpin_white.png -- 3.32kb -> 2.36kb (29%)
/res/drawable-xhdpi/notification_permanent.png -- 1.63kb -> 1.16kb (28.71%)
/res/drawable-hdpi/ic_backspace_grey600_24dp.png -- 2.93kb -> 2.12kb (27.72%)
/res/drawable-xhdpi/ic_attach_grey600_24dp.png -- 5.81kb -> 4.21kb (27.56%)
/res/mipmap-xxhdpi/ic_launcher.png -- 15.26kb -> 11.09kb (27.36%)
/res/mipmap-xxxhdpi/ic_launcher.png -- 21.80kb -> 15.85kb (27.3%)
/res/drawable-xhdpi/attach_record_video.png -- 5.82kb -> 4.29kb (26.35%)
/res/drawable-xxhdpi/ic_unpin_white.png -- 2.10kb -> 1.56kb (25.73%)
/res/drawable/intro1.png -- 26.95kb -> 20.09kb (25.46%)
/res/drawable-hdpi/ic_attach_grey600_24dp.png -- 3.65kb -> 2.75kb (24.68%)
/res/drawable-xxhdpi/ic_pin_white.png -- 1.29kb -> 0.97kb (24.62%)
/res/drawable-xhdpi/ic_location_chatlist.png -- 0.79kb -> 0.60kb (23.67%)
/res/mipmap-xhdpi/ic_launcher.png -- 9.20kb -> 7.07kb (23.17%)
/res/drawable-xxhdpi/ic_tag_faces_white_24dp.png -- 4.81kb -> 3.76kb (21.94%)
/res/drawable-xxxhdpi/ic_help_white_24dp.png -- 1.62kb -> 1.28kb (21.37%)
/res/drawable-xxxhdpi/ic_tag_faces_white_24dp.png -- 6.81kb -> 5.38kb (21.01%)
/res/drawable-xhdpi/ic_tag_faces_white_24dp.png -- 2.63kb -> 2.09kb (20.64%)
/res/drawable-hdpi/notification_permanent.png -- 1.17kb -> 0.93kb (20.53%)
/res/drawable-xxhdpi-v11/icon_notification.png -- 2.11kb -> 1.68kb (20.32%)
/res/drawable-xhdpi/ic_unpin_white.png -- 1.50kb -> 1.20kb (19.96%)
/res/drawable-xxhdpi/ic_send_push.png -- 4.74kb -> 3.79kb (19.94%)
/store/screenshot-08.png -- 80.47kb -> 64.80kb (19.47%)
/res/drawable-xhdpi/ic_mood_grey600_24dp.png -- 1.37kb -> 1.11kb (19.13%)
/res/drawable-xxhdpi/ic_help_white_24dp.png -- 1.17kb -> 0.95kb (18.41%)
/res/drawable-hdpi/ic_send_push.png -- 1.87kb -> 1.53kb (18.35%)
/res/drawable-xxhdpi/ic_delivery_status_sending.png -- 0.54kb -> 0.44kb (18.35%)
/res/drawable-mdpi/ic_circle_fill_white_48dp.png -- 1.03kb -> 0.84kb (18.01%)
/res/drawable-hdpi/ic_mood_grey600_24dp.png -- 0.92kb -> 0.76kb (17.78%)
/src/debug/res/mipmap-xxhdpi/ic_launcher.png -- 12.93kb -> 10.66kb (17.61%)
/res/drawable-xhdpi/ic_pinned_chatlist.png -- 0.69kb -> 0.57kb (17.42%)
/res/drawable-hdpi/ic_tag_faces_white_24dp.png -- 1.79kb -> 1.49kb (17.25%)
/res/drawable-mdpi/ic_backspace_grey600_24dp.png -- 1.84kb -> 1.53kb (16.67%)
/res/drawable-mdpi/ic_flip_32.png -- 1.21kb -> 1.02kb (15.55%)
/res/drawable-xhdpi/ic_keyboard_grey600_24dp.png -- 0.51kb -> 0.44kb (15.18%)
/res/mipmap-hdpi/ic_launcher.png -- 6.28kb -> 5.34kb (14.98%)
/res/drawable-mdpi/ic_attach_grey600_24dp.png -- 1.90kb -> 1.62kb (14.77%)
/res/drawable-hdpi/ic_keyboard_grey600_24dp.png -- 0.43kb -> 0.37kb (14.61%)
/res/drawable-hdpi/ic_help_white_24dp.png -- 0.71kb -> 0.61kb (14.17%)
/res/drawable-hdpi/ic_unpin_white.png -- 1.00kb -> 0.86kb (13.92%)
/res/drawable-xhdpi/ic_help_white_24dp.png -- 0.80kb -> 0.69kb (13.87%)
/res/drawable-xxxhdpi/ic_circle_fill_white_48dp.png -- 2.28kb -> 1.97kb (13.6%)
/res/drawable-xhdpi/ic_pin_white.png -- 0.90kb -> 0.78kb (13.56%)
/res/drawable-hdpi/ic_save_white_24dp.png -- 0.47kb -> 0.41kb (13.28%)
/res/drawable-mdpi/ic_mood_grey600_24dp.png -- 0.65kb -> 0.56kb (12.95%)
/res/drawable-xhdpi/attach_camera.png -- 4.55kb -> 3.97kb (12.63%)
/res/drawable-xhdpi/ic_send_sms_insecure.png -- 2.79kb -> 2.44kb (12.49%)
/res/drawable-xxhdpi/ic_scroll_down.png -- 1.27kb -> 1.11kb (12.04%)
/res/drawable-mdpi/ic_tag_faces_white_24dp.png -- 1.07kb -> 0.95kb (11.82%)
/res/drawable-xxhdpi/ic_circle_fill_white_48dp.png -- 1.64kb -> 1.45kb (11.77%)
/res/drawable-xxxhdpi/ic_pause_circle_fill_white_48dp.png -- 2.33kb -> 2.06kb (11.64%)
/res/drawable-xhdpi/ic_send_push.png -- 2.96kb -> 2.62kb (11.36%)
/res/drawable-hdpi/ic_lock_white_24dp.png -- 0.52kb -> 0.46kb (11.21%)
/res/drawable-xxhdpi/ic_add_white_24dp.png -- 0.38kb -> 0.34kb (11.11%)
/docs/images/2019-01-chatlist.png -- 99.09kb -> 88.32kb (10.87%)
/assets/stickers/weather/lightning.png -- 4.10kb -> 3.67kb (10.54%)
/res/drawable-xhdpi-v11/icon_notification.png -- 1.37kb -> 1.23kb (10.26%)
/res/drawable-xhdpi/ic_add_white_24dp.png -- 0.36kb -> 0.32kb (10.05%)
/res/drawable-xxxhdpi/ic_delivery_status_sending.png -- 0.57kb -> 0.52kb (10.03%)
/res/drawable-mdpi/ic_add_white_24dp.png -- 0.34kb -> 0.31kb (9.97%)
/res/drawable-xxhdpi/ic_pause_circle_fill_white_48dp.png -- 1.69kb -> 1.52kb (9.95%)
/docs/images/2019-12-material-icon-dev-template.png -- 24.62kb -> 22.17kb (9.93%)
/res/drawable-xxxhdpi/ic_photo_camera_light.png -- 1.81kb -> 1.63kb (9.78%)
/res/mipmap-mdpi/ic_launcher.png -- 3.80kb -> 3.43kb (9.64%)
/res/drawable-hdpi/ic_add_white_24dp.png -- 0.34kb -> 0.30kb (9.3%)
/assets/stickers/food/orange.png -- 4.68kb -> 4.26kb (8.98%)
/res/drawable-xxhdpi/ic_reply.png -- 0.76kb -> 0.69kb (8.9%)
/res/drawable-xxhdpi/ic_delete_white_24dp.png -- 1.05kb -> 0.95kb (8.86%)
/res/drawable-mdpi/ic_help_white_24dp.png -- 0.50kb -> 0.45kb (8.86%)
/res/drawable-hdpi/ic_info_outline_white_24dp.png -- 0.70kb -> 0.64kb (8.74%)
/res/drawable-xhdpi/ic_save_white_24dp.png -- 0.55kb -> 0.50kb (8.57%)
/res/drawable-xhdpi/ic_info_outline_white_24dp.png -- 1.06kb -> 0.97kb (8.05%)
/res/drawable-xhdpi/ic_lock_white_24dp.png -- 0.70kb -> 0.64kb (7.95%)
/res/drawable-mdpi/notification_permanent.png -- 0.78kb -> 0.72kb (7.38%)
/res/drawable-xxxhdpi/ic_delivery_status_failed.png -- 0.97kb -> 0.90kb (7.21%)
/res/drawable-xhdpi/ic_unlocked_white_24dp.png -- 0.89kb -> 0.83kb (6.59%)
/res/drawable-xxxhdpi/ic_send_sms_white_24dp.png -- 1.43kb -> 1.34kb (6.55%)
/res/drawable-xhdpi/ic_mood_white_24dp.png -- 1.19kb -> 1.11kb (6.49%)
/assets/stickers/weather/cloud.png -- 3.60kb -> 3.37kb (6.38%)
/res/drawable-xxxhdpi/ic_delete_white_24dp.png -- 1.29kb -> 1.21kb (6.12%)
/store/screenshot-02.png -- 568.28kb -> 534.26kb (5.99%)
/res/drawable-xxhdpi/ic_check_white_24dp.png -- 0.97kb -> 0.91kb (5.96%)
/src/debug/res/mipmap-xhdpi/ic_launcher.png -- 9.10kb -> 8.58kb (5.71%)
/res/drawable-xhdpi/ic_group_white_24dp.png -- 0.63kb -> 0.60kb (5.56%)
/res/drawable-hdpi-v11/icon_notification.png -- 1.03kb -> 0.98kb (5.38%)
/store/screenshot-06.png -- 697.94kb -> 662.22kb (5.12%)
/res/drawable-xhdpi/ic_forward_white_24dp.png -- 0.41kb -> 0.39kb (4.78%)
/src/debug/res/mipmap-hdpi/ic_launcher.png -- 5.86kb -> 5.59kb (4.58%)
/res/drawable-mdpi/ic_save_white_24dp.png -- 0.36kb -> 0.35kb (4.32%)
/res/drawable-hdpi/ic_pin_white.png -- 0.62kb -> 0.59kb (4.27%)
/res/drawable-mdpi/ic_lock_white_24dp.png -- 0.41kb -> 0.40kb (4.03%)
/res/drawable-mdpi/ic_unlocked_white_24dp.png -- 0.52kb -> 0.50kb (3.95%)
/res/drawable-hdpi/ic_unlocked_white_24dp.png -- 0.62kb -> 0.60kb (3.92%)
/res/drawable-hdpi/ic_mood_white_24dp.png -- 0.77kb -> 0.75kb (3.66%)
/res/drawable-xxhdpi/ic_send_sms_white_24dp.png -- 1.59kb -> 1.54kb (3.61%)
/res/drawable-xxhdpi/quick_camera_front.png -- 0.96kb -> 0.93kb (3.15%)
/res/drawable-mdpi/ic_mood_white_24dp.png -- 0.57kb -> 0.56kb (3.07%)
/store/screenshot-03.png -- 603.55kb -> 585.85kb (2.93%)
/store/screenshot-04.png -- 754.41kb -> 733.27kb (2.8%)
/res/drawable-xhdpi/ic_lock_white_18dp.png -- 0.51kb -> 0.50kb (2.49%)
/res/drawable-mdpi/ic_info_outline_white_24dp.png -- 0.52kb -> 0.50kb (2.45%)
/res/drawable-mdpi/ic_keyboard_grey600_24dp.png -- 0.34kb -> 0.33kb (2.32%)
/docs/images/2019-01-chat.png -- 443.01kb -> 433.10kb (2.24%)
/res/drawable-mdpi/ic_unpin_white.png -- 0.70kb -> 0.68kb (2.11%)
/res/drawable-hdpi/ic_group_white_24dp.png -- 0.46kb -> 0.46kb (1.89%)
/res/drawable-land/background_hd.jpg -- 89.57kb -> 88.06kb (1.68%)
/store/screenshot-07.png -- 167.68kb -> 165.24kb (1.46%)
/res/drawable-xhdpi/slidearrow.png -- 0.37kb -> 0.37kb (1.06%)
/assets/help/delta-what-optim.png -- 16.14kb -> 16.00kb (0.88%)
/store/screenshot-05.png -- 284.20kb -> 281.82kb (0.83%)
/store/screenshot-01.png -- 261.73kb -> 259.58kb (0.82%)
/res/drawable-land/background_hd_dark.jpg -- 69.63kb -> 69.19kb (0.63%)
/res/drawable-xxxhdpi/ic_check_white_24dp.png -- 0.92kb -> 0.92kb (0.21%)

Signed-off-by: ImgBotApp <ImgBotHelp@gmail.com>
2020-09-25 01:36:30 +00:00
B. Petersen 33fccc6d52 avoid unnecessary chat updates by filtering event-chat-id correctly 2020-09-20 16:28:54 +02:00
B. Petersen 41603e6688 pass DcEvent object to handlers to avoid error-prone casts 2020-09-20 15:50:40 +02:00
bjoern 2855240536 Merge pull request #1626 from deltachat/remove-outdated-reminder
remove outdated reminder
2020-09-19 13:42:25 +02:00
B. Petersen e076ca45ba tune down usage of screen-lock
for various reasons,
screen-lock will be removed completely in one of the next versions.

- if screen-lock was enabled before, add a warning
  and keep the options (user can switch screen-lock on and off
  until it will be finally removed)

- if screen lock was disabled before,
  hide the corresponding options,
  (the user will not be able to enable screen-lock anymore)

reasons for removing are:

- hard maintainability on different android versions, see discussions at
  https://github.com/deltachat/deltachat-android/issues/1208 and
  https://github.com/deltachat/deltachat-android/pull/1279 and
  https://github.com/deltachat/deltachat-android/pull/1319 and offline.
  ftr, also the used api createConfirmDeviceCredentialIntent() is deprectated,
  so another set of api calls would be needed in the soon future.

- compared to the effort, few security is added,
  the function is only available if the system is protected anyway,
  one just have to repeat the system secret.

- might even worsen overall security - if app login secret is peeked,
  and attacker will also have the system secret.

- the functions stands in the way of moving forward to a
  cross-platform solution (however, not sure if this will really come)
2020-09-17 16:26:19 +02:00
B. Petersen 097891e72a remove outdated reminder
the warning about outdated apps
was pretty unreliable in the past -
because of too short timings
and also because of the "installation date"
and the fact that an "installer" was used, is not always reliable.

also, the "installer date" could be wrong -
if the installation was done when the clock was altered badly.

as we cannot rely on the things the system provides here,
we move the whole thing to the core at
https://github.com/deltachat/deltachat-core-rust/pull/1901
which has also the advantage that this is done for all uis then.
2020-09-16 16:06:43 +02:00
B. Petersen b51cbfce1d adapt to new dc_configure() error handling
errors that should be shown to the user
come from DC_EVENT_CONFIGURE_PROGRESS(data1=0) as data2 now;
there is no need to show the captured error any longer
(which was unreliable and hard to handle from core site).

there is some capturing-code left as needed for other parts,
but it is not used for configuration anymore.
2020-09-12 22:33:16 +02:00
bjoern 137edaab1d Merge pull request #1622 from deltachat/update-chatlist-times
add chatlist time to update relative times
2020-09-12 16:10:04 +02:00
bjoern 46e4eff2b9 Merge pull request #1620 from deltachat/hide-keyboard
hide keyboard when leaving edit-name
2020-09-12 16:09:43 +02:00
bjoern 152ea7c06b Merge pull request #1621 from deltachat/add-log-warning
prefix log by a hint about sensitive information
2020-09-12 16:09:24 +02:00
B. Petersen a1d5f72666 add a timer that redraws the chatlist every minute so that the relative times do update 2020-09-11 22:03:12 +02:00