Tiny layout improvements

This commit is contained in:
ByteHamster 2019-11-15 10:43:26 +01:00
parent 559cdf577c
commit 4336c10fb1
2 changed files with 8 additions and 2 deletions

View File

@ -22,6 +22,7 @@ import android.widget.ImageView;
import android.widget.ProgressBar; import android.widget.ProgressBar;
import android.widget.TextView; import android.widget.TextView;
import android.widget.Toast; import android.widget.Toast;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable; import androidx.annotation.Nullable;
import androidx.core.content.ContextCompat; import androidx.core.content.ContextCompat;
import androidx.fragment.app.Fragment; import androidx.fragment.app.Fragment;
@ -208,6 +209,12 @@ public class ItemFragment extends Fragment {
return layout; return layout;
} }
@Override
public void onViewCreated(@NonNull View view, @Nullable Bundle savedInstanceState) {
super.onViewCreated(view, savedInstanceState);
load();
}
@Override @Override
public void onActivityCreated(@Nullable Bundle savedInstanceState) { public void onActivityCreated(@Nullable Bundle savedInstanceState) {
super.onActivityCreated(savedInstanceState); super.onActivityCreated(savedInstanceState);
@ -217,7 +224,6 @@ public class ItemFragment extends Fragment {
public void onStart() { public void onStart() {
super.onStart(); super.onStart();
EventBus.getDefault().register(this); EventBus.getDefault().register(this);
load();
} }
@Override @Override

View File

@ -52,7 +52,7 @@ public class Timeline {
+ "a.timecode {" + "a.timecode {"
+ "color: #669900;" + "color: #669900;"
+ "}" + "}"
+ "img {" + "img, iframe {"
+ "display: block;" + "display: block;"
+ "margin: 10 auto;" + "margin: 10 auto;"
+ "max-width: %s;" + "max-width: %s;"