[PB14] Cosmetic fixes to the progress bar

Bug: 7600384
Change-Id: I33ea155c0c97c7ead07686c4d2a9e0d98be9929c
main
Jean Chalard 2013-04-30 17:54:09 +09:00
parent 01170ffebe
commit 7eff677c29
2 changed files with 4 additions and 0 deletions

View File

@ -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

View File

@ -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) {