Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge 14.4 code freeze and release notes into master #11425

Merged
merged 60 commits into from
Mar 11, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
60 commits
Select commit Hold shift + click to select a range
103c411
Update Insights management control use case
planarvoid Dec 19, 2019
eef5024
New design for Insight management screen
planarvoid Dec 20, 2019
e82d873
Update FluxC version for updated default insights
planarvoid Dec 20, 2019
5c8c27a
Remove unused files
planarvoid Dec 20, 2019
178974c
Merge branch 'develop' into feature/insights-management-tweaks
planarvoid Jan 2, 2020
c110241
Rename string variable
planarvoid Jan 2, 2020
76dfaff
Hiding lazy loading preferences for unsupported sites.
khaykov Feb 20, 2020
db1aa4f
Add log template event method to EditorFragmentListener interface
mkevins Feb 21, 2020
0cea8be
Add gutenberg event listener to parameter list
mkevins Feb 21, 2020
45b2cf2
Implement anonymous gutenberg user event listener
mkevins Feb 21, 2020
fabf896
Implement log template event in EditPostActivity
mkevins Feb 21, 2020
d1bda1e
Add applyTemplate method to analytics session
mkevins Feb 21, 2020
2e0e4ca
Update gutenberg-mobile reference
mkevins Feb 21, 2020
71211bb
Merge branch 'develop' of https://github.com/wordpress-mobile/WordPre…
khaykov Feb 22, 2020
7d48076
Merge pull request #11372 from wordpress-mobile/merge/14.3-code-freez…
jkmassel Feb 24, 2020
0fdcdaa
Add template apply and preview to EditorFragmentListener interface
mkevins Feb 25, 2020
1d042d8
Add template apply and preview methods to gutenberg fragment
mkevins Feb 25, 2020
45afc7f
Add template apply and preview events to tracker
mkevins Feb 25, 2020
f762a79
Prevent logging null template payload
mkevins Feb 25, 2020
e093945
Update gutenberg-mobile reference
mkevins Feb 25, 2020
602261d
Use single method interface for logging gutenberg user events
mkevins Feb 25, 2020
dc36fd2
Update gutenberg-mobile reference
mkevins Feb 25, 2020
5cda9ec
Fix isMediaInGutenberg method
malinajirka Feb 25, 2020
c762d27
Update release notes
malinajirka Feb 25, 2020
1c10b6e
Linking to correct FluxC tag (based on FluxC RP 1460).
develric Feb 25, 2020
b5b74ee
Merge branch 'develop' into feature/insights-management-tweaks
develric Feb 25, 2020
f4cfa50
Update build.gradle
develric Feb 25, 2020
ddb3be8
Merge pull request #10995 from wordpress-mobile/feature/insights-mana…
develric Feb 25, 2020
59d3b59
Inject Nosara tracker through Dagger
oguzkocer Feb 25, 2020
93d27c8
Adds TrackerTestModule which provides a mocked tracker
oguzkocer Feb 26, 2020
82698be
Removes context parameter from TrackerTestModule
oguzkocer Feb 26, 2020
f6632e1
Remove unused Nosara tracker import from WordPress file
oguzkocer Feb 26, 2020
5ec9ebe
Update gutenberg-mobile reference
mkevins Feb 26, 2020
e80e6bb
Include common properties in preview and apply events
mkevins Feb 26, 2020
f11f8f0
Don't show the Block editor dialog after creating a new site
maxme Feb 26, 2020
99065d8
Default to block editor when mobile editor settings is empty
maxme Feb 26, 2020
390be7b
Update gutenberg-mobile reference
mkevins Feb 26, 2020
8a1f43e
Merge pull request #11344 from wordpress-mobile/issue/11021-remove-no…
malinajirka Feb 26, 2020
40f1172
Update gutenberg-mobile reference
mkevins Feb 26, 2020
36f5a37
Merge branch 'develop' into gutenberg/issue-1883-spt-metrics
mkevins Feb 26, 2020
63b7e1f
Update gutenberg mobil reference
chipsnyder Feb 26, 2020
d5687d5
Merge pull request #11362 from wordpress-mobile/gutenberg/issue-1883-…
Feb 26, 2020
10bb6a1
Merge pull request #11396 from wordpress-mobile/merge/14.3-release-no…
oguzkocer Feb 27, 2020
06002db
Merge pull request #11381 from wordpress-mobile/issue/disable-trackin…
jkmassel Feb 27, 2020
64ba843
Merge branch 'develop' into issue/remove-gutenberg-dialog-on-new-sites
maxme Feb 28, 2020
4ff75c3
Don't show the block editor dialog for new users
maxme Feb 28, 2020
4f01138
Update the local editor setting when enabling/disabling the block editor
maxme Feb 28, 2020
031e045
Merge pull request #11385 from wordpress-mobile/issue/remove-gutenber…
maxme Mar 2, 2020
d5fb57b
Merge pull request #11378 from wordpress-mobile/issue/10203-img-local…
malinajirka Mar 2, 2020
482a93e
Update Nokogiri to 1.10.9
oguzkocer Mar 9, 2020
74413a3
Merge pull request #11414 from wordpress-mobile/merge/14.3-final-to-d…
jkmassel Mar 9, 2020
0f8506c
Updates FluxC version to 1.6.7
oguzkocer Mar 9, 2020
09da08b
Merge pull request #11417 from wordpress-mobile/update/nokogiri
jkmassel Mar 9, 2020
0f7f9cf
Merge pull request #11418 from wordpress-mobile/update/fluxc-version
jkmassel Mar 9, 2020
59f49e4
Bump version number
oguzkocer Mar 9, 2020
4353c53
Update release notes.
oguzkocer Mar 9, 2020
1c7cf8b
Moves a release note to 14.4 where it belongs
oguzkocer Mar 9, 2020
ea3cd66
Update release notes in metadata for 14.4
oguzkocer Mar 10, 2020
0ed7af3
Update metadata strings
oguzkocer Mar 10, 2020
b7a514e
Merge remote-tracking branch 'origin/master' into merge/release-14.4-…
oguzkocer Mar 10, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ GEM
multipart-post (2.0.0)
nanaimo (0.2.6)
naturally (2.2.0)
nokogiri (1.10.5)
nokogiri (1.10.9)
mini_portile2 (~> 2.4.0)
octokit (4.14.0)
sawyer (~> 0.8.0, >= 0.5.3)
Expand Down Expand Up @@ -216,4 +216,4 @@ DEPENDENCIES
rmagick (~> 3.2.0)

