Skip to content
Snippets Groups Projects
Commit 2471328a authored by Janne Mareike Koschinski's avatar Janne Mareike Koschinski
Browse files

Fixed even more memory leaks.

parent a211edfe
No related branches found
No related tags found
No related merge requests found
Showing
with 127 additions and 102 deletions
......@@ -54,6 +54,11 @@ public class ObservableList<T> extends ArrayList<T> implements IObservableList<U
this.callback.removeCallback(callback);
}
@Override
public void removeCallbacks() {
callback.removeCallbacks();
}
private int getPosition() {
return isEmpty() ? 0 : size() - 1;
}
......
......
......@@ -66,6 +66,11 @@ public class ObservableSet<T> extends HashSet<T> implements IObservableSet<Eleme
this.callback.removeCallback(callback);
}
@Override
public void removeCallbacks() {
callback.removeCallbacks();
}
@Override
public boolean add(T object) {
assertNotNull(this.callback);
......
......
......@@ -71,6 +71,11 @@ public class ObservableSortedList<T> implements IObservableList<UICallback, T> {
this.callback.removeCallback(callback);
}
@Override
public void removeCallbacks() {
callback.removeCallbacks();
}
public void setComparator(@NonNull ItemComparator<T> comparator) {
this.comparator = comparator;
}
......
......
File changed. Contains only whitespace changes. Show whitespace changes.
File changed. Contains only whitespace changes. Show whitespace changes.
File changed. Contains only whitespace changes. Show whitespace changes.
File changed. Contains only whitespace changes. Show whitespace changes.
......@@ -45,6 +45,7 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<TextView
style="@style/TextAppearance.AppCompat.Button"
android:layout_width="match_parent"
......
......
File changed. Contains only whitespace changes. Show whitespace changes.
File changed. Contains only whitespace changes. Show whitespace changes.
......@@ -29,9 +29,11 @@
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin">
<android.support.design.widget.TextInputLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<android.support.v7.widget.AppCompatEditText
android:id="@+id/username"
android:layout_width="match_parent"
......@@ -43,6 +45,7 @@
<android.support.design.widget.TextInputLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<android.support.v7.widget.AppCompatEditText
android:id="@+id/password"
android:layout_width="match_parent"
......
......
File changed. Contains only whitespace changes. Show whitespace changes.
File changed. Contains only whitespace changes. Show whitespace changes.
File changed. Contains only whitespace changes. Show whitespace changes.
......@@ -22,15 +22,16 @@
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:padding="32dp">
<android.support.design.widget.TextInputLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="@string/labelHostname">
<android.support.design.widget.TextInputEditText
android:id="@+id/host"
android:layout_width="match_parent"
......@@ -42,6 +43,7 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="@string/labelPort">
<android.support.design.widget.TextInputEditText
android:id="@+id/port"
android:layout_width="match_parent"
......
......
......@@ -31,6 +31,7 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="@string/account_name">
<android.support.design.widget.TextInputEditText
android:id="@+id/name"
android:layout_width="match_parent"
......
......
......@@ -31,6 +31,7 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="@string/username">
<android.support.design.widget.TextInputEditText
android:id="@+id/user"
android:layout_width="match_parent"
......@@ -42,6 +43,7 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="@string/password">
<android.support.design.widget.TextInputEditText
android:id="@+id/pass"
android:layout_width="match_parent"
......
......
......@@ -25,9 +25,10 @@
android:layout_width="match_parent"
android:layout_height="400dp"
android:padding="32dp">
<LinearLayout
android:id="@+id/container"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
android:layout_height="wrap_content"
android:orientation="vertical"/>
</ScrollView>
\ No newline at end of file
File changed. Contains only whitespace changes. Show whitespace changes.
File changed. Contains only whitespace changes. Show whitespace changes.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment