Comments (7)
^^ @icke68746 and @g6094199 did not really referenced this issue, it was only tha #10
appeared in a log :)
apart from that: the swiping through images from the gallery works, maybe this is a hint to start with.
EDIT: i mean the gallery-preview that is shown in Delta Chat when clicking on the paperclip in the chatview. if you tap in the little image (not on the circle to check) you get the same gallery as for in-chat-images - but swiping works here.
from deltachat-android.
Code that handles the display of the Photo (Gallery and Chat-Direct) is PhotoViewer (:2729 -> openPhoto).
In Gallery the photos list is populated with MediaController$PhotoEntry whereas in chat-direct this list is empty.
from deltachat-android.
Going up the callgraph:
ChacMessageCell:632
ChatMessageCell:544
ChatMessageCell:830
ChatActivity:2802 <- This is most likely the position where we have access to enough context to build up the list of the pictures in the message history of this chat. (Compare function in ChatActivity:2559)
from deltachat-android.
State when calling the openPhoto (PhotoViewer:2729) from the Gallery:
messageObject: null and must be so (:2205 and :2273)
fileLocation: null and must be so (:2215)
messages: null and must be so (:2222)
photos: A list of MediaController$PhotoEntry and must be so (:2234)
index: The position of the photo to be displayed in the list "photos"
provider: ChatAttachAlert
chatActivity: Chatactivity
dialogId: 0 and seems required (:2264) check if dialogId == currentDialogId
windowView.attachedToWindow is false to begin with
actionBar title contains the current index and the count.
velocityTracker is null and thus gets obtained.
isInvisible was false, gets set to true
object is a PhotoViewer$PlaceProviderObject
recheck: Line 2778 -> does this if get executed even though messageObject was null?
-> into onPhotoShow:2140
messageObject: null, fileLocation: null, messages: null, photos: unmodified, index, unmodified, object: unmodified
mergeDialogId: 0
object.thumb: Bitmap of thumbnail of image to be shown.
photoCropView: null
photoFilterView: null
radialProgressView[0,1,2]: PhotoViewer$RadialProgressView instances
sendPhotoType == 0 -> activates checkImageView.visibility
-> into updateSelectedCount (:2133)
<-
currentAnimation: null
current
from deltachat-android.
State when calling the openPhoto (PhotoViewer:2729) from Chat View of a single image:
messageObject: not null, but should be (:2778, :2205 and :2273)
fileLocation: null and must be so (:2215)
messages: null and must be so (:2222)
photos: A list of MediaController$PhotoEntry and must be so (:2234)
index: 0, but should be the index in the list of photos
provider: ChatActivity, in Gallery its ChatAttachAlert, maybe needs investigation
chatActivity: null, but should maybe need to be a ChatActivity (maybe the one in provider?)
dialogId: 10, but maybe needs to be 0 for (:2264) check if dialogId == currentDialogId
windowView.attachedToWindow is false to begin with
actionBar title contains the current index and the count.
velocityTracker is null and thus gets obtained.
isInvisible was false, gets set to true
object is a PhotoViewer$PlaceProviderObject
NOTE, line 2779: currentAnimation gets set to null because messageObject != null
-> into onPhotoShow:2140
messageObject: null, fileLocation: null, messages: null, photos: unmodified, index, unmodified, object: unmodified
mergeDialogId: 0
object.thumb: Bitmap of thumbnail of image to be shown.
photoCropView: null
photoFilterView: null
radialProgressView[0,1,2]: PhotoViewer$RadialProgressView instances
In Line 2205, if the messageObject is not null and the messages are null, the wrong branch gets selected. messageObject needs to be null here.
from deltachat-android.
Needing to figure out why all the images (except the first one) only display thumbs.
check in 2657 -> setShuldGenerateQualityThumb is set to true
compare in 2679 -> setNeedsQualityThumb is set to false
in 2689 the image seems to be created.
(original name of attachment was "Ac_Necklace02.png" )
fileLocation is: "/data/data/com.b44t.messenger.beta/files/messenger.db-blobs/Ac_Necklace02.png"
thumbLocation is: "/data/data/com.b44t.messenger.beta/files/messenger.db-blobs/Ac_Necklace02.png"
-> so file and thumb are the same (which is fine as the photo IS small, but the thumb is blurred (thumbFilter: b) which is not fine)
Attempting to just disable the blurring
from deltachat-android.
blurring only affects images that are small enough to be never thumbed
from deltachat-android.
Related Issues (20)
- Support directly "sharing" a log to some chat HOT 2
- "three dots" in reaction selector might wrap in small screens HOT 2
- Invalid resource ID 0x00000000 HOT 2
- name/avatar settings do not survive leaving/re-entering InstantOnboardingActivity HOT 2
- too many menu options in group's invite code
- scanning QR code from new "New Contact" is not working HOT 1
- use set name+avatar also when go for "Classic E-Mail Login" HOT 1
- Switch to `dc_msg_save_file()` for exporting attachments
- Dont alter names of attached pictures! HOT 1
- Crash when you activate "Share location with all group members" HOT 3
- Strange behavior when pasting text onto emoji HOT 1
- add peer to peer channels HOT 3
- remove DEBUG entries from log HOT 2
- on second chatmail account, question about "disable battery optimisations" appears HOT 2
- Emoji avatar is not displayed in the settings HOT 1
- "back" button behaviour after creating/adding profiles HOT 5
- make “Notifications on/off” a per-profile setting HOT 3
- add "Mark All As Read"
- Battery drain due to "sync_seen_flags" HOT 1
- Make it possible to opt out of obtaining FCM token before creating a profile HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from deltachat-android.