アプリ設定に「プレビューカードを取得しない」を追加
This commit is contained in:
parent
73cf441ba6
commit
fad2279840
|
@ -1807,6 +1807,7 @@ class Column(
|
|||
}
|
||||
|
||||
// カードを取得する
|
||||
if( ! Pref.bpDontRetrievePreviewCard(context) ) {
|
||||
this.list_tmp?.forEach { o ->
|
||||
if(o is TootStatus)
|
||||
o.card = parseItem(
|
||||
|
@ -1814,6 +1815,7 @@ class Column(
|
|||
client.request("/api/v1/statuses/" + o.id + "/card")?.jsonObject
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
return result
|
||||
|
|
|
@ -307,6 +307,13 @@ object Pref {
|
|||
R.id.swSendAccessTokenToAppServer
|
||||
)
|
||||
|
||||
val bpDontRetrievePreviewCard = BooleanPref(
|
||||
"DontRetrievePreviewCard",
|
||||
false,
|
||||
R.id.swDontRetrievePreviewCard
|
||||
)
|
||||
|
||||
|
||||
// int
|
||||
|
||||
val ipBackButtonAction = IntPref("back_button_action", 0)
|
||||
|
|
|
@ -129,6 +129,7 @@
|
|||
/>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout style="@style/setting_row_form">
|
||||
|
||||
<TextView
|
||||
|
@ -137,7 +138,6 @@
|
|||
/>
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
<View style="@style/setting_divider"/>
|
||||
|
||||
<TextView
|
||||
|
@ -156,7 +156,6 @@
|
|||
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
<View style="@style/setting_divider"/>
|
||||
|
||||
<!-- =============================================== -->
|
||||
|
@ -281,7 +280,22 @@
|
|||
|
||||
</LinearLayout>
|
||||
|
||||
<View style="@style/setting_divider"/>
|
||||
|
||||
<TextView
|
||||
style="@style/setting_row_label"
|
||||
android:text="@string/dont_retrieve_preview_card"
|
||||
/>
|
||||
|
||||
<LinearLayout style="@style/setting_row_form">
|
||||
|
||||
<Switch
|
||||
android:id="@+id/swDontRetrievePreviewCard"
|
||||
style="@style/setting_horizontal_stretch"
|
||||
android:gravity="center"
|
||||
/>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<View style="@style/setting_divider"/>
|
||||
|
||||
|
@ -652,7 +666,6 @@
|
|||
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
<View style="@style/setting_divider"/>
|
||||
|
||||
<TextView
|
||||
|
@ -816,8 +829,6 @@
|
|||
|
||||
<View style="@style/setting_divider"/>
|
||||
|
||||
|
||||
|
||||
<TextView
|
||||
style="@style/setting_row_label"
|
||||
android:labelFor="@+id/etAutoCWLines"
|
||||
|
|
|
@ -646,6 +646,7 @@
|
|||
<string name="direct_messages">Direct messages</string>
|
||||
<string name="unfavourite">Unfavourite</string>
|
||||
<string name="unboost">Unboost</string>
|
||||
<string name="dont_retrieve_preview_card">Don\'t retrieve preview card</string>
|
||||
|
||||
<!--<string name="abc_action_bar_home_description">Revenir à l\'accueil</string>-->
|
||||
<!--<string name="abc_action_bar_home_description_format">%1$s, %2$s</string>-->
|
||||
|
|
|
@ -925,4 +925,5 @@
|
|||
<string name="direct_messages">ダイレクトメッセージ</string>
|
||||
<string name="unfavourite">お気に入り解除</string>
|
||||
<string name="unboost">ブースト解除</string>
|
||||
<string name="dont_retrieve_preview_card">プレビューカードを取得しない</string>
|
||||
</resources>
|
||||
|
|
|
@ -632,4 +632,5 @@
|
|||
<string name="direct_messages">Direct messages</string>
|
||||
<string name="unfavourite">Unfavourite</string>
|
||||
<string name="unboost">Unboost</string>
|
||||
<string name="dont_retrieve_preview_card">Don\'t retrieve preview card</string>
|
||||
</resources>
|
||||
|
|
Loading…
Reference in New Issue