/srv/irclogs.ubuntu.com/2013/11/05/#ubuntu-app-devel.txt

nerochiarozsombi: tmoenicke: do you know if there's a way to know when the OSK has completely finished the animation that it does when it slides in ? I noticed that the Qt.inputMethod.visible property changes to true immediately, but the keyboard takes a bit longer to slide in (and if MainView.anchorToKeyboard = true the height of the MainView gets animated)09:52
nerochiarozsombi: tmoenicke: i need to do something when i am sure the keyboard has completely appeared09:52
tmoenickenerochiaro: at the time visible is true, the osk has already allocated the window and space09:57
tmoenickenerochiaro: it doesnt report anything else09:59
nerochiarotmoenicke: i just checked and i think you're mistaken. if i print the height when Qt.inputMethod.onVisibleChanged reports that visible = true I get one height, if I wait a few milliseconds and print the height again i get another height. I'm printing it on a listview that's occupying the entire mainView, but let me try to do the same with the MainView itself, just to be sure10:01
nerochiarotmoenicke: hmm,interesting. the MainView does indeed behave like you said. so there's a delay somewhere else. thanks10:03
nerochiarotmoenicke: zsombi : it's the Page object that takes some time to resize to match the keyboard10:06
=== chriadam is now known as chriadam|away
=== t1mp_ is now known as t1mp
nerochiarot1mp_: zsombi: do you guys know how can I know when a Page has fully adjusted to the height of the OSK when MainView.anchorToKeyboard: true ? It seems to take some time to animate to the right size and I need to know when it has finished10:08
t1mpnerochiaro: I don't know10:10
nerochiarot1mp: do you know who worked on that and might know ?10:11
t1mpnerochiaro: from bzr log I'd say renato10:12
nerochiarooSoMoN: i just pushed an update to the MR and added some comments10:38
nerochiarooSoMoN: well, adding them now10:38
nerochiarooSoMoN: ok, done10:40
oSoMoNnerochiaro, looking10:47
nik90nic-doffay: It seems that the tests pass in your https://code.launchpad.net/~nicolas-doffay/ubuntu-ui-toolkit/selector-code-refactor/+merge/191953 branch. Is this ready for merge to trunk10:50
nic-doffaynik90, yeah just waiting on timp to review it again sometime.11:00
nik90nic-doffay: okay11:01
t1mpnic-doffay: I added a few comments https://code.launchpad.net/~nicolas-doffay/ubuntu-ui-toolkit/selector-code-refactor/+merge/19195311:16
=== _salem is now known as salem_
JamesTaitGood morning all; happy Guy Fawkes Day! :-D11:29
popeyJamesTait: I'm trying to approve an app into the store and I'm getting "Application status could not be updated. Please try again later."11:38
popeyAlso, good morning.11:38
JamesTaitpopey, good morning! Let me see what I can find out for you.11:39
JamesTaitpopey, this is in production, yes?11:40
oSoMoNnerochiaro, more comments on your MR (and fixes needed)11:40
popeyJamesTait: i only use production11:41
JamesTaitpopey, http://blogs.msdn.com/cfs-filesystemfile.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-32-02-metablogapi/8054.image_5F00_thumb_5F00_35C6E986.png ?11:42
popey\o/11:43
nerochiarooSoMoN: the solution you propose to replace the hack will probably not work. it's not the keyboard which has a delay in getting the right size,it's the MainView's contents11:43
oSoMoNnerochiaro, right11:44
nerochiarooSoMoN: i think there's actually a bug in the MainView, i need to talk to renato. That animation should not be there as it's happening when they keyboard is already up anyway, if what tmoenicke says about Qt.inputMethod.visible being emitted only when the keyboard is already up11:44
oSoMoNnerochiaro, I don’t like this hack though, there’s gotta be a cleaner way11:45
oSoMoNnerochiaro, ok, so let’s file a bug and fix it as a first step11:45
nerochiarooSoMoN: let me talk to renato first11:45
nerochiarooSoMoN: that hack is just an interim fix so that at least we get the thing working. before something gets fixed in the SDK and when it gets into the images ages can pass11:46
oSoMoNnerochiaro, right, but if it’s not a critical bug then we can probably afford to fix it in the SDK first11:47
nerochiarooSoMoN: it's High, seems already pretty important to me, but i'm ok either way11:48
oSoMoNnerochiaro, let’s file the bug against the SDK and talk to Renato first, and then we can decide which route to take11:49
oSoMoNnerochiaro, and regarding the thing not working in landscape, it may also be a bug in the MainView itself, that’s something to check11:50
nerochiarooSoMoN: i was about to say that I'm gonna investigate that one, and make a report with a test case if it's indeed a bug11:51
=== MacSlow is now known as MacSlow|lunch
nerochiarorenato_: ping12:29
renato_nerochiaro, hi12:31
nerochiarorenato_:  hi, i wanted to ask you something about MainView and anchorToKeyboard12:31
nerochiarorenato_: I see that you have added a NumberAnimation to animate the movement of the MainView content12:32
nerochiarorenato_: but it seems that it's finishing a bit after the keyboard is fully shown12:32
nerochiarorenato_: is that animation necessary ?12:33
=== greyback is now known as greyback|lunch
renato_nerochiaro, this is the best way that I and Kaleo found to make a  smooth transition12:42
renato_nerochiaro, right now there is no way to follow the keyborad animation, and I do not know if they intend to change that12:43
nerochiarooSoMoN: ^12:43
renato_but for sure the best solution is follow the keyboard12:43
nerochiarorenato_: that's not enough. when they keyboard has finished its animation the content is still changing12:45
nerochiarorenato_: the MainView content doens't have the final height when Qt.inputMethod.visible is true12:46
nerochiarorenato_: oSoMoN: lunch, let's talk about this in a bit12:58
=== nerochiaro is now known as nerochiaro_lunch
=== MacSlow|lunch is now known as MacSlow
nik90popey, mhall119: Hi, I was just thinking about exposing bite size bugs for the entire core apps project. Currently there is no easy way to showcase these bugs to new contributors. Sure you can tag bugs as "bitesize" etc..but not everyone will take the effort to go through launchpad bug filters to find them.13:27
nik90popey, mhall119: That said, why cant we use http://harvest.ubuntu.com/opportunities/ ?13:27
nik90May be add a new filter touch-coreapps which would list all bitesize bugs or i18n bugs in the core apps projects?13:27
popeySounds like a great idea13:31
popeycould add a bitezise-touch tag just as easily.13:32
popeyand link to it13:32
popeyadd a bit.ly link all over the place to make it easier to find13:32
=== greyback|lunch is now known as greyback
mhall119nik90: +1 on using both bitesize tag and harvest, though I don't know how much maintenance harvest has gotten lately13:51
nik90popey: I tried bit.ly and it is good but it returns links like http://bit.ly/1cLYGG3 which is not intutive..whereas with harvest I could just type go to harvest.ubuntu.com which is much easier to read and remember.13:56
nik90mhall119: agreed. But it seems like a really good website13:56
popeysorry, i just meant any link shortener, doesn't have to be bit.ly13:56
popeytinyurl lets you name urls for example13:56
nik90ooh that I like13:57
nerochiaro_lunchgusch: tmoenicke: when running the qml test case for the onTextChanged bug, what command are you exactly running on the phone ?14:39
tmoenickenerochiaro_lunch: qmlscene, and i picked the desktop file from the browser14:41
=== nerochiaro_lunch is now known as nerochiaro
nerochiarotmoenicke: from the browser ? on the device ?14:41
guschnerochiaro: I picked the desktop file fom the notes-app - yes, on the device14:44
nerochiarogusch: what do you mean that you picked the desktop file from notes-app ? did you launch "qmlscene /path/to/example.qml --desktop-file-hint=/path/to/notes-app.desktop" ?14:45
guschnerochiaro: yes14:46
nerochiarogusch: when i do that now i get this error "QUbuntu: Could not create application instance" and then the app segfaults14:47
guschnerochiaro: I'm currently flashing my phone - afterwards I can check for the exact command14:47
nerochiarogusch: that would help, thanks14:47
tmoenickenerochiaro: yes on the device14:48
nerochiarotmoenicke: the browser doesn't appear for me on the device, i just get "QUbuntu: Could not create application instance" when i launch qmlscene14:49
nerochiarotmoenicke: are you launching from adb shell ?14:49
tmoenickenerochiaro: nope14:52
tmoenickenerochiaro: i was using ssh14:52
nerochiarotmoenicke: ok, let me try that14:52
nerochiarotmoenicke: how do you enable ssh ?14:53
tmoenickenerochiaro: adb shell start ssh14:55
nerochiarotmoenicke: hmm, same problem, QUbuntu: Could not create application instance when i run qmlscene from an ssh shell14:58
nerochiarotmoenicke: are you on a normal image where you just set /userdata/.writable_image ?14:58
guschnerochiaro: qmlscene RotationTest.qml --desktop_file_hint=.local/share/applications/com.ubuntu.notes_notes_1.4.214.desktop14:58
nerochiarogusch: you just flashed the image, set up writable_image, uploaded the file and ran that over ssh ?14:59
nerochiarogusch: or there's some other step i am misisng ?14:59
maxiaojuncan i ask desktop app related questions here?15:00
guschnerochiaro: just reflashed, and now I can see it as well ...15:00
nerochiarogusch: i asked sergiusens on the other touch channel but response yet15:01
=== gatox is now known as gatox_lunch
nerochiarooSoMoN: can you please confirm that launching any qml file with qmlscene from adb or ssh shell (with or without --desktop-file-hint) will crash and display the following error: QUbuntu: Could not create application instance ?16:09
nerochiarooSoMoN: gusch has the same problem and I asked 5 more people but no one is paying attention16:10
oSoMoNnerochiaro, give me a min16:11
nerochiarooSoMoN: no rush16:11
guschnerochiaro: it's on my list (not that I saw it myself ;)16:12
oSoMoNnerochiaro, nope, it works here16:14
oSoMoNnerochiaro, with desktop_file_hint16:14
oSoMoNnerochiaro, are you logged in as the phablet user?16:14
nerochiarooSoMoN: yes16:19
nerochiarooSoMoN: today's image ?16:19
nerochiarooSoMoN: build 1016:20
=== gatox_lunch is now known as gatox
oSoMoNnerochiaro, I got build 1116:42
oSoMoNnerochiaro, I don’t think it would change anything16:42
nerochiarooSoMoN: ok, thanks for checking16:44
nerochiarooSoMoN: just verified that anchorToKeyboard doesn't work in landscape even in a minimal example. submitting bug now16:45
* popey tickles mhall119 with https://myapps.developer.ubuntu.com/dev/click-apps/243/16:45
oSoMoNnerochiaro, excellent, thanks16:47
nerochiarooSoMoN: it was already reported it seems (with a slightly different symptoms but i believe the cause it the same) https://bugs.launchpad.net/ubuntu-keyboard/+bug/123636016:48
ubot2Launchpad bug 1236360 in Ubuntu UI Toolkit "MainView.anchorToKeyboard doesn’t resize the contents in landscape orientation" [Undecided,New]16:48
nerochiarorenato_: please have a look at https://bugs.launchpad.net/ubuntu-keyboard/+bug/1236360 when you come back16:48
nerochiarooSoMoN: regarding the hack to make sure the content finishes resizing before getting the cursor into view, there doesn't seem to be any way to know when the animation is done, according to renato16:49
oSoMoN:/16:53
nerochiarooSoMoN: so either we convice them to expose that animation somehow so we can know when it's finish, or expose a signal when it's finished, or keep the hack16:57
oSoMoNnerochiaro, or we sleep on it and wake up tomorrow with a slightly less hacky hack :)16:58
nerochiarooSoMoN: allright, let's do that16:58
mhall119popey: we're up to 243 apps?16:58
popeynot quite16:59
popeysome are rejected16:59
nerochiarooSoMoN: one option would be to know what the keyb height should be in the end, and wait for the content to reach that height16:59
nerochiarooSoMoN: but it's just as fragile as the timer hack, i think16:59
oSoMoNnerochiaro, sounds much less fragile to me, I like this approach better16:59
mhall119popey: but 243 submitted apps16:59
oSoMoNnerochiaro, using the KeyboardRectangle, we know when the OSK is fully shown, so we know its height at this point, and therefore we can calculate the height of the view17:00
nerochiarooSoMoN: i'll have a look at how it can be done17:01
nerochiarooSoMoN: it's still relying on the fact that we know some internals, but yes, probably a better way17:01
popeymhall119: -1 for hello world, sure ☻17:05
mhall119popey: that's valid app!17:06
popey17:06
oSoMoNnerochiaro, hey, I just submitted this trivial MR: https://code.launchpad.net/~osomon/notes-app/select-many-noorder/+merge/193966. Care to have a quick look?17:11
nerochiarooSoMoN: looking17:11
nerochiarooSoMoN: was that order giving problems or is it just to increase robustness ?17:12
oSoMoNnerochiaro, just to increase robustness, because I just found out that the order is not guaranteed by select_many, I’m writing an e-mail about it to the team17:12
nerochiarooSoMoN: it looks good to me anyway, and i think that if jenkins is ok with it you can top approve when it's done17:13
oSoMoNnerochiaro, thx17:13
aquariushow does the phone actually start a click app that's installed? So I can do the same thing from the command line -- if I just run qmlscene myself from an ssh connection, then it's not being managed by upstart and it's not confined18:41
sarnoldaquarius: I don't know how much this reflects current reality vs the intention, but try the "start application APP_ID=foo" thing mentioned here: https://wiki.ubuntu.com/SecurityTeam/Specifications/ApplicationConfinement#Launching_applications18:43
aquariussarnold, aha, that looks useful!18:43
aquariuslooks like tedg is involved with this: I shall ping him too18:45
=== salem_ is now known as _salem
popeyElleo: cutespotify crashes for me... Log in:  "No error"22:51
Elleopopey: oh, is this with a recent build?23:32
Elleoor the version I gave you ages ago?23:32
popeyhmm, the one on my phone, might be old23:32
Elleopopey: hang on, I'll upload a newer one for you to have a poke at23:32
popeyI'll have to play tomorrow.. being dragged away23:32
popeybut ping the link and I will look in the morning23:33
Elleookay23:33

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!