Skip to content

Commit

Permalink
No commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
JonasCz committed Feb 16, 2015
1 parent 579a938 commit 23c4a1f
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 14 deletions.
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@ Save for offline is an Android app for saving webpages for offline reading.

In you web browser select 'share' , and then 'Save For Offline'
```
This is an experimental beta version, and while it mostly works, it may have some problems. Please do report any bugs you find!
This is an experimental beta version,
and while it mostly works, it may have some problems.
Please do report any bugs you find!
```

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

```
19 changes: 10 additions & 9 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,10 @@

<activity
android:name=".MainActivity"
android:label="@string/app_name"
>
android:label="@string/app_name">
<intent-filter>
<action android:name="android.intent.action.MAIN" />

<category android:name="android.intent.category.LAUNCHER" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
Expand All @@ -33,8 +31,7 @@
</activity>
<activity
android:name=".ViewActivity"

android:parentActivityName=".MainActivity">
android:parentActivityName=".MainActivity">
</activity>
<activity
android:name=".SaveActivity"
Expand All @@ -48,11 +45,15 @@

<activity
android:name=".Preferences"
>
android:parentActivityName=".MainActivity">
<intent-filter>
<action android:name="android.intent.action.MANAGE_NETWORK_USAGE" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>

<service android:name="jonas.tool.saveForOffline.SaveService" />
<service android:name="jonas.tool.saveForOffline.ScreenshotService" />
<service android:name=".SaveService" />
<service android:name=".ScreenshotService" />

</application>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,6 @@ public boolean onOptionsItemSelected(MenuItem item) {
case R.id.action_sort_by:

AlertDialog.Builder builder = new AlertDialog.Builder(MainActivity.this);
builder.setTitle("Sort by");
builder.setSingleChoiceItems(R.array.sort_by, sortOrder, new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int which) {
sortOrder = which;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,6 @@ public void onHandleIntent(Intent intent) {
} catch (Exception e) {
e.printStackTrace();

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

0 comments on commit 23c4a1f

Please sign in to comment.