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 (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()) {
|
||||
|
|
|
@ -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" />
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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" />
|
||||
|
|
|
@ -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" />
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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" />
|
||||
|
|
|
@ -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" />
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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" />
|
||||
|
|
|
@ -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" />
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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" />
|
||||
|
|
|
@ -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" />
|
||||
|
|
Loading…
Reference in New Issue