Permalink
Browse files

commit for sync.

  • Loading branch information...
1 parent 8b231bf commit 423387f07212fd8579f25a092c94750925885e18 @mariotaku committed Nov 24, 2012
@@ -79,7 +79,7 @@
<com.robobunny.SeekBarPreference
android:defaultValue="100"
android:key="database_item_limit"
- android:max="300"
+ android:max="500"
android:summary="@string/database_item_limit_summary"
android:title="@string/database_item_limit"
robobunny:min="50"
@@ -97,4 +97,4 @@
android:title="@string/clear_databases"/>
</PreferenceCategory>
-</PreferenceScreen>
+</PreferenceScreen>
@@ -61,7 +61,7 @@ public void onCreate(final Bundle savedInstanceState) {
mAdapter.addTab(FilteredKeywordsFragment.class, null, getString(R.string.keywords), null, 1);
mAdapter.addTab(FilteredSourcesFragment.class, null, getString(R.string.sources), null, 2);
mViewPager.setAdapter(mAdapter);
- mViewPager.setPagingEnabled(false);
+ //mViewPager.setPagingEnabled(false);
mIndicator.setViewPager(mViewPager);
mIndicator.setDisplayLabel(true);
mIndicator.setDisplayIcon(false);
@@ -34,6 +34,7 @@
import android.app.SearchManager;
import android.content.Intent;
+import android.content.res.Resources;
import android.net.Uri;
import android.os.Bundle;
import android.provider.SearchRecentSuggestions;
@@ -128,6 +129,8 @@ public void onCreate(final Bundle savedInstanceState) {
mViewPager.setAdapter(mAdapter);
mViewPager.setCurrentItem(is_search_user ? 1 : 0);
mPagerTab.setTabIndicatorColorResource(R.color.holo_blue_light);
+ final Resources res = getResources();
+ mPagerTab.setTextColor(res.getColor(isDarkTheme() ? R.color.primary_text_holo_dark : R.color.primary_text_holo_light));
}
@Override
@@ -196,7 +196,9 @@ public void onReceive(final Context context, final Intent intent) {
} else {
status_id = mAdapter.getItem(0).in_reply_to_status_id;
}
- updatePullRefresh();
+ mListView.setTranscriptMode(ListView.TRANSCRIPT_MODE_NORMAL);
+ mInReplyToView.setClickable(false);
+ setPullToRefreshEnabled(false);
return new StatusLoader(getActivity(), true, null, mAccountId, status_id);
}
@@ -23,15 +23,18 @@
import java.util.ArrayList;
import java.util.Collections;
-import java.util.List;
+
+import android.util.Log;
public class HtmlBuilder {
+ private static final String LOGTAG = "HtmlBuilder";
+
private final String string;
private final int string_length;
private final boolean strict;
- private final List<LinkSpec> links = new ArrayList<LinkSpec>();
+ private final ArrayList<LinkSpec> links = new ArrayList<LinkSpec>();
public HtmlBuilder(final String string) {
this(string, false);
@@ -45,20 +48,19 @@ public HtmlBuilder(final String string, final boolean strict) {
}
public boolean addLink(final String link, final String display, final int start, final int end) {
- // if (start >= end) {
- // if (strict) throw new
- // IllegalArgumentException("start must lesser than end!");
- // return;
- // }
if (start < 0 || end < 0 || start > end || end > string_length) {
+ final String message = "String length = " + string_length + ", start = " + start
+ + ", end = " + end;
if (strict)
- throw new StringIndexOutOfBoundsException("String length = " + string_length + ", start = " + start
- + ", end = " + end);
+ throw new StringIndexOutOfBoundsException(message);
+ Log.e(LOGTAG, message);
return false;
}
for (final LinkSpec spec : links) {
if (start >= spec.start && start <= spec.end || end >= spec.start && end <= spec.end) {
- if (strict) throw new IllegalArgumentException("link already added in this range!");
+ final String message = "link already added in this range!";
+ if (strict) throw new IllegalArgumentException(message);
+ Log.e(LOGTAG, message);
return false;
}
}
Oops, something went wrong.

0 comments on commit 423387f

Please sign in to comment.