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

Commit 9186d0cb authored by Svetoslav Ganov's avatar Svetoslav Ganov
Browse files

Bug fixes in the printer dialog activity and fused printer loader.

1. Fused printers loader was not using the discovered printers to update the
    historical ones. Now if a historical printer is discovered we update its state
    with the discovered, i.e. most recent, information.

2. Fixed a bug in the destination adapter of the print job config dialog that
    was leading to a crash if all printers item is selected when there are no
    discovered printers.

3.  Updated the add printers asset in the all printers screen.

4. Historical printers were not persisted by the print dialog activity.

5. Reduced the number of printers we send per transation to avoid the binder
   transaction size limit. Added sending of printers in chunks in a place
   this was missing.

Change-Id: I88b54888360bc0e53b06bd260c2b832d0d6454b6
parent 6bd20bc4
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -80,7 +80,7 @@ import java.util.List;
public abstract class PrinterDiscoverySession {
public abstract class PrinterDiscoverySession {
    private static final String LOG_TAG = "PrinterDiscoverySession";
    private static final String LOG_TAG = "PrinterDiscoverySession";


    private static final int MAX_ITEMS_PER_CALLBACK = 100;
    private static final int MAX_ITEMS_PER_CALLBACK = 50;


    private static int sIdCounter = 0;
    private static int sIdCounter = 0;


−667 B
Loading image diff...
−596 B
Loading image diff...
−761 B
Loading image diff...
+1 −1
Original line number Original line Diff line number Diff line
@@ -29,7 +29,7 @@
    <item
    <item
        android:id="@+id/action_add_printer"
        android:id="@+id/action_add_printer"
        android:title="@null"
        android:title="@null"
        android:icon="@drawable/ic_menu_add"
        android:icon="@*android:drawable/create_contact"
        android:showAsAction="ifRoom"
        android:showAsAction="ifRoom"
        android:alphabeticShortcut="a">
        android:alphabeticShortcut="a">
    </item>
    </item>
Loading