Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8db4f458 authored by nicolasroard's avatar nicolasroard
Browse files

Fix export dialog UI

bug:10889576
bug:10712083

Change-Id: I7921c06365775625a85e3d0a997d844c42586b01
parent d04aaf62
Loading
Loading
Loading
Loading
+27 −12
Original line number Diff line number Diff line
@@ -40,7 +40,8 @@

        <TextView
                android:text="@string/size"
                android:layout_gravity="right|center_vertical"/>
                android:layout_marginLeft="8dp"
                android:layout_gravity="start|center_vertical"/>

        <EditText
                android:id="@+id/editableWidth"
@@ -60,27 +61,41 @@

        <TextView
                android:id="@+id/estimadedSize"
                android:layout_gravity="center"/>
                android:layout_marginRight="8dp"
                android:layout_gravity="end|center_vertical"/>

        <LinearLayout
                android:layout_columnSpan="5"
                android:layout_width="match_parent"
                android:layout_height="wrap_content">

            <TextView
                android:text="@string/quality"
                android:layout_margin="7dp"
                android:layout_gravity="right|center_vertical" />
                android:layout_width="wrap_content"
                android:layout_height="fill_parent"
                android:layout_margin="8dp" />

            <SeekBar
                android:id="@+id/qualitySeekBar"
                android:layout_margin="7dp"
                android:layout_margin="8dp"
                android:layout_gravity="center"
                android:max="100"
                android:progress="100"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_width="0dp"
                android:layout_weight="1"
                android:layout_columnSpan="3"
                android:minWidth="250dp" />

            <TextView
                android:id="@+id/qualityTextView"
                android:layout_margin="7dp"
                android:layout_gravity="left|center_vertical"/>
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_margin="8dp"
                android:layout_gravity="end|center_vertical" />

        </LinearLayout>


    </GridLayout>

+3 −0
Original line number Diff line number Diff line
@@ -170,6 +170,9 @@ public class ExportDialog extends DialogFragment implements View.OnClickListener

    public void updateCompressionFactor() {
        Bitmap bitmap = MasterImage.getImage().getFilteredImage();
        if (bitmap == null) {
            return;
        }
        ByteArrayOutputStream out = new ByteArrayOutputStream();
        bitmap.compress(Bitmap.CompressFormat.JPEG, mQuality, out);
        mCompressedSize = out.size();