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

Commit 37bbaea8 authored by Jean Chalard's avatar Jean Chalard Committed by Android (Google) Code Review
Browse files

Merge "[PB14] Cosmetic fixes to the progress bar"

parents 71c1e50f 7eff677c
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -78,6 +78,8 @@
  <com.android.inputmethod.dictionarypack.ButtonSwitcher
      android:id="@+android:id/wordlist_button_switcher"
      android:layout_weight="0"
      android:layout_marginStart="13dip"
      android:layout_marginLeft="13dip"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content">
    <Button
+2 −0
Original line number Diff line number Diff line
@@ -123,6 +123,7 @@ public class DictionaryDownloadProgressBar extends ProgressBar {
                final UpdateHelper updateHelper = new UpdateHelper();
                final Query query = new Query().setFilterById(mId);
                int lastProgress = 0;
                setIndeterminate(true);
                while (!isInterrupted()) {
                    final Cursor cursor = mDownloadManager.query(query);
                    if (null == cursor) {
@@ -156,6 +157,7 @@ public class DictionaryDownloadProgressBar extends ProgressBar {
            private int mProgress;
            @Override
            public void run() {
                setIndeterminate(false);
                setProgress(mProgress);
            }
            public void setProgressFromAnotherThread(final int progress) {