Skip to content

Commit 23c4a1f

Browse files
committed
1 parent 579a938 commit 23c4a1f

File tree

4 files changed

+15
-14
lines changed

4 files changed

+15
-14
lines changed

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@ Save for offline is an Android app for saving webpages for offline reading.
44

55
In you web browser select 'share' , and then 'Save For Offline'
66
```
7-
This is an experimental beta version, and while it mostly works, it may have some problems. Please do report any bugs you find!
7+
This is an experimental beta version,
8+
and while it mostly works, it may have some problems.
9+
10+
Please do report any bugs you find!
811
```
912

1013
## Screenshots
@@ -63,5 +66,4 @@ Please report any bugs you find, and contribute if you can!
6366
You should have received a copy of the GNU General Public License along
6467
with this program; if not, write to the Free Software Foundation, Inc.,
6568
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
66-
```
67-
69+
```

app/src/main/AndroidManifest.xml

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,10 @@
1313

1414
<activity
1515
android:name=".MainActivity"
16-
android:label="@string/app_name"
17-
>
16+
android:label="@string/app_name">
1817
<intent-filter>
1918
<action android:name="android.intent.action.MAIN" />
20-
21-
<category android:name="android.intent.category.LAUNCHER" />
19+
<category android:name="android.intent.category.LAUNCHER" />
2220
</intent-filter>
2321
</activity>
2422
<activity
@@ -33,8 +31,7 @@
3331
</activity>
3432
<activity
3533
android:name=".ViewActivity"
36-
37-
android:parentActivityName=".MainActivity">
34+
android:parentActivityName=".MainActivity">
3835
</activity>
3936
<activity
4037
android:name=".SaveActivity"
@@ -48,11 +45,15 @@
4845

4946
<activity
5047
android:name=".Preferences"
51-
>
48+
android:parentActivityName=".MainActivity">
49+
<intent-filter>
50+
<action android:name="android.intent.action.MANAGE_NETWORK_USAGE" />
51+
<category android:name="android.intent.category.DEFAULT" />
52+
</intent-filter>
5253
</activity>
5354

54-
<service android:name="jonas.tool.saveForOffline.SaveService" />
55-
<service android:name="jonas.tool.saveForOffline.ScreenshotService" />
55+
<service android:name=".SaveService" />
56+
<service android:name=".ScreenshotService" />
5657

5758
</application>
5859

app/src/main/java/jonas/tool/saveForOffline/MainActivity.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,6 @@ public boolean onOptionsItemSelected(MenuItem item) {
175175
case R.id.action_sort_by:
176176

177177
AlertDialog.Builder builder = new AlertDialog.Builder(MainActivity.this);
178-
builder.setTitle("Sort by");
179178
builder.setSingleChoiceItems(R.array.sort_by, sortOrder, new DialogInterface.OnClickListener() {
180179
public void onClick(DialogInterface dialog, int which) {
181180
sortOrder = which;

app/src/main/java/jonas/tool/saveForOffline/SaveService.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,6 @@ public void onHandleIntent(Intent intent) {
132132
} catch (Exception e) {
133133
e.printStackTrace();
134134

135-
notifyError("Could not save page", "Failed to download main HTML file.");
136135
//if we crash, delete all files saved so far
137136
File file = new File(destinationDirectory);
138137
DirectoryHelper.deleteDirectory(file);

0 commit comments

Comments
 (0)