Prepares graphic changes

This commit is contained in:
stom79 2017-12-10 08:33:26 +01:00
parent b8db226757
commit 1aa3c2c74b
36 changed files with 61 additions and 2 deletions

View File

@ -35,7 +35,6 @@ import fr.gouv.etalab.mastodon.R;
import fr.gouv.etalab.mastodon.asynctasks.RetrieveInstanceAsyncTask;
import fr.gouv.etalab.mastodon.client.APIResponse;
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.interfaces.OnRetrieveInstanceInterface;

View File

@ -39,7 +39,6 @@ import android.view.ViewGroup;
import android.view.Window;
import android.widget.Button;
import android.widget.LinearLayout;
import android.widget.ProgressBar;
import android.widget.RelativeLayout;
import android.widget.TextView;

View File

@ -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);
final CheckBox set_live_notif = rootView.findViewById(R.id.set_live_notify);
set_live_notif.setChecked(livenotif);
@ -235,6 +248,7 @@ public class SettingsFragment extends Fragment {
});
boolean display_global = sharedpreferences.getBoolean(Helper.SET_DISPLAY_GLOBAL, true);
final CheckBox set_display_global = rootView.findViewById(R.id.set_display_global);
set_display_global.setChecked(display_global);

View File

@ -216,6 +216,7 @@ public class Helper {
public static final String INSTANCE_VERSION = "instance_version";
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_DISABLE_GIF = "set_disable_gif";
public static final int ATTACHMENT_ALWAYS = 1;
public static final int ATTACHMENT_WIFI = 2;
public static final int ATTACHMENT_ASK = 3;

View File

@ -119,6 +119,14 @@
android:text="@string/live_notif"
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 -->
<LinearLayout
android:id="@+id/translation_layout_container"

View File

@ -120,6 +120,14 @@
android:text="@string/live_notif"
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 -->
<LinearLayout
android:layout_marginTop="10dp"

View File

@ -413,4 +413,5 @@
<string name="search">Search</string>
<string name="delete">Delete</string>
<string name="fetch_more_toots">Fetch more toots…</string>
<string name="set_disable_gif">Disable GIF avatars</string>
</resources>

View File

@ -443,4 +443,5 @@
<string name="search">البحث</string>
<string name="delete">حذف</string>
<string name="fetch_more_toots">تحميل المزيد من التبويقات ...</string>
<string name="set_disable_gif">Disable GIF avatars</string>
</resources>

View File

@ -413,4 +413,5 @@
<string name="search">Search</string>
<string name="delete">Delete</string>
<string name="fetch_more_toots">Fetch more toots…</string>
<string name="set_disable_gif">Disable GIF avatars</string>
</resources>

View File

@ -421,4 +421,5 @@
<string name="search">Search</string>
<string name="delete">Delete</string>
<string name="fetch_more_toots">Fetch more toots…</string>
<string name="set_disable_gif">Disable GIF avatars</string>
</resources>

View File

@ -413,4 +413,5 @@
<string name="search">Search</string>
<string name="delete">Delete</string>
<string name="fetch_more_toots">Fetch more toots…</string>
<string name="set_disable_gif">Disable GIF avatars</string>
</resources>

View File

@ -402,4 +402,5 @@
<string name="search">Suche</string>
<string name="delete">Löschen</string>
<string name="fetch_more_toots">Fetch more toots…</string>
<string name="set_disable_gif">Disable GIF avatars</string>
</resources>

View File

@ -413,4 +413,5 @@
<string name="search">Search</string>
<string name="delete">Delete</string>
<string name="fetch_more_toots">Fetch more toots…</string>
<string name="set_disable_gif">Disable GIF avatars</string>
</resources>

View File

@ -413,4 +413,5 @@
<string name="search">Search</string>
<string name="delete">Delete</string>
<string name="fetch_more_toots">Fetch more toots…</string>
<string name="set_disable_gif">Disable GIF avatars</string>
</resources>

View File

@ -413,4 +413,5 @@
<string name="search">Search</string>
<string name="delete">Delete</string>
<string name="fetch_more_toots">Fetch more toots…</string>
<string name="set_disable_gif">Disable GIF avatars</string>
</resources>

View File

@ -413,4 +413,5 @@
<string name="search">Search</string>
<string name="delete">Delete</string>
<string name="fetch_more_toots">Fetch more toots…</string>
<string name="set_disable_gif">Disable GIF avatars</string>
</resources>

View File

@ -412,4 +412,5 @@
<string name="search">Rechercher</string>
<string name="delete">Supprimer</string>
<string name="fetch_more_toots">Fetch more toots…</string>
<string name="set_disable_gif">Disable GIF avatars</string>
</resources>

View File

@ -429,4 +429,5 @@
<string name="search">Search</string>
<string name="delete">Delete</string>
<string name="fetch_more_toots">Fetch more toots…</string>
<string name="set_disable_gif">Disable GIF avatars</string>
</resources>

View File

@ -413,4 +413,5 @@
<string name="search">Search</string>
<string name="delete">Delete</string>
<string name="fetch_more_toots">Fetch more toots…</string>
<string name="set_disable_gif">Disable GIF avatars</string>
</resources>

View File

@ -406,4 +406,5 @@ https://yandex.ru/legal/confidential/?lang=en
<string name="search">Cari</string>
<string name="delete">Hapus</string>
<string name="fetch_more_toots">Ambil lebih banyak kutipan…</string>
<string name="set_disable_gif">Disable GIF avatars</string>
</resources>

View File

@ -413,4 +413,5 @@
<string name="search">Search</string>
<string name="delete">Delete</string>
<string name="fetch_more_toots">Fetch more toots…</string>
<string name="set_disable_gif">Disable GIF avatars</string>
</resources>

View File

@ -405,4 +405,5 @@
<string name="search">Search</string>
<string name="delete">Delete</string>
<string name="fetch_more_toots">Fetch more toots…</string>
<string name="set_disable_gif">Disable GIF avatars</string>
</resources>

View File

@ -405,4 +405,5 @@
<string name="search">Search</string>
<string name="delete">Delete</string>
<string name="fetch_more_toots">Fetch more toots…</string>
<string name="set_disable_gif">Disable GIF avatars</string>
</resources>

View File

@ -413,4 +413,5 @@
<string name="search">Zoeken</string>
<string name="delete">Verwijderen</string>
<string name="fetch_more_toots">Fetch more toots…</string>
<string name="set_disable_gif">Disable GIF avatars</string>
</resources>

View File

@ -413,4 +413,5 @@
<string name="search">Search</string>
<string name="delete">Delete</string>
<string name="fetch_more_toots">Fetch more toots…</string>
<string name="set_disable_gif">Disable GIF avatars</string>
</resources>

View File

@ -421,4 +421,5 @@
<string name="search">Search</string>
<string name="delete">Delete</string>
<string name="fetch_more_toots">Fetch more toots…</string>
<string name="set_disable_gif">Disable GIF avatars</string>
</resources>

View File

@ -413,4 +413,5 @@
<string name="search">Pesquisar</string>
<string name="delete">Eliminar</string>
<string name="fetch_more_toots">Fetch more toots…</string>
<string name="set_disable_gif">Disable GIF avatars</string>
</resources>

View File

@ -417,4 +417,5 @@ Vă mulțumesc:
<string name="search">Căutare</string>
<string name="delete">Șterge</string>
<string name="fetch_more_toots">Fetch more toots…</string>
<string name="set_disable_gif">Disable GIF avatars</string>
</resources>

View File

@ -421,4 +421,5 @@
<string name="search">Search</string>
<string name="delete">Delete</string>
<string name="fetch_more_toots">Fetch more toots…</string>
<string name="set_disable_gif">Disable GIF avatars</string>
</resources>

View File

@ -421,4 +421,5 @@
<string name="search">Search</string>
<string name="delete">Delete</string>
<string name="fetch_more_toots">Fetch more toots…</string>
<string name="set_disable_gif">Disable GIF avatars</string>
</resources>

View File

@ -413,4 +413,5 @@
<string name="search">Search</string>
<string name="delete">Delete</string>
<string name="fetch_more_toots">Fetch more toots…</string>
<string name="set_disable_gif">Disable GIF avatars</string>
</resources>

View File

@ -405,4 +405,5 @@ Teşekkürler: </string>
<string name="search">Search</string>
<string name="delete">Delete</string>
<string name="fetch_more_toots">Fetch more toots…</string>
<string name="set_disable_gif">Disable GIF avatars</string>
</resources>

View File

@ -421,4 +421,5 @@
<string name="search">Search</string>
<string name="delete">Delete</string>
<string name="fetch_more_toots">Fetch more toots…</string>
<string name="set_disable_gif">Disable GIF avatars</string>
</resources>

View File

@ -405,4 +405,5 @@
<string name="search">Search</string>
<string name="delete">Delete</string>
<string name="fetch_more_toots">Fetch more toots…</string>
<string name="set_disable_gif">Disable GIF avatars</string>
</resources>

View File

@ -399,4 +399,5 @@
<string name="search">Search</string>
<string name="delete">Delete</string>
<string name="fetch_more_toots">Fetch more toots…</string>
<string name="set_disable_gif">Disable GIF avatars</string>
</resources>

View File

@ -300,6 +300,7 @@
<string name="set_display_reply">Display previous message in responses</string>
<string name="set_display_local">Display local 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_auto_store_toot">Save drafts automatically</string>
<string name="set_bubble_counter">Display counters</string>