remove unused activity
This commit is contained in:
parent
575b29396b
commit
14882d43f5
3 changed files with 0 additions and 50 deletions
|
@ -40,9 +40,6 @@
|
|||
android:label="@string/title_activity_settings" >
|
||||
</activity>
|
||||
|
||||
<activity android:name=".DownloadImagesActivity">
|
||||
</activity>
|
||||
|
||||
<activity
|
||||
android:name=".SyncIntervalSelectorActivity"
|
||||
android:label="@string/title_activity_sync_interval_selector" >
|
||||
|
|
|
@ -50,7 +50,6 @@
|
|||
android:name=".SettingsActivity"
|
||||
android:configChanges="keyboardHidden|orientation|screenSize"
|
||||
android:label="@string/title_activity_settings" />
|
||||
<activity android:name=".DownloadImagesActivity" />
|
||||
<activity
|
||||
android:name=".SyncIntervalSelectorActivity"
|
||||
android:label="@string/title_activity_sync_interval_selector" />
|
||||
|
|
|
@ -1,46 +0,0 @@
|
|||
package de.luhmer.owncloudnewsreader;
|
||||
|
||||
import android.app.Activity;
|
||||
import android.app.AlertDialog;
|
||||
import android.content.DialogInterface;
|
||||
import android.content.Intent;
|
||||
import android.os.Bundle;
|
||||
|
||||
import de.luhmer.owncloudnewsreader.services.DownloadImagesService;
|
||||
|
||||
public class DownloadImagesActivity extends Activity {
|
||||
public void onCreate(Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
|
||||
final long highestItemIdBeforeSync = getIntent().getLongExtra("highestItemIdBeforeSync", 0);
|
||||
|
||||
AlertDialog.Builder alertDialogBuilder = new AlertDialog.Builder(this);
|
||||
|
||||
// set title
|
||||
alertDialogBuilder.setTitle(getString(R.string.no_wifi_available));
|
||||
|
||||
// set dialog message
|
||||
alertDialogBuilder
|
||||
.setMessage(getString(R.string.do_you_want_to_download_without_wifi))
|
||||
.setCancelable(true)
|
||||
.setPositiveButton(getString(android.R.string.yes) ,new DialogInterface.OnClickListener() {
|
||||
public void onClick(DialogInterface dialog,int id) {
|
||||
Intent data = new Intent();
|
||||
data.putExtra(DownloadImagesService.LAST_ITEM_ID, highestItemIdBeforeSync);
|
||||
data.putExtra(DownloadImagesService.DOWNLOAD_MODE_STRING, DownloadImagesService.DownloadMode.PICTURES_ONLY);
|
||||
DownloadImagesService.enqueueWork(DownloadImagesActivity.this, data);
|
||||
|
||||
DownloadImagesActivity.this.finish();
|
||||
}
|
||||
})
|
||||
.setNegativeButton(getString(android.R.string.no), new DialogInterface.OnClickListener() {
|
||||
public void onClick(DialogInterface dialog, int id) {
|
||||
DownloadImagesActivity.this.finish();
|
||||
}
|
||||
});
|
||||
|
||||
AlertDialog alertDialog = alertDialogBuilder.create();
|
||||
|
||||
alertDialog.show();
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue