From d7ffe9e8e8e410266a032f77acec5444e8ca9ce0 Mon Sep 17 00:00:00 2001 From: Floens Date: Tue, 27 Jan 2015 20:00:05 +0100 Subject: [PATCH] License headers and formatting. --- .../floens/chan/controller/Controller.java | 17 +++++++ .../chan/controller/ControllerTransition.java | 17 +++++++ .../chan/controller/NavigationController.java | 17 +++++++ .../controller/PopControllerTransition.java | 17 +++++++ .../controller/PushControllerTransition.java | 17 +++++++ .../floens/chan/core/model/ChanThread.java | 17 +++++++ .../chan/core/presenter/ThreadPresenter.java | 17 +++++++ .../chan/ui/controller/BrowseController.java | 17 +++++++ .../controller/RootNavigationController.java | 17 +++++++ .../ui/controller/SettingsController.java | 17 +++++++ .../ui/controller/ViewThreadController.java | 17 +++++++ .../chan/ui/drawable/ArrowMenuDrawable.java | 17 +++++++ .../chan/ui/helper/PostPopupHelper.java | 17 +++++++ .../chan/ui/layout/ImageViewLayout.java | 17 +++++++ .../floens/chan/ui/layout/ThreadLayout.java | 17 +++++++ .../chan/ui/layout/ThreadListLayout.java | 17 +++++++ .../chan/ui/toolbar/NavigationItem.java | 17 +++++++ .../org/floens/chan/ui/toolbar/Toolbar.java | 17 +++++++ .../floens/chan/ui/toolbar/ToolbarMenu.java | 17 +++++++ .../chan/ui/toolbar/ToolbarMenuItem.java | 17 +++++++ .../chan/ui/toolbar/ToolbarMenuSubItem.java | 17 +++++++ .../chan/ui/toolbar/ToolbarMenuSubMenu.java | 17 +++++++ .../org/floens/chan/utils/AndroidUtils.java | 17 +++++++ .../org/floens/chan/utils/AnimationUtils.java | 17 +++++++ .../java/org/floens/chan/utils/FileCache.java | 17 +++++++ Clover/app/src/main/res/anim/fade_in.xml | 4 +- Clover/app/src/main/res/anim/fade_out.xml | 4 +- .../res/drawable/gray_background_selector.xml | 20 +++++++- .../src/main/res/drawable/pin_icon_blue.xml | 4 +- .../src/main/res/drawable/pin_icon_gray.xml | 4 +- .../src/main/res/drawable/pin_icon_red.xml | 4 +- .../app/src/main/res/layout/activity_base.xml | 8 ++-- .../src/main/res/layout/board_edit_item.xml | 4 +- .../src/main/res/layout/board_select_add.xml | 10 ++-- .../main/res/layout/board_select_spinner.xml | 8 ++-- .../layout/board_select_spinner_dropdown.xml | 8 ++-- .../main/res/layout/header_switch_layout.xml | 2 +- Clover/app/src/main/res/layout/image_view.xml | 2 +- .../src/main/res/layout/image_view_layout.xml | 18 ++++++- .../src/main/res/layout/preference_pass.xml | 8 ++-- .../app/src/main/res/layout/root_layout.xml | 39 ++++++++++----- .../src/main/res/layout/settings_layout.xml | 20 +++++++- .../src/main/res/layout/toolbar_activity.xml | 6 +-- .../src/main/res/layout/toolbar_menu_item.xml | 6 +-- .../src/main/res/layout/watch_description.xml | 10 ++-- .../src/main/res/menu/action_bar_switch.xml | 4 +- Clover/app/src/main/res/menu/base.xml | 48 +++++++++---------- Clover/app/src/main/res/menu/board_edit.xml | 8 ++-- Clover/app/src/main/res/menu/image_view.xml | 26 +++++----- Clover/app/src/main/res/menu/settings.xml | 4 +- Clover/app/src/main/res/values/ids.xml | 20 ++++---- Clover/app/src/main/res/xml/preference.xml | 2 +- .../app/src/main/res/xml/preference_pass.xml | 4 +- .../app/src/main/res/xml/preference_watch.xml | 2 +- 54 files changed, 611 insertions(+), 121 deletions(-) diff --git a/Clover/app/src/main/java/org/floens/chan/controller/Controller.java b/Clover/app/src/main/java/org/floens/chan/controller/Controller.java index c4d803fc..a1b11bbd 100644 --- a/Clover/app/src/main/java/org/floens/chan/controller/Controller.java +++ b/Clover/app/src/main/java/org/floens/chan/controller/Controller.java @@ -1,3 +1,20 @@ +/* + * Clover - 4chan browser https://github.com/Floens/Clover/ + * Copyright (C) 2014 Floens + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package org.floens.chan.controller; import android.content.Context; diff --git a/Clover/app/src/main/java/org/floens/chan/controller/ControllerTransition.java b/Clover/app/src/main/java/org/floens/chan/controller/ControllerTransition.java index e778f8e1..a4b71756 100644 --- a/Clover/app/src/main/java/org/floens/chan/controller/ControllerTransition.java +++ b/Clover/app/src/main/java/org/floens/chan/controller/ControllerTransition.java @@ -1,3 +1,20 @@ +/* + * Clover - 4chan browser https://github.com/Floens/Clover/ + * Copyright (C) 2014 Floens + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package org.floens.chan.controller; public abstract class ControllerTransition { diff --git a/Clover/app/src/main/java/org/floens/chan/controller/NavigationController.java b/Clover/app/src/main/java/org/floens/chan/controller/NavigationController.java index 5f20d468..46ba2598 100644 --- a/Clover/app/src/main/java/org/floens/chan/controller/NavigationController.java +++ b/Clover/app/src/main/java/org/floens/chan/controller/NavigationController.java @@ -1,3 +1,20 @@ +/* + * Clover - 4chan browser https://github.com/Floens/Clover/ + * Copyright (C) 2014 Floens + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package org.floens.chan.controller; import android.content.Context; diff --git a/Clover/app/src/main/java/org/floens/chan/controller/PopControllerTransition.java b/Clover/app/src/main/java/org/floens/chan/controller/PopControllerTransition.java index 01c72dea..34c7f85f 100644 --- a/Clover/app/src/main/java/org/floens/chan/controller/PopControllerTransition.java +++ b/Clover/app/src/main/java/org/floens/chan/controller/PopControllerTransition.java @@ -1,3 +1,20 @@ +/* + * Clover - 4chan browser https://github.com/Floens/Clover/ + * Copyright (C) 2014 Floens + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package org.floens.chan.controller; import android.animation.Animator; diff --git a/Clover/app/src/main/java/org/floens/chan/controller/PushControllerTransition.java b/Clover/app/src/main/java/org/floens/chan/controller/PushControllerTransition.java index 74eb91ca..4851bc82 100644 --- a/Clover/app/src/main/java/org/floens/chan/controller/PushControllerTransition.java +++ b/Clover/app/src/main/java/org/floens/chan/controller/PushControllerTransition.java @@ -1,3 +1,20 @@ +/* + * Clover - 4chan browser https://github.com/Floens/Clover/ + * Copyright (C) 2014 Floens + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package org.floens.chan.controller; import android.animation.Animator; diff --git a/Clover/app/src/main/java/org/floens/chan/core/model/ChanThread.java b/Clover/app/src/main/java/org/floens/chan/core/model/ChanThread.java index f75c500f..d1ceb6a3 100644 --- a/Clover/app/src/main/java/org/floens/chan/core/model/ChanThread.java +++ b/Clover/app/src/main/java/org/floens/chan/core/model/ChanThread.java @@ -1,3 +1,20 @@ +/* + * Clover - 4chan browser https://github.com/Floens/Clover/ + * Copyright (C) 2014 Floens + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package org.floens.chan.core.model; import java.util.List; diff --git a/Clover/app/src/main/java/org/floens/chan/core/presenter/ThreadPresenter.java b/Clover/app/src/main/java/org/floens/chan/core/presenter/ThreadPresenter.java index 2572e1d1..6410d16f 100644 --- a/Clover/app/src/main/java/org/floens/chan/core/presenter/ThreadPresenter.java +++ b/Clover/app/src/main/java/org/floens/chan/core/presenter/ThreadPresenter.java @@ -1,3 +1,20 @@ +/* + * Clover - 4chan browser https://github.com/Floens/Clover/ + * Copyright (C) 2014 Floens + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package org.floens.chan.core.presenter; import android.text.TextUtils; diff --git a/Clover/app/src/main/java/org/floens/chan/ui/controller/BrowseController.java b/Clover/app/src/main/java/org/floens/chan/ui/controller/BrowseController.java index 1ca7916f..fdfc7287 100644 --- a/Clover/app/src/main/java/org/floens/chan/ui/controller/BrowseController.java +++ b/Clover/app/src/main/java/org/floens/chan/ui/controller/BrowseController.java @@ -1,3 +1,20 @@ +/* + * Clover - 4chan browser https://github.com/Floens/Clover/ + * Copyright (C) 2014 Floens + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package org.floens.chan.ui.controller; import android.content.Context; diff --git a/Clover/app/src/main/java/org/floens/chan/ui/controller/RootNavigationController.java b/Clover/app/src/main/java/org/floens/chan/ui/controller/RootNavigationController.java index 888f9917..5ec7517b 100644 --- a/Clover/app/src/main/java/org/floens/chan/ui/controller/RootNavigationController.java +++ b/Clover/app/src/main/java/org/floens/chan/ui/controller/RootNavigationController.java @@ -1,3 +1,20 @@ +/* + * Clover - 4chan browser https://github.com/Floens/Clover/ + * Copyright (C) 2014 Floens + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package org.floens.chan.ui.controller; import android.content.Context; diff --git a/Clover/app/src/main/java/org/floens/chan/ui/controller/SettingsController.java b/Clover/app/src/main/java/org/floens/chan/ui/controller/SettingsController.java index 6608b1c0..68f6194e 100644 --- a/Clover/app/src/main/java/org/floens/chan/ui/controller/SettingsController.java +++ b/Clover/app/src/main/java/org/floens/chan/ui/controller/SettingsController.java @@ -1,3 +1,20 @@ +/* + * Clover - 4chan browser https://github.com/Floens/Clover/ + * Copyright (C) 2014 Floens + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package org.floens.chan.ui.controller; import android.content.Context; diff --git a/Clover/app/src/main/java/org/floens/chan/ui/controller/ViewThreadController.java b/Clover/app/src/main/java/org/floens/chan/ui/controller/ViewThreadController.java index d2c7cb2b..26ad831f 100644 --- a/Clover/app/src/main/java/org/floens/chan/ui/controller/ViewThreadController.java +++ b/Clover/app/src/main/java/org/floens/chan/ui/controller/ViewThreadController.java @@ -1,3 +1,20 @@ +/* + * Clover - 4chan browser https://github.com/Floens/Clover/ + * Copyright (C) 2014 Floens + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package org.floens.chan.ui.controller; import android.app.AlertDialog; diff --git a/Clover/app/src/main/java/org/floens/chan/ui/drawable/ArrowMenuDrawable.java b/Clover/app/src/main/java/org/floens/chan/ui/drawable/ArrowMenuDrawable.java index edc110ff..0f863ad8 100644 --- a/Clover/app/src/main/java/org/floens/chan/ui/drawable/ArrowMenuDrawable.java +++ b/Clover/app/src/main/java/org/floens/chan/ui/drawable/ArrowMenuDrawable.java @@ -1,3 +1,20 @@ +/* + * Clover - 4chan browser https://github.com/Floens/Clover/ + * Copyright (C) 2014 Floens + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package org.floens.chan.ui.drawable; import android.graphics.Canvas; diff --git a/Clover/app/src/main/java/org/floens/chan/ui/helper/PostPopupHelper.java b/Clover/app/src/main/java/org/floens/chan/ui/helper/PostPopupHelper.java index 90a9a048..e3fa4cf3 100644 --- a/Clover/app/src/main/java/org/floens/chan/ui/helper/PostPopupHelper.java +++ b/Clover/app/src/main/java/org/floens/chan/ui/helper/PostPopupHelper.java @@ -1,3 +1,20 @@ +/* + * Clover - 4chan browser https://github.com/Floens/Clover/ + * Copyright (C) 2014 Floens + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package org.floens.chan.ui.helper; import android.app.Activity; diff --git a/Clover/app/src/main/java/org/floens/chan/ui/layout/ImageViewLayout.java b/Clover/app/src/main/java/org/floens/chan/ui/layout/ImageViewLayout.java index d40d0c36..2eb111c7 100644 --- a/Clover/app/src/main/java/org/floens/chan/ui/layout/ImageViewLayout.java +++ b/Clover/app/src/main/java/org/floens/chan/ui/layout/ImageViewLayout.java @@ -1,3 +1,20 @@ +/* + * Clover - 4chan browser https://github.com/Floens/Clover/ + * Copyright (C) 2014 Floens + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package org.floens.chan.ui.layout; import android.animation.Animator; diff --git a/Clover/app/src/main/java/org/floens/chan/ui/layout/ThreadLayout.java b/Clover/app/src/main/java/org/floens/chan/ui/layout/ThreadLayout.java index bac90da9..226285c2 100644 --- a/Clover/app/src/main/java/org/floens/chan/ui/layout/ThreadLayout.java +++ b/Clover/app/src/main/java/org/floens/chan/ui/layout/ThreadLayout.java @@ -1,3 +1,20 @@ +/* + * Clover - 4chan browser https://github.com/Floens/Clover/ + * Copyright (C) 2014 Floens + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package org.floens.chan.ui.layout; import android.app.AlertDialog; diff --git a/Clover/app/src/main/java/org/floens/chan/ui/layout/ThreadListLayout.java b/Clover/app/src/main/java/org/floens/chan/ui/layout/ThreadListLayout.java index 7860414e..10e71e82 100644 --- a/Clover/app/src/main/java/org/floens/chan/ui/layout/ThreadListLayout.java +++ b/Clover/app/src/main/java/org/floens/chan/ui/layout/ThreadListLayout.java @@ -1,3 +1,20 @@ +/* + * Clover - 4chan browser https://github.com/Floens/Clover/ + * Copyright (C) 2014 Floens + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package org.floens.chan.ui.layout; import android.content.Context; diff --git a/Clover/app/src/main/java/org/floens/chan/ui/toolbar/NavigationItem.java b/Clover/app/src/main/java/org/floens/chan/ui/toolbar/NavigationItem.java index a194c7a8..34fbb2bb 100644 --- a/Clover/app/src/main/java/org/floens/chan/ui/toolbar/NavigationItem.java +++ b/Clover/app/src/main/java/org/floens/chan/ui/toolbar/NavigationItem.java @@ -1,3 +1,20 @@ +/* + * Clover - 4chan browser https://github.com/Floens/Clover/ + * Copyright (C) 2014 Floens + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package org.floens.chan.ui.toolbar; import android.widget.LinearLayout; diff --git a/Clover/app/src/main/java/org/floens/chan/ui/toolbar/Toolbar.java b/Clover/app/src/main/java/org/floens/chan/ui/toolbar/Toolbar.java index a5752033..5ed44359 100644 --- a/Clover/app/src/main/java/org/floens/chan/ui/toolbar/Toolbar.java +++ b/Clover/app/src/main/java/org/floens/chan/ui/toolbar/Toolbar.java @@ -1,3 +1,20 @@ +/* + * Clover - 4chan browser https://github.com/Floens/Clover/ + * Copyright (C) 2014 Floens + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package org.floens.chan.ui.toolbar; import android.animation.Animator; diff --git a/Clover/app/src/main/java/org/floens/chan/ui/toolbar/ToolbarMenu.java b/Clover/app/src/main/java/org/floens/chan/ui/toolbar/ToolbarMenu.java index bfacad69..529113fc 100644 --- a/Clover/app/src/main/java/org/floens/chan/ui/toolbar/ToolbarMenu.java +++ b/Clover/app/src/main/java/org/floens/chan/ui/toolbar/ToolbarMenu.java @@ -1,3 +1,20 @@ +/* + * Clover - 4chan browser https://github.com/Floens/Clover/ + * Copyright (C) 2014 Floens + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package org.floens.chan.ui.toolbar; import android.content.Context; diff --git a/Clover/app/src/main/java/org/floens/chan/ui/toolbar/ToolbarMenuItem.java b/Clover/app/src/main/java/org/floens/chan/ui/toolbar/ToolbarMenuItem.java index f6155486..0865df4c 100644 --- a/Clover/app/src/main/java/org/floens/chan/ui/toolbar/ToolbarMenuItem.java +++ b/Clover/app/src/main/java/org/floens/chan/ui/toolbar/ToolbarMenuItem.java @@ -1,3 +1,20 @@ +/* + * Clover - 4chan browser https://github.com/Floens/Clover/ + * Copyright (C) 2014 Floens + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package org.floens.chan.ui.toolbar; import android.content.Context; diff --git a/Clover/app/src/main/java/org/floens/chan/ui/toolbar/ToolbarMenuSubItem.java b/Clover/app/src/main/java/org/floens/chan/ui/toolbar/ToolbarMenuSubItem.java index 4966b782..8c317b09 100644 --- a/Clover/app/src/main/java/org/floens/chan/ui/toolbar/ToolbarMenuSubItem.java +++ b/Clover/app/src/main/java/org/floens/chan/ui/toolbar/ToolbarMenuSubItem.java @@ -1,3 +1,20 @@ +/* + * Clover - 4chan browser https://github.com/Floens/Clover/ + * Copyright (C) 2014 Floens + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package org.floens.chan.ui.toolbar; public class ToolbarMenuSubItem { diff --git a/Clover/app/src/main/java/org/floens/chan/ui/toolbar/ToolbarMenuSubMenu.java b/Clover/app/src/main/java/org/floens/chan/ui/toolbar/ToolbarMenuSubMenu.java index 48703a59..992521f8 100644 --- a/Clover/app/src/main/java/org/floens/chan/ui/toolbar/ToolbarMenuSubMenu.java +++ b/Clover/app/src/main/java/org/floens/chan/ui/toolbar/ToolbarMenuSubMenu.java @@ -1,3 +1,20 @@ +/* + * Clover - 4chan browser https://github.com/Floens/Clover/ + * Copyright (C) 2014 Floens + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package org.floens.chan.ui.toolbar; import android.content.Context; diff --git a/Clover/app/src/main/java/org/floens/chan/utils/AndroidUtils.java b/Clover/app/src/main/java/org/floens/chan/utils/AndroidUtils.java index 4e37e25c..03bbb707 100644 --- a/Clover/app/src/main/java/org/floens/chan/utils/AndroidUtils.java +++ b/Clover/app/src/main/java/org/floens/chan/utils/AndroidUtils.java @@ -1,3 +1,20 @@ +/* + * Clover - 4chan browser https://github.com/Floens/Clover/ + * Copyright (C) 2014 Floens + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package org.floens.chan.utils; import android.app.Dialog; diff --git a/Clover/app/src/main/java/org/floens/chan/utils/AnimationUtils.java b/Clover/app/src/main/java/org/floens/chan/utils/AnimationUtils.java index c938476e..879bcd73 100644 --- a/Clover/app/src/main/java/org/floens/chan/utils/AnimationUtils.java +++ b/Clover/app/src/main/java/org/floens/chan/utils/AnimationUtils.java @@ -1,3 +1,20 @@ +/* + * Clover - 4chan browser https://github.com/Floens/Clover/ + * Copyright (C) 2014 Floens + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package org.floens.chan.utils; import android.graphics.Matrix; diff --git a/Clover/app/src/main/java/org/floens/chan/utils/FileCache.java b/Clover/app/src/main/java/org/floens/chan/utils/FileCache.java index 233b1bc6..67cc2f1c 100644 --- a/Clover/app/src/main/java/org/floens/chan/utils/FileCache.java +++ b/Clover/app/src/main/java/org/floens/chan/utils/FileCache.java @@ -1,3 +1,20 @@ +/* + * Clover - 4chan browser https://github.com/Floens/Clover/ + * Copyright (C) 2014 Floens + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package org.floens.chan.utils; import android.content.Context; diff --git a/Clover/app/src/main/res/anim/fade_in.xml b/Clover/app/src/main/res/anim/fade_in.xml index 11e35412..9c9c27a0 100644 --- a/Clover/app/src/main/res/anim/fade_in.xml +++ b/Clover/app/src/main/res/anim/fade_in.xml @@ -17,7 +17,7 @@ along with this program. If not, see . --> + android:toAlpha="1.0" /> diff --git a/Clover/app/src/main/res/anim/fade_out.xml b/Clover/app/src/main/res/anim/fade_out.xml index 9dbe1eb2..3994dfc1 100644 --- a/Clover/app/src/main/res/anim/fade_out.xml +++ b/Clover/app/src/main/res/anim/fade_out.xml @@ -17,7 +17,7 @@ along with this program. If not, see . --> + android:toAlpha="0.0" /> diff --git a/Clover/app/src/main/res/drawable/gray_background_selector.xml b/Clover/app/src/main/res/drawable/gray_background_selector.xml index 9693dac2..c28e0b4a 100644 --- a/Clover/app/src/main/res/drawable/gray_background_selector.xml +++ b/Clover/app/src/main/res/drawable/gray_background_selector.xml @@ -1,4 +1,20 @@ - + @@ -11,4 +27,4 @@ - \ No newline at end of file + diff --git a/Clover/app/src/main/res/drawable/pin_icon_blue.xml b/Clover/app/src/main/res/drawable/pin_icon_blue.xml index a6d11a63..b52ecf8e 100644 --- a/Clover/app/src/main/res/drawable/pin_icon_blue.xml +++ b/Clover/app/src/main/res/drawable/pin_icon_blue.xml @@ -16,10 +16,10 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . --> + android:insetTop="8dp"> diff --git a/Clover/app/src/main/res/drawable/pin_icon_gray.xml b/Clover/app/src/main/res/drawable/pin_icon_gray.xml index 11e275a6..a94592e4 100644 --- a/Clover/app/src/main/res/drawable/pin_icon_gray.xml +++ b/Clover/app/src/main/res/drawable/pin_icon_gray.xml @@ -16,10 +16,10 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . --> + android:insetTop="8dp"> diff --git a/Clover/app/src/main/res/drawable/pin_icon_red.xml b/Clover/app/src/main/res/drawable/pin_icon_red.xml index 0dcb2264..d3867dc6 100644 --- a/Clover/app/src/main/res/drawable/pin_icon_red.xml +++ b/Clover/app/src/main/res/drawable/pin_icon_red.xml @@ -16,10 +16,10 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . --> + android:insetTop="8dp"> diff --git a/Clover/app/src/main/res/layout/activity_base.xml b/Clover/app/src/main/res/layout/activity_base.xml index ca9b9b24..b88b8375 100644 --- a/Clover/app/src/main/res/layout/activity_base.xml +++ b/Clover/app/src/main/res/layout/activity_base.xml @@ -34,16 +34,16 @@ along with this program. If not, see . + android:layout_height="match_parent" /> + android:layout_weight="1" /> diff --git a/Clover/app/src/main/res/layout/board_edit_item.xml b/Clover/app/src/main/res/layout/board_edit_item.xml index 476ab90d..6ca3f76e 100644 --- a/Clover/app/src/main/res/layout/board_edit_item.xml +++ b/Clover/app/src/main/res/layout/board_edit_item.xml @@ -22,13 +22,13 @@ along with this program. If not, see . + android:paddingTop="12dp" /> . android:id="@android:id/text1" android:layout_width="match_parent" android:layout_height="wrap_content" - android:textSize="16sp" - android:textColor="#ff000000" + android:ellipsize="end" android:gravity="center_vertical" + android:minHeight="?android:attr/listPreferredItemHeightSmall" android:paddingLeft="?android:attr/listPreferredItemPaddingLeft" android:paddingRight="?android:attr/listPreferredItemPaddingRight" - android:minHeight="?android:attr/listPreferredItemHeightSmall" - android:textStyle="italic" android:singleLine="true" - android:ellipsize="end" /> + android:textColor="#ff000000" + android:textSize="16sp" + android:textStyle="italic" /> diff --git a/Clover/app/src/main/res/layout/board_select_spinner.xml b/Clover/app/src/main/res/layout/board_select_spinner.xml index 7c5d7805..69aa7840 100644 --- a/Clover/app/src/main/res/layout/board_select_spinner.xml +++ b/Clover/app/src/main/res/layout/board_select_spinner.xml @@ -19,11 +19,11 @@ along with this program. If not, see . android:id="@android:id/text1" android:layout_width="match_parent" android:layout_height="wrap_content" - android:textSize="16sp" - android:textColor="#ffffffff" + android:ellipsize="end" android:gravity="center_vertical" + android:minHeight="?android:attr/listPreferredItemHeightSmall" android:paddingLeft="?android:attr/listPreferredItemPaddingLeft" android:paddingRight="?android:attr/listPreferredItemPaddingRight" - android:minHeight="?android:attr/listPreferredItemHeightSmall" android:singleLine="true" - android:ellipsize="end" /> + android:textColor="#ffffffff" + android:textSize="16sp" /> diff --git a/Clover/app/src/main/res/layout/board_select_spinner_dropdown.xml b/Clover/app/src/main/res/layout/board_select_spinner_dropdown.xml index 320a59b8..525e726e 100644 --- a/Clover/app/src/main/res/layout/board_select_spinner_dropdown.xml +++ b/Clover/app/src/main/res/layout/board_select_spinner_dropdown.xml @@ -19,11 +19,11 @@ along with this program. If not, see . android:id="@android:id/text1" android:layout_width="match_parent" android:layout_height="wrap_content" - android:textSize="16sp" - android:textColor="#ff000000" + android:ellipsize="end" android:gravity="center_vertical" + android:minHeight="?android:attr/listPreferredItemHeightSmall" android:paddingLeft="?android:attr/listPreferredItemPaddingLeft" android:paddingRight="?android:attr/listPreferredItemPaddingRight" - android:minHeight="?android:attr/listPreferredItemHeightSmall" android:singleLine="true" - android:ellipsize="end" /> + android:textColor="#ff000000" + android:textSize="16sp" /> diff --git a/Clover/app/src/main/res/layout/header_switch_layout.xml b/Clover/app/src/main/res/layout/header_switch_layout.xml index 991ee74b..5535e040 100644 --- a/Clover/app/src/main/res/layout/header_switch_layout.xml +++ b/Clover/app/src/main/res/layout/header_switch_layout.xml @@ -60,4 +60,4 @@ along with this program. If not, see . android:layout_height="0dp" android:layout_weight="1" /> - \ No newline at end of file + diff --git a/Clover/app/src/main/res/layout/image_view.xml b/Clover/app/src/main/res/layout/image_view.xml index beac169b..32568011 100644 --- a/Clover/app/src/main/res/layout/image_view.xml +++ b/Clover/app/src/main/res/layout/image_view.xml @@ -38,8 +38,8 @@ along with this program. If not, see . android:layout_height="match_parent" /> diff --git a/Clover/app/src/main/res/layout/image_view_layout.xml b/Clover/app/src/main/res/layout/image_view_layout.xml index 7a14f1e6..2fccd882 100644 --- a/Clover/app/src/main/res/layout/image_view_layout.xml +++ b/Clover/app/src/main/res/layout/image_view_layout.xml @@ -1,4 +1,20 @@ - + . + android:text="@string/pass_info_text" /> . android:textSize="20sp" android:textStyle="italic" /> - \ No newline at end of file + diff --git a/Clover/app/src/main/res/layout/root_layout.xml b/Clover/app/src/main/res/layout/root_layout.xml index a9224edb..63495dc3 100644 --- a/Clover/app/src/main/res/layout/root_layout.xml +++ b/Clover/app/src/main/res/layout/root_layout.xml @@ -1,3 +1,20 @@ + + android:background="#ffffffff" + android:orientation="vertical"> + android:layout_height="56dp" + android:background="@color/primary" + android:elevation="8dp" /> + android:layout_height="match_parent" + android:layout_gravity="left" + android:background="#ffffff00"> + android:layout_height="wrap_content" + android:text="Hello, world!" /> - + diff --git a/Clover/app/src/main/res/layout/settings_layout.xml b/Clover/app/src/main/res/layout/settings_layout.xml index e53a7844..6d9f5a18 100644 --- a/Clover/app/src/main/res/layout/settings_layout.xml +++ b/Clover/app/src/main/res/layout/settings_layout.xml @@ -1,4 +1,20 @@ - + - \ No newline at end of file + diff --git a/Clover/app/src/main/res/layout/toolbar_activity.xml b/Clover/app/src/main/res/layout/toolbar_activity.xml index 30f79740..e7ad9c50 100644 --- a/Clover/app/src/main/res/layout/toolbar_activity.xml +++ b/Clover/app/src/main/res/layout/toolbar_activity.xml @@ -16,9 +16,9 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . --> + android:layout_height="match_parent" + android:orientation="vertical"> @@ -27,4 +27,4 @@ along with this program. If not, see . android:layout_width="match_parent" android:layout_height="wrap_content" /> - \ No newline at end of file + diff --git a/Clover/app/src/main/res/layout/toolbar_menu_item.xml b/Clover/app/src/main/res/layout/toolbar_menu_item.xml index b0bb324a..fb2fdc46 100644 --- a/Clover/app/src/main/res/layout/toolbar_menu_item.xml +++ b/Clover/app/src/main/res/layout/toolbar_menu_item.xml @@ -2,8 +2,8 @@ + android:paddingRight="16dp" + android:textColor="#ff000000" + android:textSize="16sp" /> diff --git a/Clover/app/src/main/res/layout/watch_description.xml b/Clover/app/src/main/res/layout/watch_description.xml index 9f2e53c9..bacd7685 100644 --- a/Clover/app/src/main/res/layout/watch_description.xml +++ b/Clover/app/src/main/res/layout/watch_description.xml @@ -16,17 +16,17 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . --> + android:gravity="center" + android:orientation="vertical" + android:padding="8dp"> + android:gravity="center" /> diff --git a/Clover/app/src/main/res/menu/action_bar_switch.xml b/Clover/app/src/main/res/menu/action_bar_switch.xml index 42c467d3..9cfee067 100644 --- a/Clover/app/src/main/res/menu/action_bar_switch.xml +++ b/Clover/app/src/main/res/menu/action_bar_switch.xml @@ -20,8 +20,8 @@ along with this program. If not, see . - \ No newline at end of file + diff --git a/Clover/app/src/main/res/menu/base.xml b/Clover/app/src/main/res/menu/base.xml index 76b97950..fae59e8c 100644 --- a/Clover/app/src/main/res/menu/base.xml +++ b/Clover/app/src/main/res/menu/base.xml @@ -21,8 +21,8 @@ along with this program. If not, see . android:id="@+id/action_reload_tablet" android:icon="@drawable/ic_action_refresh" android:orderInCategory="1" - app:showAsAction="always" - android:title="@string/action_reload"> + android:title="@string/action_reload" + app:showAsAction="always"> . android:id="@+id/action_reload_board" android:icon="@drawable/ic_action_refresh" android:orderInCategory="1" - app:showAsAction="always" - android:title="@string/action_reload_board" /> + android:title="@string/action_reload_board" + app:showAsAction="always" /> + android:title="@string/action_pin" + app:showAsAction="always" /> + android:title="@string/action_reply" + app:showAsAction="ifRoom" /> + android:title="@string/action_reply" + app:showAsAction="ifRoom"> . android:id="@+id/action_reload_thread" android:icon="@drawable/ic_action_refresh" android:orderInCategory="5" - app:showAsAction="never" - android:title="@string/action_reload" /> + android:title="@string/action_reload" + app:showAsAction="never" /> . + android:title="@string/action_search" + app:showAsAction="never"> . android:id="@+id/action_share" android:actionProviderClass="android.widget.ShareActionProvider" android:orderInCategory="7" - app:showAsAction="never" - android:title="@string/action_share" /> + android:title="@string/action_share" + app:showAsAction="never" /> + android:title="@string/action_download_album" + app:showAsAction="never" /> + android:title="@string/action_open_browser" + app:showAsAction="never" /> + android:title="@string/action_board_view_mode" + app:showAsAction="never"> . + android:title="@string/action_settings" + app:showAsAction="never" /> diff --git a/Clover/app/src/main/res/menu/board_edit.xml b/Clover/app/src/main/res/menu/board_edit.xml index 38f7aadf..2e98b2c3 100644 --- a/Clover/app/src/main/res/menu/board_edit.xml +++ b/Clover/app/src/main/res/menu/board_edit.xml @@ -21,13 +21,13 @@ along with this program. If not, see . + android:title="@string/board_add" + app:showAsAction="always" /> + android:title="@string/board_edit_enable_filler" + app:showAsAction="never" /> diff --git a/Clover/app/src/main/res/menu/image_view.xml b/Clover/app/src/main/res/menu/image_view.xml index 23d252e9..6ec5e50f 100644 --- a/Clover/app/src/main/res/menu/image_view.xml +++ b/Clover/app/src/main/res/menu/image_view.xml @@ -22,34 +22,34 @@ along with this program. If not, see . android:id="@+id/action_image_play_state" android:icon="@drawable/ic_action_play" android:orderInCategory="1" - app:showAsAction="always" - android:title="@string/image_play_state" /> + android:title="@string/image_play_state" + app:showAsAction="always" /> + android:title="@string/image_save" + app:showAsAction="never" /> + android:title="@string/action_open_browser" + app:showAsAction="never" /> + android:title="@string/action_share" + app:showAsAction="never" /> + android:title="@string/action_search_image" + app:showAsAction="never"> + android:title="@string/action_download_album" + app:showAsAction="never" /> - \ No newline at end of file + diff --git a/Clover/app/src/main/res/menu/settings.xml b/Clover/app/src/main/res/menu/settings.xml index 74e44622..6f72fba7 100644 --- a/Clover/app/src/main/res/menu/settings.xml +++ b/Clover/app/src/main/res/menu/settings.xml @@ -20,6 +20,6 @@ along with this program. If not, see . + android:title="@string/action_settings_advanced" + app:showAsAction="never" /> diff --git a/Clover/app/src/main/res/values/ids.xml b/Clover/app/src/main/res/values/ids.xml index fb796065..a255ca36 100644 --- a/Clover/app/src/main/res/values/ids.xml +++ b/Clover/app/src/main/res/values/ids.xml @@ -17,14 +17,14 @@ along with this program. If not, see . --> - - - - - - - - - - + + + + + + + + + + diff --git a/Clover/app/src/main/res/xml/preference.xml b/Clover/app/src/main/res/xml/preference.xml index 44599fd5..96fa6f39 100644 --- a/Clover/app/src/main/res/xml/preference.xml +++ b/Clover/app/src/main/res/xml/preference.xml @@ -118,4 +118,4 @@ along with this program. If not, see . - \ No newline at end of file + diff --git a/Clover/app/src/main/res/xml/preference_pass.xml b/Clover/app/src/main/res/xml/preference_pass.xml index fd6c0e93..ce508ecf 100644 --- a/Clover/app/src/main/res/xml/preference_pass.xml +++ b/Clover/app/src/main/res/xml/preference_pass.xml @@ -22,9 +22,9 @@ along with this program. If not, see . android:title="@string/pass_token" /> + android:title="@string/pass_pin" /> . android:key="preference_watch_led" android:title="@string/watch_led" /> - \ No newline at end of file +