BUNDLED WITH
2.1.1
2.1.4
4 changes: 4 additions & 0 deletions RELEASE-NOTES.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
14.5
-----

14.4
-----
* Fix an issue where image is sometimes uploaded with a path to local storage

14.3
-----
Expand Down
8 changes: 4 additions & 4 deletions WordPress/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@ android {
if (project.hasProperty("versionName")) {
versionName project.property("versionName")
} else {
versionName "alpha-211"
versionName "alpha-212"
}
versionCode 835
versionCode 838
minSdkVersion 21
targetSdkVersion 28

Expand All @@ -83,9 +83,9 @@ android {
dimension "buildType"
// Only set the release version if one isn't provided
if (!project.hasProperty("versionName")) {
versionName "14.3"
versionName "14.4-rc-1"
}
versionCode 836
versionCode 837
buildConfigField "boolean", "ME_ACTIVITY_AVAILABLE", "false"
}

Expand Down
21 changes: 8 additions & 13 deletions WordPress/metadata/PlayStoreStrings.po
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,14 @@ msgstr ""
"Project-Id-Version: Release Notes & Play Store Descriptions\n"

#. translators: Release notes for this version to be displayed in the Play Store. Limit to 500 characters including spaces and commas!
msgctxt "release_note_144"
msgid ""
"14.4:\n"
"One small fix: this release takes care of an issue that caused images to upload with wonky URLs, which made them inaccessible on your website.\n"
"\n"
"Wash your hands and stay safe, everyone.\n"
msgstr ""

msgctxt "release_note_143"
msgid ""
"14.3:\n"
Expand All @@ -21,19 +29,6 @@ msgid ""
"\n"
msgstr ""

msgctxt "release_note_142"
msgid ""
"14.2:\n"
"Lots of updates to the block editor:\n"
"\n"
"* Added a long-press icon for adding blocks before/after.\n"
"* App will try to display images when coming back online after a disconnection.\n"
"* Resolved issue with blank editor when trying to create a post with images or links from another app.\n"
"* Added image size options to the Gallery block.\n"
"* Fixed a bug that prevented paragraph blocks from merging.\n"
"\n"
msgstr ""

#. translators: Release notes for this version to be displayed in the Play Store. Limit to 500 characters including spaces and commas!
msgctxt "sample_post_content"
msgid "The best moment of any trip, for me, is when I first step foot off the plane. The whole of the trip is in front me, ripe with possibility."
Expand Down
7 changes: 3 additions & 4 deletions WordPress/metadata/release_notes.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
- Block editor additions: Added Button and Group blocks, and support for more options in Image and Gallery block settings.
- Block editor enhancements: Added scroll support inside block picker and block settings, and introduced a floating toolbar to make navigating blocks easier.
- Block editor fixes: Fixed issues around placeholder images during image upload, emojis in post titles, and text-wrapping in Shortcode blocks.
- Reader: Added tab filtering for better sites/tag navigation.
One small fix: this release takes care of an issue that caused images to upload with wonky URLs, which made them inaccessible on your website.

Wash your hands and stay safe, everyone.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ import javax.inject.Singleton
AndroidSupportInjectionModule::class,
ViewModelModule::class,
StatsModule::class,
TrackerTestModule::class,
// Login flow library
LoginAnalyticsModule::class,
LoginFragmentModule::class,
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
package org.wordpress.android.modules

import dagger.Module
import dagger.Provides
import org.mockito.Mockito
import org.wordpress.android.analytics.Tracker

@Module
class TrackerTestModule {
@Provides
fun provideTracker(): Tracker {
return Mockito.mock(Tracker::class.java)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
AndroidSupportInjectionModule.class,
ViewModelModule.class,
StatsModule.class,
TrackerModule.class,
// Login flow library
LoginAnalyticsModule.class,
LoginFragmentModule.class,
Expand Down
2 changes: 1 addition & 1 deletion WordPress/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@
android:theme="@style/Calypso.NoActionBar" />
<activity
android:name=".ui.stats.refresh.lists.sections.insights.management.InsightsManagementActivity"
android:label="@string/stats_manage_insights"
android:label="@string/stats_management_screen_title"
android:launchMode="singleTop"
android:theme="@style/CalypsoTheme" />
<activity
Expand Down
7 changes: 5 additions & 2 deletions WordPress/src/main/java/org/wordpress/android/WordPress.java
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
import org.greenrobot.eventbus.ThreadMode;
import org.wordpress.android.analytics.AnalyticsTracker;
import org.wordpress.android.analytics.AnalyticsTracker.Stat;
import org.wordpress.android.analytics.AnalyticsTrackerNosara;
import org.wordpress.android.analytics.Tracker;
import org.wordpress.android.datasets.NotificationsTable;
import org.wordpress.android.datasets.ReaderDatabase;
import org.wordpress.android.fluxc.Dispatcher;
Expand Down Expand Up @@ -154,6 +154,9 @@ public class WordPress extends MultiDexApplication implements HasServiceInjector
@Inject SystemNotificationsTracker mSystemNotificationsTracker;
@Inject ReaderTracker mReaderTracker;

// For development and production `AnalyticsTrackerNosara`, for testing a mocked `Tracker` will be injected.
@Inject Tracker mTracker;

@Inject @Named("custom-ssl") RequestQueue mRequestQueue;
public static RequestQueue sRequestQueue;
@Inject FluxCImageLoader mImageLoader;
Expand Down Expand Up @@ -397,7 +400,7 @@ private void createNotificationChannelsOnSdk26() {
}

private void initAnalytics(final long elapsedTimeOnCreate) {
AnalyticsTracker.registerTracker(new AnalyticsTrackerNosara(getContext()));
AnalyticsTracker.registerTracker(mTracker);
AnalyticsTracker.init(getContext());

AnalyticsUtils.refreshMetadata(mAccountStore, mSiteStore);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,7 @@
StatsModule.class,
SupportModule.class,
ThreadModule.class,
TrackerModule.class,
// Login flow library
LoginAnalyticsModule.class,
LoginFragmentModule.class,
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
package org.wordpress.android.modules

import android.content.Context
import dagger.Module
import dagger.Provides
import org.wordpress.android.analytics.AnalyticsTrackerNosara
import org.wordpress.android.analytics.Tracker

@Module
class TrackerModule {
@Provides
fun provideTracker(appContext: Context): Tracker {
return AnalyticsTrackerNosara(appContext)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -220,11 +220,6 @@ protected void onActivityResult(int requestCode, int resultCode, Intent data) {
if (data != null) {
int newSiteLocalID = data.getIntExtra(SitePickerActivity.KEY_LOCAL_ID, -1);
SiteUtils.enableBlockEditorOnSiteCreation(mDispatcher, mSiteStore, newSiteLocalID);
// Mark the site to show the GB popup at first editor run
SiteModel newSiteModel = mSiteStore.getSiteByLocalId(newSiteLocalID);
if (newSiteModel != null) {
AppPrefs.setShowGutenbergInfoPopupForTheNewPosts(newSiteModel.getUrl(), true);
}
}
break;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -900,11 +900,6 @@ public void onClick(View v) {
if (data != null) {
int newSiteLocalID = data.getIntExtra(SitePickerActivity.KEY_LOCAL_ID, -1);
SiteUtils.enableBlockEditorOnSiteCreation(mDispatcher, mSiteStore, newSiteLocalID);
// Mark the site to show the GB popup at first editor run
SiteModel newSiteModel = mSiteStore.getSiteByLocalId(newSiteLocalID);
if (newSiteModel != null) {
AppPrefs.setShowGutenbergInfoPopupForTheNewPosts(newSiteModel.getUrl(), true);
}
}

setSite(data);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1405,7 +1405,6 @@ private void setGutenbergEnabledIfNeeded() {
SiteUtils.enableBlockEditor(mDispatcher, mSite);
AnalyticsUtils.trackWithSiteDetails(Stat.EDITOR_GUTENBERG_ENABLED, mSite,
BlockEditorEnabledSource.ON_BLOCK_POST_OPENING.asPropertyMap());
showPopup = true;
}

if (showPopup) {
Expand Down Expand Up @@ -2673,6 +2672,14 @@ public void onEditorFragmentContentReady(ArrayList<Object> unsupportedBlocksList
mPostEditorAnalyticsSession.start(unsupportedBlocksList);
}

@Override public void onGutenbergEditorSessionTemplateApplyTracked(String template) {
mPostEditorAnalyticsSession.applyTemplate(template);
}

@Override public void onGutenbergEditorSessionTemplatePreviewTracked(String template) {
mPostEditorAnalyticsSession.previewTemplate(template);
}

@Override
public void onHtmlModeToggledInToolbar() {
toggleHtmlModeOnMenu();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ public class PostEditorAnalyticsSession implements Serializable {
private static final String KEY_POST_TYPE = "post_type";
private static final String KEY_OUTCOME = "outcome";
private static final String KEY_SESSION_ID = "session_id";
private static final String KEY_TEMPLATE = "template";

private String mSessionId = UUID.randomUUID().toString();
private String mPostType;
Expand All @@ -35,6 +36,7 @@ public class PostEditorAnalyticsSession implements Serializable {
private Editor mCurrentEditor;
private boolean mHasUnsupportedBlocks = false;
private Outcome mOutcome = null;
private String mTemplate;
private boolean mHWAccOff = false;

enum Editor {
Expand Down Expand Up @@ -113,6 +115,19 @@ public void setOutcome(Outcome newOutcome) {
mOutcome = newOutcome;
}

public void previewTemplate(String template) {
final Map<String, Object> properties = getCommonProperties();
properties.put(KEY_TEMPLATE, template);
AnalyticsTracker.track(Stat.EDITOR_SESSION_TEMPLATE_PREVIEW, properties);
}

public void applyTemplate(String template) {
mTemplate = template;
final Map<String, Object> properties = getCommonProperties();
properties.put(KEY_TEMPLATE, template);
AnalyticsTracker.track(Stat.EDITOR_SESSION_TEMPLATE_APPLY, properties);
}

public void end() {
// don't try to send an "end" event if the session wasn't started in the first place
if (mStarted) {
Expand All @@ -139,6 +154,10 @@ private Map<String, Object> getCommonProperties() {
properties.put(KEY_HAS_UNSUPPORTED_BLOCKS, mHasUnsupportedBlocks ? "1" : "0");
properties.put(AnalyticsUtils.EDITOR_HAS_HW_ACCELERATION_DISABLED_KEY, mHWAccOff ? "1" : "0");

if (mTemplate != null) {
properties.put(KEY_TEMPLATE, mTemplate);
}

return properties;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -433,8 +433,11 @@ public static String replaceMediaFileWithUrlInGutenbergPost(@NonNull String post
public static boolean isMediaInGutenbergPostBody(@NonNull String postContent,
String localMediaId) {
// check if media is in Gutenberg Post
String imgBlockHeaderToSearchFor = String.format("<!-- wp:image {\"id\":%s} -->", localMediaId);
return postContent.indexOf(imgBlockHeaderToSearchFor) != -1;
String imgBlockHeaderToSearchFor =
String.format("<!-- wp:image \\{[^\\}]*\"id\":%s[^\\}]*\\} -->", localMediaId);
Pattern pattern = Pattern.compile(imgBlockHeaderToSearchFor);
Matcher matcher = pattern.matcher(postContent);
return matcher.find();
}

public static boolean isPostInConflictWithRemote(PostImmutableModel post) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1893,6 +1893,8 @@ private void removeNonSelfHostedPreferences() {
WPPrefUtils.removePreference(this, R.string.pref_key_site_screen, R.string.pref_key_site_advanced);
WPPrefUtils.removePreference(this, R.string.pref_key_site_screen, R.string.pref_key_site_quota);
WPPrefUtils.removePreference(this, R.string.pref_key_site_screen, R.string.pref_key_jetpack_settings);
WPPrefUtils.removePreference(this, R.string.pref_key_site_screen,
R.string.pref_key_jetpack_performance_settings);
}

private void removeNonJetpackPreferences() {
Expand Down Expand Up @@ -1943,6 +1945,8 @@ private void removeNonWPComPreferences() {
WPPrefUtils.removePreference(this, R.string.pref_key_site_screen, R.string.pref_key_jetpack_settings);
WPPrefUtils.removePreference(this, R.string.pref_key_site_screen,
R.string.pref_key_jetpack_performance_media_settings);
WPPrefUtils.removePreference(this, R.string.pref_key_site_screen,
R.string.pref_key_jetpack_performance_settings);
}

private Preference getChangePref(int id) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ import org.wordpress.android.ui.stats.refresh.lists.sections.BlockListItem.Type.
import org.wordpress.android.ui.stats.refresh.lists.sections.BlockListItem.Type.IMAGE_ITEM
import org.wordpress.android.ui.stats.refresh.lists.sections.BlockListItem.Type.INFO
import org.wordpress.android.ui.stats.refresh.lists.sections.BlockListItem.Type.LINK
import org.wordpress.android.ui.stats.refresh.lists.sections.BlockListItem.Type.LINK_BUTTON
import org.wordpress.android.ui.stats.refresh.lists.sections.BlockListItem.Type.LIST_ITEM
import org.wordpress.android.ui.stats.refresh.lists.sections.BlockListItem.Type.LIST_ITEM_WITH_ICON
import org.wordpress.android.ui.stats.refresh.lists.sections.BlockListItem.Type.LOADING_ITEM
Expand Down Expand Up @@ -72,7 +71,6 @@ class BlockDiffCallback(
CHART_LEGEND,
REFERRED_ITEM,
QUICK_SCAN_ITEM,
LINK_BUTTON,
DIALOG_BUTTONS,
TAG_ITEM,
IMAGE_ITEM,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ import org.wordpress.android.ui.stats.refresh.lists.sections.BlockListItem.Heade
import org.wordpress.android.ui.stats.refresh.lists.sections.BlockListItem.ImageItem
import org.wordpress.android.ui.stats.refresh.lists.sections.BlockListItem.Information
import org.wordpress.android.ui.stats.refresh.lists.sections.BlockListItem.Link
import org.wordpress.android.ui.stats.refresh.lists.sections.BlockListItem.LinkButton
import org.wordpress.android.ui.stats.refresh.lists.sections.BlockListItem.ListItem
import org.wordpress.android.ui.stats.refresh.lists.sections.BlockListItem.ListItemWithIcon
import org.wordpress.android.ui.stats.refresh.lists.sections.BlockListItem.LoadingItem
Expand All @@ -43,7 +42,6 @@ import org.wordpress.android.ui.stats.refresh.lists.sections.BlockListItem.Type.
import org.wordpress.android.ui.stats.refresh.lists.sections.BlockListItem.Type.IMAGE_ITEM
import org.wordpress.android.ui.stats.refresh.lists.sections.BlockListItem.Type.INFO
import org.wordpress.android.ui.stats.refresh.lists.sections.BlockListItem.Type.LINK
import org.wordpress.android.ui.stats.refresh.lists.sections.BlockListItem.Type.LINK_BUTTON
import org.wordpress.android.ui.stats.refresh.lists.sections.BlockListItem.Type.LIST_ITEM
import org.wordpress.android.ui.stats.refresh.lists.sections.BlockListItem.Type.LIST_ITEM_WITH_ICON
import org.wordpress.android.ui.stats.refresh.lists.sections.BlockListItem.Type.LOADING_ITEM
Expand Down Expand Up @@ -71,7 +69,6 @@ import org.wordpress.android.ui.stats.refresh.lists.sections.viewholders.FourCol
import org.wordpress.android.ui.stats.refresh.lists.sections.viewholders.HeaderViewHolder
import org.wordpress.android.ui.stats.refresh.lists.sections.viewholders.ImageItemViewHolder
import org.wordpress.android.ui.stats.refresh.lists.sections.viewholders.InformationViewHolder
import org.wordpress.android.ui.stats.refresh.lists.sections.viewholders.LinkButtonViewHolder
import org.wordpress.android.ui.stats.refresh.lists.sections.viewholders.LinkViewHolder
import org.wordpress.android.ui.stats.refresh.lists.sections.viewholders.ListItemViewHolder
import org.wordpress.android.ui.stats.refresh.lists.sections.viewholders.ListItemWithIconViewHolder
Expand Down Expand Up @@ -126,7 +123,6 @@ class BlockListAdapter(val imageManager: ImageManager) : Adapter<BlockListItemVi
ACTIVITY_ITEM -> ActivityViewHolder(parent)
REFERRED_ITEM -> ReferredItemViewHolder(parent)
QUICK_SCAN_ITEM -> QuickScanItemViewHolder(parent)
LINK_BUTTON -> LinkButtonViewHolder(parent)
DIALOG_BUTTONS -> DialogButtonsViewHolder(parent)
}
}
Expand Down Expand Up @@ -166,7 +162,6 @@ class BlockListAdapter(val imageManager: ImageManager) : Adapter<BlockListItemVi
is LoadingItemViewHolder -> holder.bind(item as LoadingItem)
is ReferredItemViewHolder -> holder.bind(item as ReferredItem)
is QuickScanItemViewHolder -> holder.bind(item as QuickScanItem)
is LinkButtonViewHolder -> holder.bind(item as LinkButton)
is DialogButtonsViewHolder -> holder.bind(item as DialogButtons)
}
}
Expand Down
Loading