Skip to content

Commit

Permalink
Housekeeping.
Browse files Browse the repository at this point in the history
  • Loading branch information
aiman-al-masoud committed Sep 1, 2021
1 parent e39201e commit 911eeba
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public class Settings{
* @param tag
* @param listener
*/
public static void listenToTag(Tag tag, TagListener listener){
public static void addTagListener(Tag tag, TagListener listener){

//get the list of listeners of a tag
ArrayList<TagListener> listeners = tagListeners.get(tag);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
import java.io.Serializable;

/**
* Used by Metadata IF to modify/retrieve values
* for a given tag. Each Tag also stores
* a default value.
*
*/
public class Tag implements Serializable {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ public interface Metadata {
String TRUE_STR = "true";
String FALSE_STR = "false";


/**
* Get the string value of a tag.
* @param tag
Expand Down Expand Up @@ -50,7 +49,6 @@ public interface Metadata {
*/
void setTag(Tag tag, String tagValue);


/**
* Delete a tag as well as its value.
* @param tag
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ protected void onCreate(@Nullable Bundle savedInstanceState) {
//set the theme of this activity
setTheme(currentTheme);

Settings.listenToTag(Settings.TAG_THEME, this);
Settings.addTagListener(Settings.TAG_THEME, this);


super.onCreate(savedInstanceState);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public static PageFragment newInstance(Page page) {
PageFragment fragment = new PageFragment();
fragment.page = page;
page.addListener(fragment);
Settings.listenToTag(Settings.TAG_THEME, fragment);
Settings.addTagListener(Settings.TAG_THEME, fragment);
return fragment;
}

Expand Down

0 comments on commit 911eeba

Please sign in to comment.