Reduced lag and increased button size for older devices&users.
This commit is contained in:
parent
cbf6540889
commit
fc94f184d2
|
@ -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() {
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue