зеркало из https://github.com/mozilla/pjs.git
Bug 736125 - Fix Java 7 compile warnings. r=sriram
This commit is contained in:
Родитель
df75035576
Коммит
c34399bd0c
|
@ -1321,7 +1321,7 @@ abstract public class GeckoApp
|
||||||
// want to load the image straight away. If tab is still
|
// want to load the image straight away. If tab is still
|
||||||
// loading, we only load the favicon once the page's content
|
// loading, we only load the favicon once the page's content
|
||||||
// is fully loaded (see handleContentLoaded()).
|
// is fully loaded (see handleContentLoaded()).
|
||||||
if (tab.getState() != tab.STATE_LOADING) {
|
if (tab.getState() != Tab.STATE_LOADING) {
|
||||||
mMainHandler.post(new Runnable() {
|
mMainHandler.post(new Runnable() {
|
||||||
public void run() {
|
public void run() {
|
||||||
loadFavicon(tab);
|
loadFavicon(tab);
|
||||||
|
|
|
@ -87,9 +87,8 @@ public class TabsTray extends Activity implements Tabs.OnTabsChangedListener {
|
||||||
sPreferredHeight = (int) (0.67 * metrics.heightPixels);
|
sPreferredHeight = (int) (0.67 * metrics.heightPixels);
|
||||||
sMaxHeight = (int) (sPreferredHeight + (0.33 * sListItemHeight));
|
sMaxHeight = (int) (sPreferredHeight + (0.33 * sListItemHeight));
|
||||||
|
|
||||||
Tabs tabs = Tabs.getInstance();
|
Tabs.registerOnTabsChangedListener(this);
|
||||||
tabs.registerOnTabsChangedListener(this);
|
Tabs.getInstance().refreshThumbnails();
|
||||||
tabs.refreshThumbnails();
|
|
||||||
onTabChanged(null, null);
|
onTabChanged(null, null);
|
||||||
|
|
||||||
// If Sync is set up, query the database for remote clients.
|
// If Sync is set up, query the database for remote clients.
|
||||||
|
@ -114,7 +113,7 @@ public class TabsTray extends Activity implements Tabs.OnTabsChangedListener {
|
||||||
@Override
|
@Override
|
||||||
public void onDestroy() {
|
public void onDestroy() {
|
||||||
super.onDestroy();
|
super.onDestroy();
|
||||||
Tabs.getInstance().unregisterOnTabsChangedListener(this);
|
Tabs.unregisterOnTabsChangedListener(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void onTabChanged(Tab tab, Tabs.TabEvents msg) {
|
public void onTabChanged(Tab tab, Tabs.TabEvents msg) {
|
||||||
|
|
|
@ -142,14 +142,13 @@ public class LayerController implements Tabs.OnTabsChangedListener {
|
||||||
mView = new LayerView(context, this);
|
mView = new LayerView(context, this);
|
||||||
mCheckerboardShouldShowChecks = true;
|
mCheckerboardShouldShowChecks = true;
|
||||||
|
|
||||||
Tabs.getInstance().registerOnTabsChangedListener(this);
|
Tabs.registerOnTabsChangedListener(this);
|
||||||
|
|
||||||
ViewConfiguration vc = ViewConfiguration.get(mContext);
|
mTimeout = ViewConfiguration.getLongPressTimeout();
|
||||||
mTimeout = vc.getLongPressTimeout();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void onDestroy() {
|
public void onDestroy() {
|
||||||
Tabs.getInstance().unregisterOnTabsChangedListener(this);
|
Tabs.unregisterOnTabsChangedListener(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setRoot(Layer layer) { mRootLayer = layer; }
|
public void setRoot(Layer layer) { mRootLayer = layer; }
|
||||||
|
|
Загрузка…
Ссылка в новой задаче