Prepares graphic changes
This commit is contained in:
parent
b8db226757
commit
1aa3c2c74b
|
@ -35,7 +35,6 @@ import fr.gouv.etalab.mastodon.R;
|
||||||
import fr.gouv.etalab.mastodon.asynctasks.RetrieveInstanceAsyncTask;
|
import fr.gouv.etalab.mastodon.asynctasks.RetrieveInstanceAsyncTask;
|
||||||
import fr.gouv.etalab.mastodon.client.APIResponse;
|
import fr.gouv.etalab.mastodon.client.APIResponse;
|
||||||
import fr.gouv.etalab.mastodon.client.Entities.Instance;
|
import fr.gouv.etalab.mastodon.client.Entities.Instance;
|
||||||
import fr.gouv.etalab.mastodon.client.Entities.InstanceSocial;
|
|
||||||
import fr.gouv.etalab.mastodon.helper.Helper;
|
import fr.gouv.etalab.mastodon.helper.Helper;
|
||||||
import fr.gouv.etalab.mastodon.interfaces.OnRetrieveInstanceInterface;
|
import fr.gouv.etalab.mastodon.interfaces.OnRetrieveInstanceInterface;
|
||||||
|
|
||||||
|
|
|
@ -39,7 +39,6 @@ import android.view.ViewGroup;
|
||||||
import android.view.Window;
|
import android.view.Window;
|
||||||
import android.widget.Button;
|
import android.widget.Button;
|
||||||
import android.widget.LinearLayout;
|
import android.widget.LinearLayout;
|
||||||
import android.widget.ProgressBar;
|
|
||||||
import android.widget.RelativeLayout;
|
import android.widget.RelativeLayout;
|
||||||
import android.widget.TextView;
|
import android.widget.TextView;
|
||||||
|
|
||||||
|
|
|
@ -216,6 +216,19 @@ public class SettingsFragment extends Fragment {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
boolean disableGif = sharedpreferences.getBoolean(Helper.SET_DISABLE_GIF, false);
|
||||||
|
final CheckBox set_disable_gif = rootView.findViewById(R.id.set_disable_gif);
|
||||||
|
set_disable_gif.setChecked(disableGif);
|
||||||
|
set_disable_gif.setOnClickListener(new View.OnClickListener() {
|
||||||
|
@Override
|
||||||
|
public void onClick(View v) {
|
||||||
|
SharedPreferences.Editor editor = sharedpreferences.edit();
|
||||||
|
editor.putBoolean(Helper.SET_DISABLE_GIF, set_disable_gif.isChecked());
|
||||||
|
editor.apply();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
boolean livenotif = sharedpreferences.getBoolean(Helper.SET_LIVE_NOTIFICATIONS, true);
|
boolean livenotif = sharedpreferences.getBoolean(Helper.SET_LIVE_NOTIFICATIONS, true);
|
||||||
final CheckBox set_live_notif = rootView.findViewById(R.id.set_live_notify);
|
final CheckBox set_live_notif = rootView.findViewById(R.id.set_live_notify);
|
||||||
set_live_notif.setChecked(livenotif);
|
set_live_notif.setChecked(livenotif);
|
||||||
|
@ -235,6 +248,7 @@ public class SettingsFragment extends Fragment {
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
boolean display_global = sharedpreferences.getBoolean(Helper.SET_DISPLAY_GLOBAL, true);
|
boolean display_global = sharedpreferences.getBoolean(Helper.SET_DISPLAY_GLOBAL, true);
|
||||||
final CheckBox set_display_global = rootView.findViewById(R.id.set_display_global);
|
final CheckBox set_display_global = rootView.findViewById(R.id.set_display_global);
|
||||||
set_display_global.setChecked(display_global);
|
set_display_global.setChecked(display_global);
|
||||||
|
|
|
@ -216,6 +216,7 @@ public class Helper {
|
||||||
public static final String INSTANCE_VERSION = "instance_version";
|
public static final String INSTANCE_VERSION = "instance_version";
|
||||||
public static final String SET_LIVE_NOTIFICATIONS = "set_show_replies";
|
public static final String SET_LIVE_NOTIFICATIONS = "set_show_replies";
|
||||||
public static final String SET_PICTURE_URL = "set_picture_url";
|
public static final String SET_PICTURE_URL = "set_picture_url";
|
||||||
|
public static final String SET_DISABLE_GIF = "set_disable_gif";
|
||||||
public static final int ATTACHMENT_ALWAYS = 1;
|
public static final int ATTACHMENT_ALWAYS = 1;
|
||||||
public static final int ATTACHMENT_WIFI = 2;
|
public static final int ATTACHMENT_WIFI = 2;
|
||||||
public static final int ATTACHMENT_ASK = 3;
|
public static final int ATTACHMENT_ASK = 3;
|
||||||
|
|
|
@ -119,6 +119,14 @@
|
||||||
android:text="@string/live_notif"
|
android:text="@string/live_notif"
|
||||||
android:layout_height="wrap_content" />
|
android:layout_height="wrap_content" />
|
||||||
|
|
||||||
|
|
||||||
|
<!-- GIF AVATARS -->
|
||||||
|
<CheckBox
|
||||||
|
android:id="@+id/set_disable_gif"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:text="@string/set_disable_gif"
|
||||||
|
android:layout_height="wrap_content" />
|
||||||
|
|
||||||
<!-- TABS Layout -->
|
<!-- TABS Layout -->
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:id="@+id/translation_layout_container"
|
android:id="@+id/translation_layout_container"
|
||||||
|
|
|
@ -120,6 +120,14 @@
|
||||||
android:text="@string/live_notif"
|
android:text="@string/live_notif"
|
||||||
android:layout_height="wrap_content" />
|
android:layout_height="wrap_content" />
|
||||||
|
|
||||||
|
<!-- GIF AVATARS -->
|
||||||
|
<CheckBox
|
||||||
|
android:id="@+id/set_disable_gif"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:text="@string/set_disable_gif"
|
||||||
|
android:layout_height="wrap_content" />
|
||||||
|
|
||||||
|
|
||||||
<!-- Translation engine -->
|
<!-- Translation engine -->
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:layout_marginTop="10dp"
|
android:layout_marginTop="10dp"
|
||||||
|
|
|
@ -413,4 +413,5 @@
|
||||||
<string name="search">Search</string>
|
<string name="search">Search</string>
|
||||||
<string name="delete">Delete</string>
|
<string name="delete">Delete</string>
|
||||||
<string name="fetch_more_toots">Fetch more toots…</string>
|
<string name="fetch_more_toots">Fetch more toots…</string>
|
||||||
|
<string name="set_disable_gif">Disable GIF avatars</string>
|
||||||
</resources>
|
</resources>
|
||||||
|
|
|
@ -443,4 +443,5 @@
|
||||||
<string name="search">البحث</string>
|
<string name="search">البحث</string>
|
||||||
<string name="delete">حذف</string>
|
<string name="delete">حذف</string>
|
||||||
<string name="fetch_more_toots">تحميل المزيد من التبويقات ...</string>
|
<string name="fetch_more_toots">تحميل المزيد من التبويقات ...</string>
|
||||||
|
<string name="set_disable_gif">Disable GIF avatars</string>
|
||||||
</resources>
|
</resources>
|
||||||
|
|
|
@ -413,4 +413,5 @@
|
||||||
<string name="search">Search</string>
|
<string name="search">Search</string>
|
||||||
<string name="delete">Delete</string>
|
<string name="delete">Delete</string>
|
||||||
<string name="fetch_more_toots">Fetch more toots…</string>
|
<string name="fetch_more_toots">Fetch more toots…</string>
|
||||||
|
<string name="set_disable_gif">Disable GIF avatars</string>
|
||||||
</resources>
|
</resources>
|
||||||
|
|
|
@ -421,4 +421,5 @@
|
||||||
<string name="search">Search</string>
|
<string name="search">Search</string>
|
||||||
<string name="delete">Delete</string>
|
<string name="delete">Delete</string>
|
||||||
<string name="fetch_more_toots">Fetch more toots…</string>
|
<string name="fetch_more_toots">Fetch more toots…</string>
|
||||||
|
<string name="set_disable_gif">Disable GIF avatars</string>
|
||||||
</resources>
|
</resources>
|
||||||
|
|
|
@ -413,4 +413,5 @@
|
||||||
<string name="search">Search</string>
|
<string name="search">Search</string>
|
||||||
<string name="delete">Delete</string>
|
<string name="delete">Delete</string>
|
||||||
<string name="fetch_more_toots">Fetch more toots…</string>
|
<string name="fetch_more_toots">Fetch more toots…</string>
|
||||||
|
<string name="set_disable_gif">Disable GIF avatars</string>
|
||||||
</resources>
|
</resources>
|
||||||
|
|
|
@ -402,4 +402,5 @@
|
||||||
<string name="search">Suche</string>
|
<string name="search">Suche</string>
|
||||||
<string name="delete">Löschen</string>
|
<string name="delete">Löschen</string>
|
||||||
<string name="fetch_more_toots">Fetch more toots…</string>
|
<string name="fetch_more_toots">Fetch more toots…</string>
|
||||||
|
<string name="set_disable_gif">Disable GIF avatars</string>
|
||||||
</resources>
|
</resources>
|
||||||
|
|
|
@ -413,4 +413,5 @@
|
||||||
<string name="search">Search</string>
|
<string name="search">Search</string>
|
||||||
<string name="delete">Delete</string>
|
<string name="delete">Delete</string>
|
||||||
<string name="fetch_more_toots">Fetch more toots…</string>
|
<string name="fetch_more_toots">Fetch more toots…</string>
|
||||||
|
<string name="set_disable_gif">Disable GIF avatars</string>
|
||||||
</resources>
|
</resources>
|
||||||
|
|
|
@ -413,4 +413,5 @@
|
||||||
<string name="search">Search</string>
|
<string name="search">Search</string>
|
||||||
<string name="delete">Delete</string>
|
<string name="delete">Delete</string>
|
||||||
<string name="fetch_more_toots">Fetch more toots…</string>
|
<string name="fetch_more_toots">Fetch more toots…</string>
|
||||||
|
<string name="set_disable_gif">Disable GIF avatars</string>
|
||||||
</resources>
|
</resources>
|
||||||
|
|
|
@ -413,4 +413,5 @@
|
||||||
<string name="search">Search</string>
|
<string name="search">Search</string>
|
||||||
<string name="delete">Delete</string>
|
<string name="delete">Delete</string>
|
||||||
<string name="fetch_more_toots">Fetch more toots…</string>
|
<string name="fetch_more_toots">Fetch more toots…</string>
|
||||||
|
<string name="set_disable_gif">Disable GIF avatars</string>
|
||||||
</resources>
|
</resources>
|
||||||
|
|
|
@ -413,4 +413,5 @@
|
||||||
<string name="search">Search</string>
|
<string name="search">Search</string>
|
||||||
<string name="delete">Delete</string>
|
<string name="delete">Delete</string>
|
||||||
<string name="fetch_more_toots">Fetch more toots…</string>
|
<string name="fetch_more_toots">Fetch more toots…</string>
|
||||||
|
<string name="set_disable_gif">Disable GIF avatars</string>
|
||||||
</resources>
|
</resources>
|
||||||
|
|
|
@ -412,4 +412,5 @@
|
||||||
<string name="search">Rechercher</string>
|
<string name="search">Rechercher</string>
|
||||||
<string name="delete">Supprimer</string>
|
<string name="delete">Supprimer</string>
|
||||||
<string name="fetch_more_toots">Fetch more toots…</string>
|
<string name="fetch_more_toots">Fetch more toots…</string>
|
||||||
|
<string name="set_disable_gif">Disable GIF avatars</string>
|
||||||
</resources>
|
</resources>
|
||||||
|
|
|
@ -429,4 +429,5 @@
|
||||||
<string name="search">Search</string>
|
<string name="search">Search</string>
|
||||||
<string name="delete">Delete</string>
|
<string name="delete">Delete</string>
|
||||||
<string name="fetch_more_toots">Fetch more toots…</string>
|
<string name="fetch_more_toots">Fetch more toots…</string>
|
||||||
|
<string name="set_disable_gif">Disable GIF avatars</string>
|
||||||
</resources>
|
</resources>
|
||||||
|
|
|
@ -413,4 +413,5 @@
|
||||||
<string name="search">Search</string>
|
<string name="search">Search</string>
|
||||||
<string name="delete">Delete</string>
|
<string name="delete">Delete</string>
|
||||||
<string name="fetch_more_toots">Fetch more toots…</string>
|
<string name="fetch_more_toots">Fetch more toots…</string>
|
||||||
|
<string name="set_disable_gif">Disable GIF avatars</string>
|
||||||
</resources>
|
</resources>
|
||||||
|
|
|
@ -406,4 +406,5 @@ https://yandex.ru/legal/confidential/?lang=en
|
||||||
<string name="search">Cari</string>
|
<string name="search">Cari</string>
|
||||||
<string name="delete">Hapus</string>
|
<string name="delete">Hapus</string>
|
||||||
<string name="fetch_more_toots">Ambil lebih banyak kutipan…</string>
|
<string name="fetch_more_toots">Ambil lebih banyak kutipan…</string>
|
||||||
|
<string name="set_disable_gif">Disable GIF avatars</string>
|
||||||
</resources>
|
</resources>
|
||||||
|
|
|
@ -413,4 +413,5 @@
|
||||||
<string name="search">Search</string>
|
<string name="search">Search</string>
|
||||||
<string name="delete">Delete</string>
|
<string name="delete">Delete</string>
|
||||||
<string name="fetch_more_toots">Fetch more toots…</string>
|
<string name="fetch_more_toots">Fetch more toots…</string>
|
||||||
|
<string name="set_disable_gif">Disable GIF avatars</string>
|
||||||
</resources>
|
</resources>
|
||||||
|
|
|
@ -405,4 +405,5 @@
|
||||||
<string name="search">Search</string>
|
<string name="search">Search</string>
|
||||||
<string name="delete">Delete</string>
|
<string name="delete">Delete</string>
|
||||||
<string name="fetch_more_toots">Fetch more toots…</string>
|
<string name="fetch_more_toots">Fetch more toots…</string>
|
||||||
|
<string name="set_disable_gif">Disable GIF avatars</string>
|
||||||
</resources>
|
</resources>
|
||||||
|
|
|
@ -405,4 +405,5 @@
|
||||||
<string name="search">Search</string>
|
<string name="search">Search</string>
|
||||||
<string name="delete">Delete</string>
|
<string name="delete">Delete</string>
|
||||||
<string name="fetch_more_toots">Fetch more toots…</string>
|
<string name="fetch_more_toots">Fetch more toots…</string>
|
||||||
|
<string name="set_disable_gif">Disable GIF avatars</string>
|
||||||
</resources>
|
</resources>
|
||||||
|
|
|
@ -413,4 +413,5 @@
|
||||||
<string name="search">Zoeken</string>
|
<string name="search">Zoeken</string>
|
||||||
<string name="delete">Verwijderen</string>
|
<string name="delete">Verwijderen</string>
|
||||||
<string name="fetch_more_toots">Fetch more toots…</string>
|
<string name="fetch_more_toots">Fetch more toots…</string>
|
||||||
|
<string name="set_disable_gif">Disable GIF avatars</string>
|
||||||
</resources>
|
</resources>
|
||||||
|
|
|
@ -413,4 +413,5 @@
|
||||||
<string name="search">Search</string>
|
<string name="search">Search</string>
|
||||||
<string name="delete">Delete</string>
|
<string name="delete">Delete</string>
|
||||||
<string name="fetch_more_toots">Fetch more toots…</string>
|
<string name="fetch_more_toots">Fetch more toots…</string>
|
||||||
|
<string name="set_disable_gif">Disable GIF avatars</string>
|
||||||
</resources>
|
</resources>
|
||||||
|
|
|
@ -421,4 +421,5 @@
|
||||||
<string name="search">Search</string>
|
<string name="search">Search</string>
|
||||||
<string name="delete">Delete</string>
|
<string name="delete">Delete</string>
|
||||||
<string name="fetch_more_toots">Fetch more toots…</string>
|
<string name="fetch_more_toots">Fetch more toots…</string>
|
||||||
|
<string name="set_disable_gif">Disable GIF avatars</string>
|
||||||
</resources>
|
</resources>
|
||||||
|
|
|
@ -413,4 +413,5 @@
|
||||||
<string name="search">Pesquisar</string>
|
<string name="search">Pesquisar</string>
|
||||||
<string name="delete">Eliminar</string>
|
<string name="delete">Eliminar</string>
|
||||||
<string name="fetch_more_toots">Fetch more toots…</string>
|
<string name="fetch_more_toots">Fetch more toots…</string>
|
||||||
|
<string name="set_disable_gif">Disable GIF avatars</string>
|
||||||
</resources>
|
</resources>
|
||||||
|
|
|
@ -417,4 +417,5 @@ Vă mulțumesc:
|
||||||
<string name="search">Căutare</string>
|
<string name="search">Căutare</string>
|
||||||
<string name="delete">Șterge</string>
|
<string name="delete">Șterge</string>
|
||||||
<string name="fetch_more_toots">Fetch more toots…</string>
|
<string name="fetch_more_toots">Fetch more toots…</string>
|
||||||
|
<string name="set_disable_gif">Disable GIF avatars</string>
|
||||||
</resources>
|
</resources>
|
||||||
|
|
|
@ -421,4 +421,5 @@
|
||||||
<string name="search">Search</string>
|
<string name="search">Search</string>
|
||||||
<string name="delete">Delete</string>
|
<string name="delete">Delete</string>
|
||||||
<string name="fetch_more_toots">Fetch more toots…</string>
|
<string name="fetch_more_toots">Fetch more toots…</string>
|
||||||
|
<string name="set_disable_gif">Disable GIF avatars</string>
|
||||||
</resources>
|
</resources>
|
||||||
|
|
|
@ -421,4 +421,5 @@
|
||||||
<string name="search">Search</string>
|
<string name="search">Search</string>
|
||||||
<string name="delete">Delete</string>
|
<string name="delete">Delete</string>
|
||||||
<string name="fetch_more_toots">Fetch more toots…</string>
|
<string name="fetch_more_toots">Fetch more toots…</string>
|
||||||
|
<string name="set_disable_gif">Disable GIF avatars</string>
|
||||||
</resources>
|
</resources>
|
||||||
|
|
|
@ -413,4 +413,5 @@
|
||||||
<string name="search">Search</string>
|
<string name="search">Search</string>
|
||||||
<string name="delete">Delete</string>
|
<string name="delete">Delete</string>
|
||||||
<string name="fetch_more_toots">Fetch more toots…</string>
|
<string name="fetch_more_toots">Fetch more toots…</string>
|
||||||
|
<string name="set_disable_gif">Disable GIF avatars</string>
|
||||||
</resources>
|
</resources>
|
||||||
|
|
|
@ -405,4 +405,5 @@ Teşekkürler: </string>
|
||||||
<string name="search">Search</string>
|
<string name="search">Search</string>
|
||||||
<string name="delete">Delete</string>
|
<string name="delete">Delete</string>
|
||||||
<string name="fetch_more_toots">Fetch more toots…</string>
|
<string name="fetch_more_toots">Fetch more toots…</string>
|
||||||
|
<string name="set_disable_gif">Disable GIF avatars</string>
|
||||||
</resources>
|
</resources>
|
||||||
|
|
|
@ -421,4 +421,5 @@
|
||||||
<string name="search">Search</string>
|
<string name="search">Search</string>
|
||||||
<string name="delete">Delete</string>
|
<string name="delete">Delete</string>
|
||||||
<string name="fetch_more_toots">Fetch more toots…</string>
|
<string name="fetch_more_toots">Fetch more toots…</string>
|
||||||
|
<string name="set_disable_gif">Disable GIF avatars</string>
|
||||||
</resources>
|
</resources>
|
||||||
|
|
|
@ -405,4 +405,5 @@
|
||||||
<string name="search">Search</string>
|
<string name="search">Search</string>
|
||||||
<string name="delete">Delete</string>
|
<string name="delete">Delete</string>
|
||||||
<string name="fetch_more_toots">Fetch more toots…</string>
|
<string name="fetch_more_toots">Fetch more toots…</string>
|
||||||
|
<string name="set_disable_gif">Disable GIF avatars</string>
|
||||||
</resources>
|
</resources>
|
||||||
|
|
|
@ -399,4 +399,5 @@
|
||||||
<string name="search">Search</string>
|
<string name="search">Search</string>
|
||||||
<string name="delete">Delete</string>
|
<string name="delete">Delete</string>
|
||||||
<string name="fetch_more_toots">Fetch more toots…</string>
|
<string name="fetch_more_toots">Fetch more toots…</string>
|
||||||
|
<string name="set_disable_gif">Disable GIF avatars</string>
|
||||||
</resources>
|
</resources>
|
||||||
|
|
|
@ -300,6 +300,7 @@
|
||||||
<string name="set_display_reply">Display previous message in responses</string>
|
<string name="set_display_reply">Display previous message in responses</string>
|
||||||
<string name="set_display_local">Display local timeline</string>
|
<string name="set_display_local">Display local timeline</string>
|
||||||
<string name="set_display_global">Display federated timeline</string>
|
<string name="set_display_global">Display federated timeline</string>
|
||||||
|
<string name="set_disable_gif">Disable GIF avatars</string>
|
||||||
<string name="set_folder_title">Path: </string>
|
<string name="set_folder_title">Path: </string>
|
||||||
<string name="set_auto_store_toot">Save drafts automatically</string>
|
<string name="set_auto_store_toot">Save drafts automatically</string>
|
||||||
<string name="set_bubble_counter">Display counters</string>
|
<string name="set_bubble_counter">Display counters</string>
|
||||||
|
|
Loading…
Reference in New Issue