Bug 1277978 - Part 0a - Fix typo. r=liuche
MozReview-Commit-ID: 50wzRmX7iTz
--- a/mobile/android/base/java/org/mozilla/gecko/home/RecentTabsAdapter.java
+++ b/mobile/android/base/java/org/mozilla/gecko/home/RecentTabsAdapter.java
@@ -36,17 +36,17 @@ import static org.mozilla.gecko.home.Com
public class RecentTabsAdapter extends RecyclerView.Adapter<CombinedHistoryItem>
implements CombinedHistoryRecyclerView.AdapterContextMenuBuilder, NativeEventListener {
private static final String LOGTAG = "GeckoRecentTabsAdapter";
private static final int NAVIGATION_BACK_BUTTON_INDEX = 0;
private static final String TELEMETRY_EXTRA_LAST_TIME = "recent_tabs_last_time";
- private static final String TELEMETRY_EXTRA_RECENTY_CLOSED = "recent_closed_tabs";
+ private static final String TELEMETRY_EXTRA_RECENTLY_CLOSED = "recent_closed_tabs";
private static final String TELEMETRY_EXTRA_MIXED = "recent_tabs_mixed";
// Recently closed tabs from Gecko.
private ClosedTab[] recentlyClosedTabs;
// "Tabs from last time".
private ClosedTab[] lastSessionTabs;
@@ -260,34 +260,34 @@ public class RecentTabsAdapter extends R
}
}
public String restoreTabFromPosition(int position) {
final List<String> dataList = new ArrayList<>(1);
dataList.add(getClosedTabForPosition(position).data);
final String telemetryExtra =
- position > getLastRecentTabIndex() ? TELEMETRY_EXTRA_LAST_TIME : TELEMETRY_EXTRA_RECENTY_CLOSED;
+ position > getLastRecentTabIndex() ? TELEMETRY_EXTRA_LAST_TIME : TELEMETRY_EXTRA_RECENTLY_CLOSED;
restoreSessionWithHistory(dataList);
return telemetryExtra;
}
public String restoreAllTabs() {
if (recentlyClosedTabs.length == 0 && lastSessionTabs.length == 0) {
return null;
}
final List<String> dataList = new ArrayList<>(getClosedTabsCount());
addTabDataToList(dataList, recentlyClosedTabs);
addTabDataToList(dataList, lastSessionTabs);
final String telemetryExtra = recentlyClosedTabs.length > 0 && lastSessionTabs.length > 0 ? TELEMETRY_EXTRA_MIXED :
- recentlyClosedTabs.length > 0 ? TELEMETRY_EXTRA_RECENTY_CLOSED : TELEMETRY_EXTRA_LAST_TIME;
+ recentlyClosedTabs.length > 0 ? TELEMETRY_EXTRA_RECENTLY_CLOSED : TELEMETRY_EXTRA_LAST_TIME;
restoreSessionWithHistory(dataList);
return telemetryExtra;
}
private void addTabDataToList(List<String> dataList, ClosedTab[] closedTabs) {
for (ClosedTab closedTab : closedTabs) {