mirror of
https://codeberg.org/gitnex/GitNex.git
synced 2024-12-26 16:04:07 +08:00
markdown code cleanup
This commit is contained in:
parent
5503fe9951
commit
3c8fb5bc60
@ -320,12 +320,20 @@ public class IssueDetailActivity extends AppCompatActivity {
|
|||||||
return Collections.singleton("drawable");
|
return Collections.singleton("drawable");
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
plugin.placeholderProvider(new ImagesPlugin.PlaceholderProvider() {
|
||||||
|
@Nullable
|
||||||
|
@Override
|
||||||
|
public Drawable providePlaceholder(@NonNull AsyncDrawable drawable) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
});
|
||||||
plugin.addMediaDecoder(GifMediaDecoder.create(false));
|
plugin.addMediaDecoder(GifMediaDecoder.create(false));
|
||||||
plugin.addMediaDecoder(SvgMediaDecoder.create(getApplicationContext().getResources()));
|
plugin.addMediaDecoder(SvgMediaDecoder.create(getApplicationContext().getResources()));
|
||||||
plugin.addMediaDecoder(SvgMediaDecoder.create());
|
plugin.addMediaDecoder(SvgMediaDecoder.create());
|
||||||
plugin.defaultMediaDecoder(DefaultMediaDecoder.create(getApplicationContext().getResources()));
|
plugin.defaultMediaDecoder(DefaultMediaDecoder.create(getApplicationContext().getResources()));
|
||||||
plugin.defaultMediaDecoder(DefaultMediaDecoder.create());
|
plugin.defaultMediaDecoder(DefaultMediaDecoder.create());
|
||||||
}
|
}
|
||||||
|
|
||||||
}))
|
}))
|
||||||
.usePlugin(new AbstractMarkwonPlugin() {
|
.usePlugin(new AbstractMarkwonPlugin() {
|
||||||
@Override
|
@Override
|
||||||
@ -336,18 +344,6 @@ public class IssueDetailActivity extends AppCompatActivity {
|
|||||||
.linkColor(getResources().getColor(R.color.lightBlue));
|
.linkColor(getResources().getColor(R.color.lightBlue));
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.usePlugin(ImagesPlugin.create(new ImagesPlugin.ImagesConfigure() {
|
|
||||||
@Override
|
|
||||||
public void configureImages(@NonNull ImagesPlugin plugin) {
|
|
||||||
plugin.placeholderProvider(new ImagesPlugin.PlaceholderProvider() {
|
|
||||||
@Nullable
|
|
||||||
@Override
|
|
||||||
public Drawable providePlaceholder(@NonNull AsyncDrawable drawable) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
}))
|
|
||||||
.usePlugin(TablePlugin.create(getApplicationContext()))
|
.usePlugin(TablePlugin.create(getApplicationContext()))
|
||||||
.usePlugin(TaskListPlugin.create(getApplicationContext()))
|
.usePlugin(TaskListPlugin.create(getApplicationContext()))
|
||||||
.usePlugin(HtmlPlugin.create())
|
.usePlugin(HtmlPlugin.create())
|
||||||
|
@ -212,6 +212,13 @@ public class IssueCommentsAdapter extends RecyclerView.Adapter<IssueCommentsAdap
|
|||||||
return Collections.singleton("drawable");
|
return Collections.singleton("drawable");
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
plugin.placeholderProvider(new ImagesPlugin.PlaceholderProvider() {
|
||||||
|
@Nullable
|
||||||
|
@Override
|
||||||
|
public Drawable providePlaceholder(@NonNull AsyncDrawable drawable) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
});
|
||||||
plugin.addMediaDecoder(GifMediaDecoder.create(false));
|
plugin.addMediaDecoder(GifMediaDecoder.create(false));
|
||||||
plugin.addMediaDecoder(SvgMediaDecoder.create(mCtx.getResources()));
|
plugin.addMediaDecoder(SvgMediaDecoder.create(mCtx.getResources()));
|
||||||
plugin.addMediaDecoder(SvgMediaDecoder.create());
|
plugin.addMediaDecoder(SvgMediaDecoder.create());
|
||||||
@ -228,18 +235,6 @@ public class IssueCommentsAdapter extends RecyclerView.Adapter<IssueCommentsAdap
|
|||||||
.linkColor(mCtx.getResources().getColor(R.color.lightBlue));
|
.linkColor(mCtx.getResources().getColor(R.color.lightBlue));
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.usePlugin(ImagesPlugin.create(new ImagesPlugin.ImagesConfigure() {
|
|
||||||
@Override
|
|
||||||
public void configureImages(@NonNull ImagesPlugin plugin) {
|
|
||||||
plugin.placeholderProvider(new ImagesPlugin.PlaceholderProvider() {
|
|
||||||
@Nullable
|
|
||||||
@Override
|
|
||||||
public Drawable providePlaceholder(@NonNull AsyncDrawable drawable) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
}))
|
|
||||||
.usePlugin(TablePlugin.create(mCtx))
|
.usePlugin(TablePlugin.create(mCtx))
|
||||||
.usePlugin(TaskListPlugin.create(mCtx))
|
.usePlugin(TaskListPlugin.create(mCtx))
|
||||||
.usePlugin(HtmlPlugin.create())
|
.usePlugin(HtmlPlugin.create())
|
||||||
|
@ -150,6 +150,13 @@ public class MilestonesAdapter extends RecyclerView.Adapter<MilestonesAdapter.Mi
|
|||||||
return Collections.singleton("drawable");
|
return Collections.singleton("drawable");
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
plugin.placeholderProvider(new ImagesPlugin.PlaceholderProvider() {
|
||||||
|
@Nullable
|
||||||
|
@Override
|
||||||
|
public Drawable providePlaceholder(@NonNull AsyncDrawable drawable) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
});
|
||||||
plugin.addMediaDecoder(GifMediaDecoder.create(false));
|
plugin.addMediaDecoder(GifMediaDecoder.create(false));
|
||||||
plugin.addMediaDecoder(SvgMediaDecoder.create(mCtx.getResources()));
|
plugin.addMediaDecoder(SvgMediaDecoder.create(mCtx.getResources()));
|
||||||
plugin.addMediaDecoder(SvgMediaDecoder.create());
|
plugin.addMediaDecoder(SvgMediaDecoder.create());
|
||||||
@ -166,18 +173,6 @@ public class MilestonesAdapter extends RecyclerView.Adapter<MilestonesAdapter.Mi
|
|||||||
.linkColor(mCtx.getResources().getColor(R.color.lightBlue));
|
.linkColor(mCtx.getResources().getColor(R.color.lightBlue));
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.usePlugin(ImagesPlugin.create(new ImagesPlugin.ImagesConfigure() {
|
|
||||||
@Override
|
|
||||||
public void configureImages(@NonNull ImagesPlugin plugin) {
|
|
||||||
plugin.placeholderProvider(new ImagesPlugin.PlaceholderProvider() {
|
|
||||||
@Nullable
|
|
||||||
@Override
|
|
||||||
public Drawable providePlaceholder(@NonNull AsyncDrawable drawable) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
}))
|
|
||||||
.usePlugin(TablePlugin.create(mCtx))
|
.usePlugin(TablePlugin.create(mCtx))
|
||||||
.usePlugin(TaskListPlugin.create(mCtx))
|
.usePlugin(TaskListPlugin.create(mCtx))
|
||||||
.usePlugin(HtmlPlugin.create())
|
.usePlugin(HtmlPlugin.create())
|
||||||
|
@ -152,6 +152,13 @@ public class ReleasesAdapter extends RecyclerView.Adapter<ReleasesAdapter.Releas
|
|||||||
return Collections.singleton("drawable");
|
return Collections.singleton("drawable");
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
plugin.placeholderProvider(new ImagesPlugin.PlaceholderProvider() {
|
||||||
|
@Nullable
|
||||||
|
@Override
|
||||||
|
public Drawable providePlaceholder(@NonNull AsyncDrawable drawable) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
});
|
||||||
plugin.addMediaDecoder(GifMediaDecoder.create(false));
|
plugin.addMediaDecoder(GifMediaDecoder.create(false));
|
||||||
plugin.addMediaDecoder(SvgMediaDecoder.create(mCtx.getResources()));
|
plugin.addMediaDecoder(SvgMediaDecoder.create(mCtx.getResources()));
|
||||||
plugin.addMediaDecoder(SvgMediaDecoder.create());
|
plugin.addMediaDecoder(SvgMediaDecoder.create());
|
||||||
@ -168,18 +175,6 @@ public class ReleasesAdapter extends RecyclerView.Adapter<ReleasesAdapter.Releas
|
|||||||
.linkColor(mCtx.getResources().getColor(R.color.lightBlue));
|
.linkColor(mCtx.getResources().getColor(R.color.lightBlue));
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.usePlugin(ImagesPlugin.create(new ImagesPlugin.ImagesConfigure() {
|
|
||||||
@Override
|
|
||||||
public void configureImages(@NonNull ImagesPlugin plugin) {
|
|
||||||
plugin.placeholderProvider(new ImagesPlugin.PlaceholderProvider() {
|
|
||||||
@Nullable
|
|
||||||
@Override
|
|
||||||
public Drawable providePlaceholder(@NonNull AsyncDrawable drawable) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
}))
|
|
||||||
.usePlugin(TablePlugin.create(mCtx))
|
.usePlugin(TablePlugin.create(mCtx))
|
||||||
.usePlugin(TaskListPlugin.create(mCtx))
|
.usePlugin(TaskListPlugin.create(mCtx))
|
||||||
.usePlugin(HtmlPlugin.create())
|
.usePlugin(HtmlPlugin.create())
|
||||||
|
@ -334,6 +334,13 @@ public class RepoInfoFragment extends Fragment {
|
|||||||
return Collections.singleton("drawable");
|
return Collections.singleton("drawable");
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
plugin.placeholderProvider(new ImagesPlugin.PlaceholderProvider() {
|
||||||
|
@Nullable
|
||||||
|
@Override
|
||||||
|
public Drawable providePlaceholder(@NonNull AsyncDrawable drawable) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
});
|
||||||
plugin.addMediaDecoder(GifMediaDecoder.create(false));
|
plugin.addMediaDecoder(GifMediaDecoder.create(false));
|
||||||
plugin.addMediaDecoder(SvgMediaDecoder.create(getContext().getResources()));
|
plugin.addMediaDecoder(SvgMediaDecoder.create(getContext().getResources()));
|
||||||
plugin.addMediaDecoder(SvgMediaDecoder.create());
|
plugin.addMediaDecoder(SvgMediaDecoder.create());
|
||||||
@ -350,18 +357,6 @@ public class RepoInfoFragment extends Fragment {
|
|||||||
.linkColor(getResources().getColor(R.color.lightBlue));
|
.linkColor(getResources().getColor(R.color.lightBlue));
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.usePlugin(ImagesPlugin.create(new ImagesPlugin.ImagesConfigure() {
|
|
||||||
@Override
|
|
||||||
public void configureImages(@NonNull ImagesPlugin plugin) {
|
|
||||||
plugin.placeholderProvider(new ImagesPlugin.PlaceholderProvider() {
|
|
||||||
@Nullable
|
|
||||||
@Override
|
|
||||||
public Drawable providePlaceholder(@NonNull AsyncDrawable drawable) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
}))
|
|
||||||
.usePlugin(TablePlugin.create(getContext()))
|
.usePlugin(TablePlugin.create(getContext()))
|
||||||
.usePlugin(TaskListPlugin.create(getContext()))
|
.usePlugin(TaskListPlugin.create(getContext()))
|
||||||
.usePlugin(HtmlPlugin.create())
|
.usePlugin(HtmlPlugin.create())
|
||||||
|
Loading…
Reference in New Issue
Block a user