Browse Source

Change stop to pause in download queue view

Kevin Richter 9 years ago
parent
commit
4be0b2502e

+ 6 - 6
app/src/main/java/eu/kanade/tachiyomi/ui/download/DownloadFragment.java

@@ -29,7 +29,7 @@ public class DownloadFragment extends BaseRxFragment<DownloadPresenter> {
     private DownloadAdapter adapter;
 
     private MenuItem startButton;
-    private MenuItem stopButton;
+    private MenuItem pauseButton;
 
     private Subscription queueStatusSubscription;
     private boolean isRunning;
@@ -64,11 +64,11 @@ public class DownloadFragment extends BaseRxFragment<DownloadPresenter> {
     public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {
         inflater.inflate(R.menu.download_queue, menu);
         startButton = menu.findItem(R.id.start_queue);
-        stopButton = menu.findItem(R.id.stop_queue);
+        pauseButton = menu.findItem(R.id.pause_queue);
 
         // Menu seems to be inflated after onResume in fragments, so we initialize them here
         startButton.setVisible(!isRunning && !getPresenter().downloadManager.getQueue().isEmpty());
-        stopButton.setVisible(isRunning);
+        pauseButton.setVisible(isRunning);
     }
 
     @Override
@@ -77,7 +77,7 @@ public class DownloadFragment extends BaseRxFragment<DownloadPresenter> {
             case R.id.start_queue:
                 DownloadService.start(getActivity());
                 break;
-            case R.id.stop_queue:
+            case R.id.pause_queue:
                 DownloadService.stop(getActivity());
                 break;
         }
@@ -101,8 +101,8 @@ public class DownloadFragment extends BaseRxFragment<DownloadPresenter> {
         isRunning = running;
         if (startButton != null)
             startButton.setVisible(!running && !getPresenter().downloadManager.getQueue().isEmpty());
-        if (stopButton != null)
-            stopButton.setVisible(running);
+        if (pauseButton != null)
+            pauseButton.setVisible(running);
     }
 
     private void createAdapter() {

BIN
app/src/main/res/drawable-hdpi/ic_pause.png


BIN
app/src/main/res/drawable-ldpi/ic_pause.png


BIN
app/src/main/res/drawable-mdpi/ic_pause.png


BIN
app/src/main/res/drawable-xhdpi/ic_pause.png


BIN
app/src/main/res/drawable-xxhdpi/ic_pause.png


BIN
app/src/main/res/drawable-xxxhdpi/ic_pause.png


+ 3 - 3
app/src/main/res/menu/download_queue.xml

@@ -8,9 +8,9 @@
           android:visible="false"
           app:showAsAction="ifRoom"/>
 
-    <item android:title="@string/action_stop"
-          android:id="@+id/stop_queue"
-          android:icon="@drawable/ic_stop"
+    <item android:title="@string/action_pause"
+          android:id="@+id/pause_queue"
+          android:icon="@drawable/ic_pause"
           android:visible="false"
           app:showAsAction="ifRoom"/>
 

+ 1 - 1
app/src/main/res/values/strings.xml

@@ -35,12 +35,12 @@
     <string name="action_next_unread">Next unread</string>
     <string name="action_start">Start</string>
     <string name="action_stop">Stop</string>
+    <string name="action_pause">Pause</string>
     <string name="action_previous_chapter">Previous chapter</string>
     <string name="action_next_chapter">Next chapter</string>
     <string name="action_retry">Retry</string>
     <string name="action_display_mode">Change display mode</string>
 
-
     <!-- Buttons -->
     <string name="button_ok">OK</string>
     <string name="button_cancel">Cancel</string>