New assets. Cleanup.

This commit is contained in:
burke.davey
2011-05-10 09:35:52 +00:00
parent 6b2b5e05d9
commit 5c75c174eb
11 changed files with 3 additions and 12 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.9 KiB

After

Width:  |  Height:  |  Size: 5.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 20 KiB

After

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.3 KiB

After

Width:  |  Height:  |  Size: 3.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

After

Width:  |  Height:  |  Size: 13 KiB

View File

@@ -122,7 +122,7 @@ public class HistoryActivity extends Activity implements OnChildClickListener {
case DIALOG_LINK_ACTION: case DIALOG_LINK_ACTION:
if (mSelectedLink != null) { if (mSelectedLink != null) {
return new AlertDialog.Builder(this) return new AlertDialog.Builder(this)
.setTitle(ellipsis(mSelectedLink.mTitle)) .setTitle(mSelectedLink.mTitle)
.setItems(R.array.link_action_dialog_items, new DialogInterface.OnClickListener() { .setItems(R.array.link_action_dialog_items, new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int which) { public void onClick(DialogInterface dialog, int which) {
if (which == 0) { // Open if (which == 0) { // Open
@@ -156,16 +156,7 @@ public class HistoryActivity extends Activity implements OnChildClickListener {
@Override @Override
protected void onPrepareDialog(int id, Dialog dialog) { protected void onPrepareDialog(int id, Dialog dialog) {
dialog.setTitle(ellipsis(mSelectedLink.mTitle)); dialog.setTitle(mSelectedLink.mTitle);
}
private String ellipsis(String string) {
int MAX_LENGTH = 50;
if (string.length() > MAX_LENGTH - 3) {
string = string.substring(0, MAX_LENGTH - 3);
string += "...";
}
return string;
} }
class HistoryExpandableListAdapter extends BaseExpandableListAdapter { class HistoryExpandableListAdapter extends BaseExpandableListAdapter {

Binary file not shown.

Before

Width:  |  Height:  |  Size: 22 KiB

After

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 44 KiB

After

Width:  |  Height:  |  Size: 44 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 48 KiB

After

Width:  |  Height:  |  Size: 48 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.3 KiB

After

Width:  |  Height:  |  Size: 3.9 KiB

View File

@@ -96,7 +96,7 @@ function sendToPhone(title, url, msgType, selection, listener) {
} }
} }
function initializeBrowserChannel(callback) { function initializeBrowserChannel() {
if (!oauth.hasToken()) { if (!oauth.hasToken()) {
console.log('Login required for initializeBrowserChannel'); console.log('Login required for initializeBrowserChannel');
return; return;