diff --git a/.idea/compiler.xml b/.idea/compiler.xml new file mode 100644 index 00000000..fb7f4a8a --- /dev/null +++ b/.idea/compiler.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/.idea/gradle.xml b/.idea/gradle.xml index 5cd135a0..7f3ebf04 100644 --- a/.idea/gradle.xml +++ b/.idea/gradle.xml @@ -5,8 +5,9 @@ diff --git a/.idea/inspectionProfiles/Project_Default.xml b/.idea/inspectionProfiles/Project_Default.xml index 61c09ccd..d29d0997 100644 --- a/.idea/inspectionProfiles/Project_Default.xml +++ b/.idea/inspectionProfiles/Project_Default.xml @@ -3,6 +3,11 @@ - + diff --git a/.idea/modules.xml b/.idea/modules.xml index a5666c67..37a7ffd5 100644 --- a/.idea/modules.xml +++ b/.idea/modules.xml @@ -2,8 +2,8 @@ - - + + \ No newline at end of file diff --git a/app/build.gradle b/app/build.gradle index 40b807f4..9f0306fb 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -8,8 +8,8 @@ android { applicationId 'org.nuclearfog.twidda' minSdkVersion 16 targetSdkVersion 30 - versionCode 22 - versionName '1.7.14' + versionCode 23 + versionName '1.7.15' vectorDrawables.useSupportLibrary true } diff --git a/app/src/main/java/org/nuclearfog/twidda/activity/AppSettings.java b/app/src/main/java/org/nuclearfog/twidda/activity/AppSettings.java index e11eea7d..f98ae0d3 100644 --- a/app/src/main/java/org/nuclearfog/twidda/activity/AppSettings.java +++ b/app/src/main/java/org/nuclearfog/twidda/activity/AppSettings.java @@ -38,8 +38,8 @@ import org.nuclearfog.twidda.backend.LocationListLoader; import org.nuclearfog.twidda.backend.engine.EngineException; import org.nuclearfog.twidda.backend.engine.TwitterEngine; import org.nuclearfog.twidda.backend.items.TrendLocation; -import org.nuclearfog.twidda.backend.tools.ErrorHandler; -import org.nuclearfog.twidda.backend.tools.FontTool; +import org.nuclearfog.twidda.backend.utils.ErrorHandler; +import org.nuclearfog.twidda.backend.utils.FontTool; import org.nuclearfog.twidda.database.DatabaseAdapter; import org.nuclearfog.twidda.database.GlobalSettings; diff --git a/app/src/main/java/org/nuclearfog/twidda/activity/DirectMessage.java b/app/src/main/java/org/nuclearfog/twidda/activity/DirectMessage.java index 9d39fe28..df797fce 100644 --- a/app/src/main/java/org/nuclearfog/twidda/activity/DirectMessage.java +++ b/app/src/main/java/org/nuclearfog/twidda/activity/DirectMessage.java @@ -14,7 +14,7 @@ import androidx.viewpager.widget.ViewPager; import org.nuclearfog.twidda.R; import org.nuclearfog.twidda.adapter.FragmentAdapter; -import org.nuclearfog.twidda.backend.tools.FontTool; +import org.nuclearfog.twidda.backend.utils.FontTool; import org.nuclearfog.twidda.database.GlobalSettings; /** diff --git a/app/src/main/java/org/nuclearfog/twidda/activity/ListDetail.java b/app/src/main/java/org/nuclearfog/twidda/activity/ListDetail.java index 8f210d73..e839f5eb 100644 --- a/app/src/main/java/org/nuclearfog/twidda/activity/ListDetail.java +++ b/app/src/main/java/org/nuclearfog/twidda/activity/ListDetail.java @@ -14,7 +14,7 @@ import com.google.android.material.tabs.TabLayout.Tab; import org.nuclearfog.twidda.R; import org.nuclearfog.twidda.adapter.FragmentAdapter; -import org.nuclearfog.twidda.backend.tools.FontTool; +import org.nuclearfog.twidda.backend.utils.FontTool; import org.nuclearfog.twidda.database.GlobalSettings; /** diff --git a/app/src/main/java/org/nuclearfog/twidda/activity/LoginActivity.java b/app/src/main/java/org/nuclearfog/twidda/activity/LoginActivity.java index 95e034e1..6a906155 100644 --- a/app/src/main/java/org/nuclearfog/twidda/activity/LoginActivity.java +++ b/app/src/main/java/org/nuclearfog/twidda/activity/LoginActivity.java @@ -22,8 +22,8 @@ import androidx.appcompat.widget.Toolbar; import org.nuclearfog.twidda.R; import org.nuclearfog.twidda.backend.Registration; import org.nuclearfog.twidda.backend.engine.EngineException; -import org.nuclearfog.twidda.backend.tools.ErrorHandler; -import org.nuclearfog.twidda.backend.tools.FontTool; +import org.nuclearfog.twidda.backend.utils.ErrorHandler; +import org.nuclearfog.twidda.backend.utils.FontTool; import org.nuclearfog.twidda.database.GlobalSettings; import java.security.NoSuchAlgorithmException; diff --git a/app/src/main/java/org/nuclearfog/twidda/activity/MediaViewer.java b/app/src/main/java/org/nuclearfog/twidda/activity/MediaViewer.java index 481ab6bb..114735ea 100644 --- a/app/src/main/java/org/nuclearfog/twidda/activity/MediaViewer.java +++ b/app/src/main/java/org/nuclearfog/twidda/activity/MediaViewer.java @@ -28,7 +28,7 @@ import org.nuclearfog.twidda.backend.ImageLoader; import org.nuclearfog.twidda.backend.ImageSaver; import org.nuclearfog.twidda.backend.engine.EngineException; import org.nuclearfog.twidda.backend.holder.ImageHolder; -import org.nuclearfog.twidda.backend.tools.ErrorHandler; +import org.nuclearfog.twidda.backend.utils.ErrorHandler; import org.nuclearfog.zoomview.ZoomView; import static android.Manifest.permission.WRITE_EXTERNAL_STORAGE; diff --git a/app/src/main/java/org/nuclearfog/twidda/activity/MessagePopup.java b/app/src/main/java/org/nuclearfog/twidda/activity/MessagePopup.java index 3b1f98cf..63874087 100644 --- a/app/src/main/java/org/nuclearfog/twidda/activity/MessagePopup.java +++ b/app/src/main/java/org/nuclearfog/twidda/activity/MessagePopup.java @@ -24,8 +24,8 @@ import org.nuclearfog.twidda.R; import org.nuclearfog.twidda.backend.MessageUploader; import org.nuclearfog.twidda.backend.engine.EngineException; import org.nuclearfog.twidda.backend.holder.MessageHolder; -import org.nuclearfog.twidda.backend.tools.ErrorHandler; -import org.nuclearfog.twidda.backend.tools.FontTool; +import org.nuclearfog.twidda.backend.utils.ErrorHandler; +import org.nuclearfog.twidda.backend.utils.FontTool; import org.nuclearfog.twidda.database.GlobalSettings; import static android.Manifest.permission.READ_EXTERNAL_STORAGE; diff --git a/app/src/main/java/org/nuclearfog/twidda/activity/ProfileEditor.java b/app/src/main/java/org/nuclearfog/twidda/activity/ProfileEditor.java index 5952f768..195497fc 100644 --- a/app/src/main/java/org/nuclearfog/twidda/activity/ProfileEditor.java +++ b/app/src/main/java/org/nuclearfog/twidda/activity/ProfileEditor.java @@ -34,8 +34,8 @@ import org.nuclearfog.twidda.backend.ProfileUpdater; import org.nuclearfog.twidda.backend.engine.EngineException; import org.nuclearfog.twidda.backend.holder.UserHolder; import org.nuclearfog.twidda.backend.items.TwitterUser; -import org.nuclearfog.twidda.backend.tools.ErrorHandler; -import org.nuclearfog.twidda.backend.tools.FontTool; +import org.nuclearfog.twidda.backend.utils.ErrorHandler; +import org.nuclearfog.twidda.backend.utils.FontTool; import org.nuclearfog.twidda.database.GlobalSettings; import static android.Manifest.permission.READ_EXTERNAL_STORAGE; diff --git a/app/src/main/java/org/nuclearfog/twidda/activity/TweetActivity.java b/app/src/main/java/org/nuclearfog/twidda/activity/TweetActivity.java index 9498b032..dc191074 100644 --- a/app/src/main/java/org/nuclearfog/twidda/activity/TweetActivity.java +++ b/app/src/main/java/org/nuclearfog/twidda/activity/TweetActivity.java @@ -35,8 +35,8 @@ import org.nuclearfog.twidda.backend.TweetLoader; import org.nuclearfog.twidda.backend.TweetLoader.Action; import org.nuclearfog.twidda.backend.engine.EngineException; import org.nuclearfog.twidda.backend.items.Tweet; -import org.nuclearfog.twidda.backend.tools.ErrorHandler; -import org.nuclearfog.twidda.backend.tools.FontTool; +import org.nuclearfog.twidda.backend.utils.ErrorHandler; +import org.nuclearfog.twidda.backend.utils.FontTool; import org.nuclearfog.twidda.database.GlobalSettings; import java.text.NumberFormat; diff --git a/app/src/main/java/org/nuclearfog/twidda/activity/TweetPopup.java b/app/src/main/java/org/nuclearfog/twidda/activity/TweetPopup.java index 62dcf8a6..9876b675 100644 --- a/app/src/main/java/org/nuclearfog/twidda/activity/TweetPopup.java +++ b/app/src/main/java/org/nuclearfog/twidda/activity/TweetPopup.java @@ -28,8 +28,8 @@ import org.nuclearfog.twidda.R; import org.nuclearfog.twidda.backend.TweetUploader; import org.nuclearfog.twidda.backend.engine.EngineException; import org.nuclearfog.twidda.backend.holder.TweetHolder; -import org.nuclearfog.twidda.backend.tools.ErrorHandler; -import org.nuclearfog.twidda.backend.tools.FontTool; +import org.nuclearfog.twidda.backend.utils.ErrorHandler; +import org.nuclearfog.twidda.backend.utils.FontTool; import org.nuclearfog.twidda.database.GlobalSettings; import java.util.LinkedList; diff --git a/app/src/main/java/org/nuclearfog/twidda/activity/TwitterList.java b/app/src/main/java/org/nuclearfog/twidda/activity/TwitterList.java index 2f407057..ec858bcf 100644 --- a/app/src/main/java/org/nuclearfog/twidda/activity/TwitterList.java +++ b/app/src/main/java/org/nuclearfog/twidda/activity/TwitterList.java @@ -10,7 +10,7 @@ import androidx.viewpager.widget.ViewPager; import org.nuclearfog.twidda.R; import org.nuclearfog.twidda.adapter.FragmentAdapter; -import org.nuclearfog.twidda.backend.tools.FontTool; +import org.nuclearfog.twidda.backend.utils.FontTool; import org.nuclearfog.twidda.database.GlobalSettings; /** diff --git a/app/src/main/java/org/nuclearfog/twidda/activity/UserDetail.java b/app/src/main/java/org/nuclearfog/twidda/activity/UserDetail.java index 4b08da47..a6b4fd24 100644 --- a/app/src/main/java/org/nuclearfog/twidda/activity/UserDetail.java +++ b/app/src/main/java/org/nuclearfog/twidda/activity/UserDetail.java @@ -10,7 +10,7 @@ import androidx.viewpager.widget.ViewPager; import org.nuclearfog.twidda.R; import org.nuclearfog.twidda.adapter.FragmentAdapter; -import org.nuclearfog.twidda.backend.tools.FontTool; +import org.nuclearfog.twidda.backend.utils.FontTool; import org.nuclearfog.twidda.database.GlobalSettings; /** diff --git a/app/src/main/java/org/nuclearfog/twidda/activity/UserProfile.java b/app/src/main/java/org/nuclearfog/twidda/activity/UserProfile.java index 02fdfe80..df7efea8 100644 --- a/app/src/main/java/org/nuclearfog/twidda/activity/UserProfile.java +++ b/app/src/main/java/org/nuclearfog/twidda/activity/UserProfile.java @@ -37,8 +37,8 @@ import org.nuclearfog.twidda.backend.ProfileLoader; import org.nuclearfog.twidda.backend.engine.EngineException; import org.nuclearfog.twidda.backend.items.TwitterUser; import org.nuclearfog.twidda.backend.items.UserRelation; -import org.nuclearfog.twidda.backend.tools.ErrorHandler; -import org.nuclearfog.twidda.backend.tools.FontTool; +import org.nuclearfog.twidda.backend.utils.ErrorHandler; +import org.nuclearfog.twidda.backend.utils.FontTool; import org.nuclearfog.twidda.database.GlobalSettings; import java.text.NumberFormat; diff --git a/app/src/main/java/org/nuclearfog/twidda/adapter/ListAdapter.java b/app/src/main/java/org/nuclearfog/twidda/adapter/ListAdapter.java index 36a3349d..a806f630 100644 --- a/app/src/main/java/org/nuclearfog/twidda/adapter/ListAdapter.java +++ b/app/src/main/java/org/nuclearfog/twidda/adapter/ListAdapter.java @@ -18,7 +18,7 @@ import com.squareup.picasso.Picasso; import org.nuclearfog.twidda.R; import org.nuclearfog.twidda.backend.items.TwitterList; import org.nuclearfog.twidda.backend.items.TwitterUser; -import org.nuclearfog.twidda.backend.tools.FontTool; +import org.nuclearfog.twidda.backend.utils.FontTool; import org.nuclearfog.twidda.database.GlobalSettings; import java.text.NumberFormat; @@ -28,7 +28,7 @@ import java.util.List; import static android.view.View.GONE; import static android.view.View.VISIBLE; import static androidx.recyclerview.widget.RecyclerView.NO_POSITION; -import static org.nuclearfog.twidda.backend.tools.TimeString.getTimeString; +import static org.nuclearfog.twidda.backend.utils.TimeString.getTimeString; /** * Adapter class for user lists @@ -37,11 +37,11 @@ import static org.nuclearfog.twidda.backend.tools.TimeString.getTimeString; */ public class ListAdapter extends Adapter { - private ListClickListener listener; - private NumberFormat formatter; - private GlobalSettings settings; + private final ListClickListener listener; + private final NumberFormat formatter; + private final GlobalSettings settings; - private List data; + private final List data; public ListAdapter(ListClickListener listener, GlobalSettings settings) { diff --git a/app/src/main/java/org/nuclearfog/twidda/adapter/MessageAdapter.java b/app/src/main/java/org/nuclearfog/twidda/adapter/MessageAdapter.java index f0719b28..a4f3d0a4 100644 --- a/app/src/main/java/org/nuclearfog/twidda/adapter/MessageAdapter.java +++ b/app/src/main/java/org/nuclearfog/twidda/adapter/MessageAdapter.java @@ -22,14 +22,14 @@ import org.nuclearfog.tag.Tagger.OnTagClickListener; import org.nuclearfog.twidda.R; import org.nuclearfog.twidda.backend.items.Message; import org.nuclearfog.twidda.backend.items.TwitterUser; -import org.nuclearfog.twidda.backend.tools.FontTool; +import org.nuclearfog.twidda.backend.utils.FontTool; import org.nuclearfog.twidda.database.GlobalSettings; import java.util.ArrayList; import java.util.List; import static androidx.recyclerview.widget.RecyclerView.NO_POSITION; -import static org.nuclearfog.twidda.backend.tools.TimeString.getTimeString; +import static org.nuclearfog.twidda.backend.utils.TimeString.getTimeString; /** * Adapter class for direct messages list @@ -38,10 +38,10 @@ import static org.nuclearfog.twidda.backend.tools.TimeString.getTimeString; */ public class MessageAdapter extends Adapter { - private OnItemSelected itemClickListener; - private GlobalSettings settings; + private final OnItemSelected itemClickListener; + private final GlobalSettings settings; - private List messages; + private final List messages; public MessageAdapter(OnItemSelected itemClickListener, GlobalSettings settings) { diff --git a/app/src/main/java/org/nuclearfog/twidda/adapter/TrendAdapter.java b/app/src/main/java/org/nuclearfog/twidda/adapter/TrendAdapter.java index 513bae19..6ced7cc8 100644 --- a/app/src/main/java/org/nuclearfog/twidda/adapter/TrendAdapter.java +++ b/app/src/main/java/org/nuclearfog/twidda/adapter/TrendAdapter.java @@ -14,7 +14,7 @@ import androidx.recyclerview.widget.RecyclerView.ViewHolder; import org.nuclearfog.twidda.R; import org.nuclearfog.twidda.backend.items.TwitterTrend; -import org.nuclearfog.twidda.backend.tools.FontTool; +import org.nuclearfog.twidda.backend.utils.FontTool; import org.nuclearfog.twidda.database.GlobalSettings; import java.text.NumberFormat; @@ -32,11 +32,11 @@ import static androidx.recyclerview.widget.RecyclerView.NO_POSITION; */ public class TrendAdapter extends Adapter { - private TrendClickListener itemClickListener; - private GlobalSettings settings; - private NumberFormat formatter; + private final TrendClickListener itemClickListener; + private final GlobalSettings settings; + private final NumberFormat formatter; - private List trends; + private final List trends; public TrendAdapter(TrendClickListener itemClickListener, GlobalSettings settings) { diff --git a/app/src/main/java/org/nuclearfog/twidda/adapter/TweetAdapter.java b/app/src/main/java/org/nuclearfog/twidda/adapter/TweetAdapter.java index 1c5d818d..d7a2472f 100644 --- a/app/src/main/java/org/nuclearfog/twidda/adapter/TweetAdapter.java +++ b/app/src/main/java/org/nuclearfog/twidda/adapter/TweetAdapter.java @@ -22,7 +22,7 @@ import org.nuclearfog.tag.Tagger; import org.nuclearfog.twidda.R; import org.nuclearfog.twidda.backend.items.Tweet; import org.nuclearfog.twidda.backend.items.TwitterUser; -import org.nuclearfog.twidda.backend.tools.FontTool; +import org.nuclearfog.twidda.backend.utils.FontTool; import org.nuclearfog.twidda.database.GlobalSettings; import java.text.NumberFormat; @@ -33,7 +33,7 @@ import static android.view.View.INVISIBLE; import static android.view.View.VISIBLE; import static androidx.recyclerview.widget.RecyclerView.NO_ID; import static androidx.recyclerview.widget.RecyclerView.NO_POSITION; -import static org.nuclearfog.twidda.backend.tools.TimeString.getTimeString; +import static org.nuclearfog.twidda.backend.utils.TimeString.getTimeString; /** * Adapter class for tweet list @@ -47,12 +47,12 @@ public class TweetAdapter extends Adapter { private static final int VIEW_GAP = 1; private static final int MIN_COUNT = 2; - private TweetClickListener itemClickListener; - private NumberFormat formatter; - private GlobalSettings settings; + private final TweetClickListener itemClickListener; + private final NumberFormat formatter; + private final GlobalSettings settings; private int loadingIndex; - private List tweets; + private final List tweets; public TweetAdapter(TweetClickListener itemClickListener, GlobalSettings settings) { diff --git a/app/src/main/java/org/nuclearfog/twidda/adapter/UserAdapter.java b/app/src/main/java/org/nuclearfog/twidda/adapter/UserAdapter.java index 715b5853..32358fca 100644 --- a/app/src/main/java/org/nuclearfog/twidda/adapter/UserAdapter.java +++ b/app/src/main/java/org/nuclearfog/twidda/adapter/UserAdapter.java @@ -20,7 +20,7 @@ import com.squareup.picasso.Picasso; import org.nuclearfog.twidda.R; import org.nuclearfog.twidda.backend.holder.UserListHolder; import org.nuclearfog.twidda.backend.items.TwitterUser; -import org.nuclearfog.twidda.backend.tools.FontTool; +import org.nuclearfog.twidda.backend.utils.FontTool; import org.nuclearfog.twidda.database.GlobalSettings; import java.util.ArrayList; @@ -42,10 +42,10 @@ public class UserAdapter extends Adapter { private static final int ITEM_USER = 0; private static final int ITEM_GAP = 1; - private UserClickListener itemClickListener; - private GlobalSettings settings; + private final UserClickListener itemClickListener; + private final GlobalSettings settings; - private List users; + private final List users; private long nextCursor; private int loadingIndex; diff --git a/app/src/main/java/org/nuclearfog/twidda/backend/tools/ErrorHandler.java b/app/src/main/java/org/nuclearfog/twidda/backend/utils/ErrorHandler.java similarity index 98% rename from app/src/main/java/org/nuclearfog/twidda/backend/tools/ErrorHandler.java rename to app/src/main/java/org/nuclearfog/twidda/backend/utils/ErrorHandler.java index f19fd990..16dbb9e1 100644 --- a/app/src/main/java/org/nuclearfog/twidda/backend/tools/ErrorHandler.java +++ b/app/src/main/java/org/nuclearfog/twidda/backend/utils/ErrorHandler.java @@ -1,4 +1,4 @@ -package org.nuclearfog.twidda.backend.tools; +package org.nuclearfog.twidda.backend.utils; import android.content.Context; import android.widget.Toast; diff --git a/app/src/main/java/org/nuclearfog/twidda/backend/tools/FontTool.java b/app/src/main/java/org/nuclearfog/twidda/backend/utils/FontTool.java similarity index 97% rename from app/src/main/java/org/nuclearfog/twidda/backend/tools/FontTool.java rename to app/src/main/java/org/nuclearfog/twidda/backend/utils/FontTool.java index 2d4fe89e..a564d57c 100644 --- a/app/src/main/java/org/nuclearfog/twidda/backend/tools/FontTool.java +++ b/app/src/main/java/org/nuclearfog/twidda/backend/utils/FontTool.java @@ -1,4 +1,4 @@ -package org.nuclearfog.twidda.backend.tools; +package org.nuclearfog.twidda.backend.utils; import android.view.View; import android.view.ViewGroup; diff --git a/app/src/main/java/org/nuclearfog/twidda/backend/tools/TimeString.java b/app/src/main/java/org/nuclearfog/twidda/backend/utils/TimeString.java similarity index 94% rename from app/src/main/java/org/nuclearfog/twidda/backend/tools/TimeString.java rename to app/src/main/java/org/nuclearfog/twidda/backend/utils/TimeString.java index 38418bdd..7ffce3b2 100644 --- a/app/src/main/java/org/nuclearfog/twidda/backend/tools/TimeString.java +++ b/app/src/main/java/org/nuclearfog/twidda/backend/utils/TimeString.java @@ -1,4 +1,4 @@ -package org.nuclearfog.twidda.backend.tools; +package org.nuclearfog.twidda.backend.utils; import java.text.SimpleDateFormat; import java.util.Date; diff --git a/app/src/main/java/org/nuclearfog/twidda/fragment/ListFragment.java b/app/src/main/java/org/nuclearfog/twidda/fragment/ListFragment.java index fdd6d3ec..a28d951f 100644 --- a/app/src/main/java/org/nuclearfog/twidda/fragment/ListFragment.java +++ b/app/src/main/java/org/nuclearfog/twidda/fragment/ListFragment.java @@ -26,7 +26,7 @@ import org.nuclearfog.twidda.adapter.ListAdapter.ListClickListener; import org.nuclearfog.twidda.backend.TwitterListLoader; import org.nuclearfog.twidda.backend.engine.EngineException; import org.nuclearfog.twidda.backend.items.TwitterList; -import org.nuclearfog.twidda.backend.tools.ErrorHandler; +import org.nuclearfog.twidda.backend.utils.ErrorHandler; import org.nuclearfog.twidda.database.GlobalSettings; import java.util.List; diff --git a/app/src/main/java/org/nuclearfog/twidda/fragment/MessageFragment.java b/app/src/main/java/org/nuclearfog/twidda/fragment/MessageFragment.java index 944a3535..8a017ed0 100644 --- a/app/src/main/java/org/nuclearfog/twidda/fragment/MessageFragment.java +++ b/app/src/main/java/org/nuclearfog/twidda/fragment/MessageFragment.java @@ -30,7 +30,7 @@ import org.nuclearfog.twidda.backend.MessageListLoader; import org.nuclearfog.twidda.backend.TrendListLoader; import org.nuclearfog.twidda.backend.engine.EngineException; import org.nuclearfog.twidda.backend.items.Message; -import org.nuclearfog.twidda.backend.tools.ErrorHandler; +import org.nuclearfog.twidda.backend.utils.ErrorHandler; import org.nuclearfog.twidda.database.GlobalSettings; import java.util.List; diff --git a/app/src/main/java/org/nuclearfog/twidda/fragment/TrendFragment.java b/app/src/main/java/org/nuclearfog/twidda/fragment/TrendFragment.java index cbbfdddd..46e729e0 100644 --- a/app/src/main/java/org/nuclearfog/twidda/fragment/TrendFragment.java +++ b/app/src/main/java/org/nuclearfog/twidda/fragment/TrendFragment.java @@ -22,7 +22,7 @@ import org.nuclearfog.twidda.adapter.TrendAdapter.TrendClickListener; import org.nuclearfog.twidda.backend.TrendListLoader; import org.nuclearfog.twidda.backend.engine.EngineException; import org.nuclearfog.twidda.backend.items.TwitterTrend; -import org.nuclearfog.twidda.backend.tools.ErrorHandler; +import org.nuclearfog.twidda.backend.utils.ErrorHandler; import org.nuclearfog.twidda.database.GlobalSettings; import java.util.List; diff --git a/app/src/main/java/org/nuclearfog/twidda/fragment/TweetFragment.java b/app/src/main/java/org/nuclearfog/twidda/fragment/TweetFragment.java index b3d14b26..b5bf8e1b 100644 --- a/app/src/main/java/org/nuclearfog/twidda/fragment/TweetFragment.java +++ b/app/src/main/java/org/nuclearfog/twidda/fragment/TweetFragment.java @@ -23,7 +23,7 @@ import org.nuclearfog.twidda.backend.TweetListLoader; import org.nuclearfog.twidda.backend.TweetListLoader.Action; import org.nuclearfog.twidda.backend.engine.EngineException; import org.nuclearfog.twidda.backend.items.Tweet; -import org.nuclearfog.twidda.backend.tools.ErrorHandler; +import org.nuclearfog.twidda.backend.utils.ErrorHandler; import org.nuclearfog.twidda.database.GlobalSettings; import java.util.List; diff --git a/app/src/main/java/org/nuclearfog/twidda/fragment/UserFragment.java b/app/src/main/java/org/nuclearfog/twidda/fragment/UserFragment.java index 50bb2f40..58a14cf8 100644 --- a/app/src/main/java/org/nuclearfog/twidda/fragment/UserFragment.java +++ b/app/src/main/java/org/nuclearfog/twidda/fragment/UserFragment.java @@ -24,7 +24,7 @@ import org.nuclearfog.twidda.backend.UserListLoader.Action; import org.nuclearfog.twidda.backend.engine.EngineException; import org.nuclearfog.twidda.backend.holder.UserListHolder; import org.nuclearfog.twidda.backend.items.TwitterUser; -import org.nuclearfog.twidda.backend.tools.ErrorHandler; +import org.nuclearfog.twidda.backend.utils.ErrorHandler; import org.nuclearfog.twidda.database.GlobalSettings; import static android.os.AsyncTask.Status.FINISHED; diff --git a/app/src/main/res/layout/page_tweet.xml b/app/src/main/res/layout/page_tweet.xml index 54b1671f..907d51ac 100644 --- a/app/src/main/res/layout/page_tweet.xml +++ b/app/src/main/res/layout/page_tweet.xml @@ -1,265 +1,273 @@ - - + android:layout_height="@dimen/tweet_toolbar_height" /> - + + + android:layout_height="wrap_content" + android:background="@android:color/transparent"> - - - + app:layout_scrollFlags="scroll|exitUntilCollapsed"> + android:orientation="vertical"> - - - - - - + android:layout_height="match_parent" + android:orientation="vertical" + android:paddingLeft="@dimen/tweet_layout_margin" + android:paddingRight="@dimen/tweet_layout_margin" + android:visibility="invisible"> + android:orientation="horizontal"> - + + + + + + + android:layout_marginStart="@dimen/tweet_layout_margin" + android:layout_marginLeft="@dimen/tweet_layout_margin" + android:layout_marginBottom="@dimen/tweet_layout_margin" + android:gravity="center" + android:orientation="vertical"> - + - + + + + + - - -