Theme improvements

This commit is contained in:
Thomas 2022-10-22 16:39:43 +02:00
parent da887298df
commit 03222e742c
17 changed files with 20 additions and 4 deletions

View File

@ -257,13 +257,11 @@ public class FragmentMastodonTimeline extends Fragment implements StatusAdapter.
if (!isViewInitialized) {
if (slug != null && slugOfFirstFragment != null) {
isViewInitialized = slug.compareTo(slugOfFirstFragment) == 0;
} else {
} else if (timelineType != null) {
isViewInitialized = timelineType.compareTo(Timeline.TimeLineEnum.HOME) == 0;
}
}
SharedPreferences sharedpreferences = PreferenceManager.getDefaultSharedPreferences(requireActivity());
//Retrieve the max_id to keep position
LocalBroadcastManager.getInstance(requireActivity()).registerReceiver(receive_action, new IntentFilter(Helper.RECEIVE_STATUS_ACTION));
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
*/
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;
}
if (binding == null || getActivity() == null || !isAdded()) {

View File

@ -100,6 +100,7 @@
android:visibility="gone">
<ProgressBar
android:indeterminateTint="@color/cyanea_accent_dark_reference"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:indeterminate="true" />

View File

@ -54,6 +54,7 @@
app:strokeWidth="1dp" />
<ProgressBar
android:indeterminateTint="@color/cyanea_accent_dark_reference"
android:id="@+id/header_progress"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
@ -108,6 +109,7 @@
app:strokeWidth="1dp" />
<ProgressBar
android:indeterminateTint="@color/cyanea_accent_dark_reference"
android:id="@+id/avatar_progress"
android:layout_width="wrap_content"
android:layout_height="wrap_content"

View File

@ -38,6 +38,7 @@
android:visibility="gone">
<ProgressBar
android:indeterminateTint="@color/cyanea_accent_dark_reference"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:indeterminate="true" />

View File

@ -126,6 +126,7 @@
tools:visibility="visible">
<ProgressBar
android:indeterminateTint="@color/cyanea_accent_dark_reference"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:indeterminate="true" />

View File

@ -187,6 +187,7 @@
</ScrollView>
<ProgressBar
android:indeterminateTint="@color/cyanea_accent_dark_reference"
android:id="@+id/loader"
android:layout_width="wrap_content"
android:layout_height="wrap_content"

View File

@ -123,6 +123,7 @@
android:gravity="center">
<ProgressBar
android:indeterminateTint="@color/cyanea_accent_dark_reference"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:indeterminate="true" />

View File

@ -89,6 +89,7 @@
android:gravity="bottom|center_horizontal">
<ProgressBar
android:indeterminateTint="@color/cyanea_accent_dark_reference"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:indeterminate="true" />

View File

@ -64,6 +64,7 @@
app:layout_behavior="@string/appbar_scrolling_view_behavior">
<ProgressBar
android:indeterminateTint="@color/cyanea_accent_dark_reference"
android:id="@+id/progress_bar"
style="?android:attr/progressBarStyleHorizontal"
android:layout_width="match_parent"

View File

@ -25,6 +25,7 @@
android:orientation="vertical">
<ProgressBar
android:indeterminateTint="@color/cyanea_accent_dark_reference"
android:id="@+id/progress_bar"
style="?android:attr/progressBarStyleHorizontal"
android:layout_width="match_parent"

View File

@ -175,6 +175,7 @@
tools:ignore="HardcodedText" />
<ProgressBar
android:indeterminateTint="@color/cyanea_accent_dark_reference"
android:id="@+id/character_progress"
style="@style/Widget.AppCompat.ProgressBar.Horizontal"
android:layout_width="48dp"

View File

@ -68,6 +68,7 @@
android:visibility="gone">
<ProgressBar
android:indeterminateTint="@color/cyanea_accent_dark_reference"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:indeterminate="true" />
@ -85,6 +86,7 @@
android:visibility="gone">
<ProgressBar
android:indeterminateTint="@color/cyanea_accent_dark_reference"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:indeterminate="true" />

View File

@ -59,6 +59,7 @@
android:visibility="gone">
<ProgressBar
android:indeterminateTint="@color/cyanea_accent_dark_reference"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:indeterminate="true" />

View File

@ -26,6 +26,7 @@
android:gravity="center">
<ProgressBar
android:indeterminateTint="@color/cyanea_accent_dark_reference"
android:id="@+id/pbar_inf"
style="@style/Base.Widget.AppCompat.ProgressBar.Horizontal"
android:layout_width="match_parent"

View File

@ -46,6 +46,7 @@
</androidx.appcompat.widget.LinearLayoutCompat>
<ProgressBar
android:indeterminateTint="@color/cyanea_accent_dark_reference"
android:id="@+id/poll_item_value"
style="?android:attr/progressBarStyleHorizontal"
android:layout_width="match_parent"

View File

@ -19,6 +19,7 @@
android:gravity="center">
<ProgressBar
android:indeterminateTint="@color/cyanea_accent_dark_reference"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:indeterminate="true" />

View File

@ -32,6 +32,7 @@
android:gravity="center">
<ProgressBar
android:indeterminateTint="@color/cyanea_accent_dark_reference"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:indeterminate="true" />