Reduced lag and increased button size for older devices&users.

This commit is contained in:
Somethingweirdhere 2018-06-15 05:43:43 +02:00 committed by Christian Schabesberger
parent cbf6540889
commit fc94f184d2
2 changed files with 11 additions and 4 deletions

View File

@ -40,7 +40,7 @@ public class ContentSettingsMain extends Fragment {
RecyclerView usedTabsView;
List<String> usedTabs = new ArrayList<>();
private String saveString;
public String[] allTabs = new String[7];
@Override
@ -81,10 +81,17 @@ public class ContentSettingsMain extends Fragment {
}
}
saveString = save.toString();
}
@Override
public void onPause() {
saveChanges();
SharedPreferences sharedPreferences = android.preference.PreferenceManager.getDefaultSharedPreferences(getContext());
SharedPreferences.Editor editor = sharedPreferences.edit();
editor.putString("saveUsedTabs", save.toString());
editor.putString("saveUsedTabs", saveString);
editor.commit();
super.onPause();
}
private void initUsedTabs() {

View File

@ -30,8 +30,8 @@
<Button
android:id="@+id/buttonAdd"
android:layout_width="20dp"
android:layout_height="20dp"
android:layout_width="25dp"
android:layout_height="25dp"
android:layout_alignParentRight="true"
android:layout_centerVertical="true"
android:layout_marginRight="10dp"