Clock app should remember the app width and height in desktop mode

Bug #1272470 reported by Nekhelesh Ramananthan
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu Clock App
Fix Released
Wishlist
Mario Guerriero

Bug Description

Desktop application like Gedit etc remember the application width and height between application restarts. Clock app should exhibit a similar behaviour. Currently it always defaults to a certain width and height.

Difficulty: EASY

---------- Desired solution --------------
This functionality can be easily achieved by using the statesaver feature offered by the Ubuntu SDK. Feel free to read up on http://kryogenix.org/days/2014/01/23/saving-the-current-state-of-your-ubuntu-sdk-app-with-no-effort to get an idea on how to implement this. The bug fix will be less than 4 lines of code.

As a bonus, you can add a little intelligence by checking if the application width and height is below a certain value and if true set it to default width and height. This is to avoid the clock app from starting with a really small height or width where it is barely useable.

Tags: hackday

Related branches

Changed in ubuntu-clock-app:
status: Triaged → In Progress
assignee: nobody → Mario Guerriero (mefrio-g)
Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :

Fix committed into lp:ubuntu-clock-app at revision 309, scheduled for release in ubuntu-clock-app, milestone 1.4

Changed in ubuntu-clock-app:
status: In Progress → Fix Committed
Changed in ubuntu-clock-app:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.