Preview replies improvement
This commit is contained in:
parent
92f6e577fb
commit
afe1a7c9c5
|
@ -355,7 +355,7 @@ public class StatusListAdapter extends RecyclerView.Adapter implements OnPostAct
|
|||
if( type == RetrieveFeedsAsyncTask.Type.HOME ) {
|
||||
boolean showPreview = sharedpreferences.getBoolean(Helper.SET_PREVIEW_REPLIES, false);
|
||||
if( showPreview){
|
||||
boolean showPreviewPP = sharedpreferences.getBoolean(Helper.SET_PREVIEW_REPLIES_PP, true);
|
||||
boolean showPreviewPP = sharedpreferences.getBoolean(Helper.SET_PREVIEW_REPLIES_PP, false);
|
||||
if( status.getReplies() == null){
|
||||
holder.loader_replies.setVisibility(View.VISIBLE);
|
||||
}else if(status.getReplies().size() == 0){
|
||||
|
|
|
@ -146,7 +146,7 @@ public class SettingsFragment extends Fragment {
|
|||
}else{
|
||||
set_preview_reply_pp_container.setVisibility(View.VISIBLE);
|
||||
}
|
||||
boolean preview_reply_pp = sharedpreferences.getBoolean(Helper.SET_PREVIEW_REPLIES_PP, true);
|
||||
boolean preview_reply_pp = sharedpreferences.getBoolean(Helper.SET_PREVIEW_REPLIES_PP, false);
|
||||
set_preview_reply_pp.setChecked(preview_reply_pp);
|
||||
set_preview_reply_pp.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
|
||||
@Override
|
||||
|
|
|
@ -77,18 +77,6 @@
|
|||
android:text="@string/set_preview_reply"
|
||||
android:layout_height="wrap_content" />
|
||||
|
||||
<CheckBox
|
||||
android:id="@+id/set_display_local"
|
||||
android:layout_width="wrap_content"
|
||||
android:text="@string/set_display_local"
|
||||
android:layout_height="wrap_content" />
|
||||
|
||||
<CheckBox
|
||||
android:id="@+id/set_display_global"
|
||||
android:layout_width="wrap_content"
|
||||
android:text="@string/set_display_global"
|
||||
android:layout_height="wrap_content" />
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/set_preview_reply_pp_container"
|
||||
android:layout_width="match_parent"
|
||||
|
@ -112,6 +100,20 @@
|
|||
/>
|
||||
</LinearLayout>
|
||||
|
||||
<CheckBox
|
||||
android:id="@+id/set_display_local"
|
||||
android:layout_width="wrap_content"
|
||||
android:text="@string/set_display_local"
|
||||
android:layout_height="wrap_content" />
|
||||
|
||||
<CheckBox
|
||||
android:id="@+id/set_display_global"
|
||||
android:layout_width="wrap_content"
|
||||
android:text="@string/set_display_global"
|
||||
android:layout_height="wrap_content" />
|
||||
|
||||
|
||||
|
||||
<!-- TABS Layout -->
|
||||
<LinearLayout
|
||||
android:id="@+id/translation_layout_container"
|
||||
|
|
|
@ -77,18 +77,6 @@
|
|||
android:text="@string/set_preview_reply"
|
||||
android:layout_height="wrap_content" />
|
||||
|
||||
<CheckBox
|
||||
android:id="@+id/set_display_local"
|
||||
android:layout_width="wrap_content"
|
||||
android:text="@string/set_display_local"
|
||||
android:layout_height="wrap_content" />
|
||||
|
||||
<CheckBox
|
||||
android:id="@+id/set_display_global"
|
||||
android:layout_width="wrap_content"
|
||||
android:text="@string/set_display_global"
|
||||
android:layout_height="wrap_content" />
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/set_preview_reply_pp_container"
|
||||
android:layout_width="match_parent"
|
||||
|
@ -111,6 +99,20 @@
|
|||
android:layout_height="wrap_content"
|
||||
/>
|
||||
</LinearLayout>
|
||||
|
||||
<CheckBox
|
||||
android:id="@+id/set_display_local"
|
||||
android:layout_width="wrap_content"
|
||||
android:text="@string/set_display_local"
|
||||
android:layout_height="wrap_content" />
|
||||
|
||||
<CheckBox
|
||||
android:id="@+id/set_display_global"
|
||||
android:layout_width="wrap_content"
|
||||
android:text="@string/set_display_global"
|
||||
android:layout_height="wrap_content" />
|
||||
|
||||
|
||||
|
||||
<!-- Translation engine -->
|
||||
<LinearLayout
|
||||
|
|
Loading…
Reference in New Issue