Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support to show different calendars in different widget instances #37

Closed
mpost opened this issue Sep 14, 2012 · 14 comments
Closed

Add support to show different calendars in different widget instances #37

mpost opened this issue Sep 14, 2012 · 14 comments
Milestone

Comments

@mpost
Copy link
Collaborator

mpost commented Sep 14, 2012

Currently instances of the widget share the same preferences and hence show the same calendars.

@BengaloBongali
Copy link

That's exactly what I wanted to ask for!

@aunger
Copy link

aunger commented Apr 14, 2014

+1. And thanks for the great work!

@rosenbergj
Copy link

I would very much like this feature. I prefer to display 3 different agenda widgets, but I can only use my favorite widget for one of them!

@saladpanda
Copy link

+1
This is essential for me.

jtsymon added a commit to jtsymon/calendar-widget that referenced this issue Jul 25, 2014
@mpost mpost changed the title Add support to show different calendars in different widgets Add support to show different calendars in different widget instances Aug 28, 2014
@rICTx-T1D
Copy link

I would like to have this feature too...

jtsymon added a commit to jtsymon/calendar-widget that referenced this issue Sep 14, 2014
@diggy128
Copy link

+1
This is essential for me too and I like this widget too much to change.

@lexa1
Copy link

lexa1 commented Nov 21, 2015

+1

@yvolk
Copy link
Collaborator

yvolk commented Mar 29, 2017

I figured out, how to implement support of different settings for different widget instances without rewriting and duplication of existing Settings screens / xml files (which are based on Android "Shared preferences").
As before, only one widget instance will be editable at a time using simple Android approach with the SharedPreferences. But after closing the Settings screens all settings will be copied to a "Settings instance", separate for each Widget instance; and copied back to the SharedPreferences again for editing, if needed...

Starting the implementation...

yvolk added a commit that referenced this issue Apr 1, 2017
yvolk added a commit that referenced this issue Apr 1, 2017
…hing widgets from each other during their configuration.
@yvolk
Copy link
Collaborator

yvolk commented Apr 2, 2017

The feature with different settings for different Widget instances really started to work on my own devices on April 1 :-)
All setting are currently separate for each Widget instance. I will need some time to test if all settings are applied correctly, including recently added "Lock time zone" #201
See how three differently configured (for testing purposes) widgets may look at Android 6.0 device:
three-widgets
In order not to get confused in configurations of different widgets, you now can launch "Calendar Widget" with your Android Launcher and you will be presented with a widget selection list. As you see below, each widget can be given its name to ease configuring.
widgets-selection-screen

@yvolk yvolk added this to the 1.10.0 milestone Apr 2, 2017
@obperryo
Copy link

obperryo commented Apr 2, 2017

Nice, looking forward to it!

@smichel17
Copy link

smichel17 commented May 26, 2017

I'm currently confused how this works. When I open the app, a large number of widgets to configure is shown, but I only have one widget active. It's rather difficult for me to figure out which entry in the list controls mine.

app

@yvolk
Copy link
Collaborator

yvolk commented May 26, 2017

@smichel17 In order to figure out, which settings are for the particular widget, tap "three vertical dots" icon on that widget's header!
Settings of that widget will be opened.
Go to Appearance section and change "Widget name" from default "Calendar Widget NN" to something meaningful for you, e.g. to "Main widget"

@smichel17
Copy link

@yvolk I have the header disabled.

At one point I went through the list, found what I thought was it, and renamed it (it's just off screen in the screenshot), but changing that one's settings seems not to have an effect any more, so I'm not sure it was actually the right one.

It's currently also harder to figure out which is which than it needs to be, because pressing the back button after I select one quits the app instead of returning to the list.

Is it possible to add a way to hide, gray out, or otherwise sort based on which configs actually have a widget using them?

Also, is the number of configs static? If so, it might make sense to put the list in a drawer or something.

@yvolk
Copy link
Collaborator

yvolk commented May 27, 2017

@smichel17 As you have lots of "Calendar widgets" created (maybe in different launcher applications...) and most of them (or even one only) are really needed to you, I think that the easiest way for you is:

  1. Uninstall Calendar widget,
  2. Reboot your device
  3. Install the Calendar widget again
  4. Add the Widget to your Home screen.

- This way you will have exactly one Calendar widget in the list.

Rename the widget as you need and only after that add another Widget, if you need it...

@mpost mpost modified the milestones: 1.10.0, 1.10.2 Jun 1, 2017
@yvolk yvolk closed this as completed Aug 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

12 participants