Commit c968c824 authored by Thomas's avatar Thomas
Browse files

Some cleaning

parent 47ecdd8e
Pipeline #298684 passed with stage
in 4 minutes and 5 seconds
......@@ -315,7 +315,7 @@ public class EditProfileActivity extends BaseActivity implements OnRetrieveAccou
getIntent.setType("image/*");
Intent pickIntent = new Intent(Intent.ACTION_PICK);
pickIntent.setDataAndType(android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI,"image/*");
pickIntent.setDataAndType(android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI, "image/*");
Intent chooserIntent = Intent.createChooser(getIntent, getString(R.string.toot_select_image));
chooserIntent.putExtra(Intent.EXTRA_INITIAL_INTENTS, new Intent[]{pickIntent});
......
......@@ -52,7 +52,7 @@ public class AccountAdmin implements Parcelable {
public AccountAdmin() {
}
protected AccountAdmin(Parcel in) {
private AccountAdmin(Parcel in) {
this.id = in.readString();
this.username = in.readString();
long tmpCreated_at = in.readLong();
......
......@@ -45,6 +45,7 @@ public class AccountCreation {
this.password = password;
}
@SuppressWarnings("unused")
public String getPasswordConfirm() {
return passwordConfirm;
}
......
......@@ -16,6 +16,7 @@ package app.fedilab.android.client.Entities;
import java.util.Date;
@SuppressWarnings("unused")
public class Announcement extends Status {
private Date startAt;
private Date endAt;
......
......@@ -22,6 +22,7 @@ import android.os.Parcelable;
* Manages Media
*/
@SuppressWarnings("unused")
public class Attachment implements Parcelable {
public static final Creator<Attachment> CREATOR = new Creator<Attachment>() {
......
......@@ -25,6 +25,7 @@ import android.os.Parcelable;
* All values are not implemented
*/
@SuppressWarnings("unused")
public class Card implements Parcelable {
public static final Creator<Card> CREATOR = new Creator<Card>() {
......
......@@ -18,6 +18,7 @@ import java.util.List;
* You should have received a copy of the GNU General Public License along with Fedilab; if not,
* see <http://www.gnu.org/licenses>. */
@SuppressWarnings("unused")
public class Charts {
private List<String> xLabels;
......
......@@ -41,7 +41,6 @@ public class Emojis implements Parcelable {
private String url;
private boolean visible_in_picker;
private Drawable drawable;
private boolean drawableFound;
public Emojis() {
}
......@@ -106,11 +105,4 @@ public class Emojis implements Parcelable {
this.drawable = drawable;
}
public boolean isDrawableFound() {
return drawableFound;
}
public void setDrawableFound(boolean drawableFound) {
this.drawableFound = drawableFound;
}
}
......@@ -23,6 +23,7 @@ import java.util.Date;
* Manage filters
*/
@SuppressWarnings("unused")
public class Filters {
private String id;
......
......@@ -18,6 +18,7 @@ package app.fedilab.android.client.Entities;
* Created by Thomas on 29/09/2018.
* Manage how to videos
*/
@SuppressWarnings("unused")
public class HowToVideo {
private String id;
......
......@@ -21,6 +21,7 @@ import java.util.HashMap;
* Describes instance
*/
@SuppressWarnings("unused")
public class Instance {
private String uri;
......
......@@ -14,6 +14,7 @@
* see <http://www.gnu.org/licenses>. */
package app.fedilab.android.client.Entities;
@SuppressWarnings("unused")
public class InstanceNodeInfo {
private String name;
......
......@@ -14,6 +14,7 @@ package app.fedilab.android.client.Entities;
* You should have received a copy of the GNU General Public License along with Fedilab; if not,
* see <http://www.gnu.org/licenses>. */
@SuppressWarnings("unused")
public class InstanceReg {
private String domain;
......
......@@ -21,6 +21,7 @@ import java.util.Date;
* Describes instance from instances.social
*/
@SuppressWarnings("unused")
public class InstanceSocial {
private String id;
......
......@@ -14,6 +14,7 @@
* see <http://www.gnu.org/licenses>. */
package app.fedilab.android.client.Entities;
@SuppressWarnings("unused")
public class NodeInfo {
private String rel;
private String href;
......
......@@ -43,8 +43,6 @@ public class Notification implements Parcelable {
private Date created_at;
private Account account;
private Status status;
private boolean notificationAnimated = false;
private boolean isEmojiFound = false;
protected Notification(Parcel in) {
id = in.readString();
......@@ -115,19 +113,5 @@ public class Notification implements Parcelable {
return otherNotifications != null && (otherNotifications == this || otherNotifications instanceof Notification && this.getId().equals(((Notification) otherNotifications).getId()));
}
public boolean isNotificationAnimated() {
return notificationAnimated;
}
public void setNotificationAnimated(boolean notificationAnimated) {
this.notificationAnimated = notificationAnimated;
}
public boolean isEmojiFound() {
return isEmojiFound;
}
public void setEmojiFound(boolean emojiFound) {
isEmojiFound = emojiFound;
}
}
......@@ -18,6 +18,7 @@ import java.util.List;
* You should have received a copy of the GNU General Public License along with Fedilab; if not,
* see <http://www.gnu.org/licenses>. */
@SuppressWarnings("unused")
public class NotificationCharts {
private List<String> xLabels;
......
......@@ -25,6 +25,7 @@ import java.util.List;
* Created by Thomas on 29/09/2018.
* Manage how to videos
*/
@SuppressWarnings("unused")
public class Peertube {
private String id;
......
......@@ -18,6 +18,7 @@ package app.fedilab.android.client.Entities;
* Created by Thomas on 23/01/2019.
* Manage Peertube comments
*/
@SuppressWarnings("unused")
public class PeertubeComment {
private String id;
......
......@@ -21,6 +21,7 @@ import java.util.Date;
* Created by Thomas on 23/01/2019.
*/
@SuppressWarnings("unused")
public class PeertubeNotification {
private String id;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment