зеркало из https://github.com/mozilla/gecko-dev.git
Bug 852312: Remove white spaces in about:home refactor. [r=me]
This commit is contained in:
Родитель
68b37c80c5
Коммит
a0dd4fcc30
|
@ -99,7 +99,7 @@ public class AboutHomeContent extends ScrollView
|
|||
mAddons = (AddonsSection) findViewById(R.id.recommended_addons);
|
||||
mLastTabs = (LastTabsSection) findViewById(R.id.last_tabs);
|
||||
mRemoteTabs = (RemoteTabsSection) findViewById(R.id.remote_tabs);
|
||||
|
||||
|
||||
// Inform the new views about the UriLoadCallback
|
||||
if (mUriLoadCallback != null)
|
||||
setUriLoadCallback(mUriLoadCallback);
|
||||
|
|
|
@ -81,10 +81,10 @@ public class AboutHomeSection extends GeckoLinearLayout {
|
|||
|
||||
public void addItem(View item) {
|
||||
mItemsContainer.addView(item);
|
||||
|
||||
|
||||
Divider divider = new Divider(getContext(), null);
|
||||
divider.setBackgroundColor(0x3460666E);
|
||||
|
||||
|
||||
mItemsContainer.addView(divider);
|
||||
}
|
||||
|
||||
|
|
|
@ -51,7 +51,7 @@ public class AddonsSection extends AboutHomeSection {
|
|||
mActivity = (BrowserApp) context;
|
||||
|
||||
int iconSize = mContext.getResources().getDimensionPixelSize(R.dimen.abouthome_addon_icon_size);
|
||||
sIconBounds = new Rect(0, 0, iconSize, iconSize);
|
||||
sIconBounds = new Rect(0, 0, iconSize, iconSize);
|
||||
sSubTitleSpan = new TextAppearanceSpan(mContext, R.style.AboutHome_TextAppearance_SubTitle);
|
||||
|
||||
setOnMoreTextClickListener(new View.OnClickListener() {
|
||||
|
|
|
@ -53,7 +53,7 @@ public class RemoteTabsSection extends AboutHomeSection
|
|||
}
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
public void loadRemoteTabs() {
|
||||
if (!SyncAccounts.syncAccountsExist(mActivity)) {
|
||||
post(new Runnable() {
|
||||
|
@ -75,11 +75,11 @@ public class RemoteTabsSection extends AboutHomeSection
|
|||
hide();
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
clear();
|
||||
|
||||
|
||||
String client = null;
|
||||
|
||||
|
||||
for (TabsAccessor.RemoteTab tab : tabs) {
|
||||
if (client == null)
|
||||
client = tab.name;
|
||||
|
@ -93,7 +93,7 @@ public class RemoteTabsSection extends AboutHomeSection
|
|||
row.setOnClickListener(mRemoteTabClickListener);
|
||||
row.setOnKeyListener(GamepadUtils.getClickDispatcher());
|
||||
}
|
||||
|
||||
|
||||
setSubtitle(client);
|
||||
show();
|
||||
}
|
||||
|
|
|
@ -519,7 +519,7 @@ public class TopSitesView extends GridView {
|
|||
public void unpinSite(ContextMenuInfo menuInfo, final UnpinFlags flags) {
|
||||
AdapterView.AdapterContextMenuInfo info = (AdapterView.AdapterContextMenuInfo) menuInfo;
|
||||
final int position = info.position;
|
||||
|
||||
|
||||
final View v = getChildAt(position);
|
||||
final TopSitesViewHolder holder = (TopSitesViewHolder) v.getTag();
|
||||
final String url = holder.getUrl();
|
||||
|
|
Загрузка…
Ссылка в новой задаче