Reduced lag and increased button size for older devices&users.
This commit is contained in:
parent
cbf6540889
commit
fc94f184d2
2 changed files with 11 additions and 4 deletions
|
@ -40,7 +40,7 @@ public class ContentSettingsMain extends Fragment {
|
||||||
RecyclerView usedTabsView;
|
RecyclerView usedTabsView;
|
||||||
|
|
||||||
List<String> usedTabs = new ArrayList<>();
|
List<String> usedTabs = new ArrayList<>();
|
||||||
|
private String saveString;
|
||||||
public String[] allTabs = new String[7];
|
public String[] allTabs = new String[7];
|
||||||
|
|
||||||
@Override
|
@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 sharedPreferences = android.preference.PreferenceManager.getDefaultSharedPreferences(getContext());
|
||||||
SharedPreferences.Editor editor = sharedPreferences.edit();
|
SharedPreferences.Editor editor = sharedPreferences.edit();
|
||||||
editor.putString("saveUsedTabs", save.toString());
|
editor.putString("saveUsedTabs", saveString);
|
||||||
editor.commit();
|
editor.commit();
|
||||||
|
super.onPause();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void initUsedTabs() {
|
private void initUsedTabs() {
|
||||||
|
|
|
@ -30,8 +30,8 @@
|
||||||
|
|
||||||
<Button
|
<Button
|
||||||
android:id="@+id/buttonAdd"
|
android:id="@+id/buttonAdd"
|
||||||
android:layout_width="20dp"
|
android:layout_width="25dp"
|
||||||
android:layout_height="20dp"
|
android:layout_height="25dp"
|
||||||
android:layout_alignParentRight="true"
|
android:layout_alignParentRight="true"
|
||||||
android:layout_centerVertical="true"
|
android:layout_centerVertical="true"
|
||||||
android:layout_marginRight="10dp"
|
android:layout_marginRight="10dp"
|
||||||
|
|
Loading…
Add table
Reference in a new issue