passdialog: seconds field and some minor layout issues
This commit is contained in:
parent
840d57bf3b
commit
31cc083163
|
@ -73,7 +73,7 @@ public class CacheTTLSpinner extends AppCompatSpinner {
|
|||
public long getSelectedTimeToLive() {
|
||||
int selectedItemPosition = getSelectedItemPosition();
|
||||
Object item = getAdapter().getItem(selectedItemPosition);
|
||||
return ((Cursor) item).getLong(0);
|
||||
return ((Cursor) item).getLong(1);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -39,7 +39,7 @@
|
|||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center"
|
||||
android:gravity="center_vertical"
|
||||
android:layout_margin="6dp">
|
||||
android:layout_margin="8dp">
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
|
|
|
@ -5,12 +5,13 @@
|
|||
android:orientation="vertical"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:gravity="center">
|
||||
android:gravity="center_vertical">
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:id="@+id/simple_item_text"
|
||||
android:textAppearance="@android:style/TextAppearance.Medium"
|
||||
android:padding="8dp"
|
||||
tools:text="itemtext" />
|
||||
</LinearLayout>
|
Loading…
Reference in a new issue