Theme improvements
This commit is contained in:
parent
da887298df
commit
03222e742c
|
@ -257,13 +257,11 @@ public class FragmentMastodonTimeline extends Fragment implements StatusAdapter.
|
||||||
if (!isViewInitialized) {
|
if (!isViewInitialized) {
|
||||||
if (slug != null && slugOfFirstFragment != null) {
|
if (slug != null && slugOfFirstFragment != null) {
|
||||||
isViewInitialized = slug.compareTo(slugOfFirstFragment) == 0;
|
isViewInitialized = slug.compareTo(slugOfFirstFragment) == 0;
|
||||||
} else {
|
} else if (timelineType != null) {
|
||||||
isViewInitialized = timelineType.compareTo(Timeline.TimeLineEnum.HOME) == 0;
|
isViewInitialized = timelineType.compareTo(Timeline.TimeLineEnum.HOME) == 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
SharedPreferences sharedpreferences = PreferenceManager.getDefaultSharedPreferences(requireActivity());
|
SharedPreferences sharedpreferences = PreferenceManager.getDefaultSharedPreferences(requireActivity());
|
||||||
//Retrieve the max_id to keep position
|
|
||||||
|
|
||||||
|
|
||||||
LocalBroadcastManager.getInstance(requireActivity()).registerReceiver(receive_action, new IntentFilter(Helper.RECEIVE_STATUS_ACTION));
|
LocalBroadcastManager.getInstance(requireActivity()).registerReceiver(receive_action, new IntentFilter(Helper.RECEIVE_STATUS_ACTION));
|
||||||
binding = FragmentPaginationBinding.inflate(inflater, container, false);
|
binding = FragmentPaginationBinding.inflate(inflater, container, false);
|
||||||
|
@ -548,7 +546,7 @@ public class FragmentMastodonTimeline extends Fragment implements StatusAdapter.
|
||||||
* @param direction - DIRECTION null if first call, then is set to TOP or BOTTOM depending of scroll
|
* @param direction - DIRECTION null if first call, then is set to TOP or BOTTOM depending of scroll
|
||||||
*/
|
*/
|
||||||
private void routeCommon(DIRECTION direction, boolean fetchingMissing, Status status) {
|
private void routeCommon(DIRECTION direction, boolean fetchingMissing, Status status) {
|
||||||
if (direction == null && !isViewInitialized) {
|
if (direction == null && !isViewInitialized && slug != null && slugOfFirstFragment != null) {
|
||||||
isViewInitialized = slug.compareTo(slugOfFirstFragment) == 0;
|
isViewInitialized = slug.compareTo(slugOfFirstFragment) == 0;
|
||||||
}
|
}
|
||||||
if (binding == null || getActivity() == null || !isAdded()) {
|
if (binding == null || getActivity() == null || !isAdded()) {
|
||||||
|
|
|
@ -100,6 +100,7 @@
|
||||||
android:visibility="gone">
|
android:visibility="gone">
|
||||||
|
|
||||||
<ProgressBar
|
<ProgressBar
|
||||||
|
android:indeterminateTint="@color/cyanea_accent_dark_reference"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:indeterminate="true" />
|
android:indeterminate="true" />
|
||||||
|
|
|
@ -54,6 +54,7 @@
|
||||||
app:strokeWidth="1dp" />
|
app:strokeWidth="1dp" />
|
||||||
|
|
||||||
<ProgressBar
|
<ProgressBar
|
||||||
|
android:indeterminateTint="@color/cyanea_accent_dark_reference"
|
||||||
android:id="@+id/header_progress"
|
android:id="@+id/header_progress"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
|
@ -108,6 +109,7 @@
|
||||||
app:strokeWidth="1dp" />
|
app:strokeWidth="1dp" />
|
||||||
|
|
||||||
<ProgressBar
|
<ProgressBar
|
||||||
|
android:indeterminateTint="@color/cyanea_accent_dark_reference"
|
||||||
android:id="@+id/avatar_progress"
|
android:id="@+id/avatar_progress"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
|
|
|
@ -38,6 +38,7 @@
|
||||||
android:visibility="gone">
|
android:visibility="gone">
|
||||||
|
|
||||||
<ProgressBar
|
<ProgressBar
|
||||||
|
android:indeterminateTint="@color/cyanea_accent_dark_reference"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:indeterminate="true" />
|
android:indeterminate="true" />
|
||||||
|
|
|
@ -126,6 +126,7 @@
|
||||||
tools:visibility="visible">
|
tools:visibility="visible">
|
||||||
|
|
||||||
<ProgressBar
|
<ProgressBar
|
||||||
|
android:indeterminateTint="@color/cyanea_accent_dark_reference"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:indeterminate="true" />
|
android:indeterminate="true" />
|
||||||
|
|
|
@ -187,6 +187,7 @@
|
||||||
</ScrollView>
|
</ScrollView>
|
||||||
|
|
||||||
<ProgressBar
|
<ProgressBar
|
||||||
|
android:indeterminateTint="@color/cyanea_accent_dark_reference"
|
||||||
android:id="@+id/loader"
|
android:id="@+id/loader"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
|
|
|
@ -123,6 +123,7 @@
|
||||||
android:gravity="center">
|
android:gravity="center">
|
||||||
|
|
||||||
<ProgressBar
|
<ProgressBar
|
||||||
|
android:indeterminateTint="@color/cyanea_accent_dark_reference"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:indeterminate="true" />
|
android:indeterminate="true" />
|
||||||
|
|
|
@ -89,6 +89,7 @@
|
||||||
android:gravity="bottom|center_horizontal">
|
android:gravity="bottom|center_horizontal">
|
||||||
|
|
||||||
<ProgressBar
|
<ProgressBar
|
||||||
|
android:indeterminateTint="@color/cyanea_accent_dark_reference"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:indeterminate="true" />
|
android:indeterminate="true" />
|
||||||
|
|
|
@ -64,6 +64,7 @@
|
||||||
app:layout_behavior="@string/appbar_scrolling_view_behavior">
|
app:layout_behavior="@string/appbar_scrolling_view_behavior">
|
||||||
|
|
||||||
<ProgressBar
|
<ProgressBar
|
||||||
|
android:indeterminateTint="@color/cyanea_accent_dark_reference"
|
||||||
android:id="@+id/progress_bar"
|
android:id="@+id/progress_bar"
|
||||||
style="?android:attr/progressBarStyleHorizontal"
|
style="?android:attr/progressBarStyleHorizontal"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
|
|
|
@ -25,6 +25,7 @@
|
||||||
android:orientation="vertical">
|
android:orientation="vertical">
|
||||||
|
|
||||||
<ProgressBar
|
<ProgressBar
|
||||||
|
android:indeterminateTint="@color/cyanea_accent_dark_reference"
|
||||||
android:id="@+id/progress_bar"
|
android:id="@+id/progress_bar"
|
||||||
style="?android:attr/progressBarStyleHorizontal"
|
style="?android:attr/progressBarStyleHorizontal"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
|
|
|
@ -175,6 +175,7 @@
|
||||||
tools:ignore="HardcodedText" />
|
tools:ignore="HardcodedText" />
|
||||||
|
|
||||||
<ProgressBar
|
<ProgressBar
|
||||||
|
android:indeterminateTint="@color/cyanea_accent_dark_reference"
|
||||||
android:id="@+id/character_progress"
|
android:id="@+id/character_progress"
|
||||||
style="@style/Widget.AppCompat.ProgressBar.Horizontal"
|
style="@style/Widget.AppCompat.ProgressBar.Horizontal"
|
||||||
android:layout_width="48dp"
|
android:layout_width="48dp"
|
||||||
|
|
|
@ -68,6 +68,7 @@
|
||||||
android:visibility="gone">
|
android:visibility="gone">
|
||||||
|
|
||||||
<ProgressBar
|
<ProgressBar
|
||||||
|
android:indeterminateTint="@color/cyanea_accent_dark_reference"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:indeterminate="true" />
|
android:indeterminate="true" />
|
||||||
|
@ -85,6 +86,7 @@
|
||||||
android:visibility="gone">
|
android:visibility="gone">
|
||||||
|
|
||||||
<ProgressBar
|
<ProgressBar
|
||||||
|
android:indeterminateTint="@color/cyanea_accent_dark_reference"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:indeterminate="true" />
|
android:indeterminate="true" />
|
||||||
|
|
|
@ -59,6 +59,7 @@
|
||||||
android:visibility="gone">
|
android:visibility="gone">
|
||||||
|
|
||||||
<ProgressBar
|
<ProgressBar
|
||||||
|
android:indeterminateTint="@color/cyanea_accent_dark_reference"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:indeterminate="true" />
|
android:indeterminate="true" />
|
||||||
|
|
|
@ -26,6 +26,7 @@
|
||||||
android:gravity="center">
|
android:gravity="center">
|
||||||
|
|
||||||
<ProgressBar
|
<ProgressBar
|
||||||
|
android:indeterminateTint="@color/cyanea_accent_dark_reference"
|
||||||
android:id="@+id/pbar_inf"
|
android:id="@+id/pbar_inf"
|
||||||
style="@style/Base.Widget.AppCompat.ProgressBar.Horizontal"
|
style="@style/Base.Widget.AppCompat.ProgressBar.Horizontal"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
|
|
|
@ -46,6 +46,7 @@
|
||||||
</androidx.appcompat.widget.LinearLayoutCompat>
|
</androidx.appcompat.widget.LinearLayoutCompat>
|
||||||
|
|
||||||
<ProgressBar
|
<ProgressBar
|
||||||
|
android:indeterminateTint="@color/cyanea_accent_dark_reference"
|
||||||
android:id="@+id/poll_item_value"
|
android:id="@+id/poll_item_value"
|
||||||
style="?android:attr/progressBarStyleHorizontal"
|
style="?android:attr/progressBarStyleHorizontal"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
|
|
|
@ -19,6 +19,7 @@
|
||||||
android:gravity="center">
|
android:gravity="center">
|
||||||
|
|
||||||
<ProgressBar
|
<ProgressBar
|
||||||
|
android:indeterminateTint="@color/cyanea_accent_dark_reference"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:indeterminate="true" />
|
android:indeterminate="true" />
|
||||||
|
|
|
@ -32,6 +32,7 @@
|
||||||
android:gravity="center">
|
android:gravity="center">
|
||||||
|
|
||||||
<ProgressBar
|
<ProgressBar
|
||||||
|
android:indeterminateTint="@color/cyanea_accent_dark_reference"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:indeterminate="true" />
|
android:indeterminate="true" />
|
||||||
|
|
Loading…
Reference in New Issue