Skip to content
This repository has been archived by the owner on Sep 8, 2019. It is now read-only.

Commit

Permalink
- v1.1 Beta release
Browse files Browse the repository at this point in the history
  • Loading branch information
kollerlukas committed Feb 21, 2017
1 parent d7f0ba3 commit 4ebfaaf
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 4 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ android {
applicationId "us.koller.cameraroll"
minSdkVersion 21
targetSdkVersion 25
versionCode 9
versionName "v1.0 Beta"
versionCode 10
versionName "v1.1 Beta"
renderscriptTargetApi 25
renderscriptSupportModeEnabled true
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import android.animation.AnimatorListenerAdapter;
import android.app.Activity;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.graphics.drawable.Animatable;
import android.graphics.drawable.Drawable;
Expand All @@ -15,10 +16,12 @@
import android.support.v4.content.ContextCompat;
import android.support.v4.graphics.drawable.DrawableCompat;
import android.support.v7.app.ActionBar;
import android.support.v7.app.AlertDialog;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.support.v7.widget.Toolbar;
import android.text.Html;
import android.transition.Fade;
import android.transition.Slide;
import android.transition.TransitionSet;
Expand Down Expand Up @@ -194,6 +197,18 @@ public boolean onPreDraw() {
} else {
loadRoots();
}

new AlertDialog.Builder(this)
.setTitle(R.string.warning)
.setMessage(Html.fromHtml(getString(R.string.file_explorer_warning_message)))
.setPositiveButton(R.string.ok, null)
.setNegativeButton(R.string.cancel, new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialogInterface, int i) {
finish();
}
})
.show();
}

public void loadRoots() {
Expand Down
14 changes: 12 additions & 2 deletions app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@
<string name="share">Share</string>
<string name="share_photo">Share Photo</string>
<string name="edit">Edit</string>
<string name="print">Print</string>

<string name="delete">Delete</string>
<string name="photo_deleted">Photo deleted</string>
Expand Down Expand Up @@ -91,13 +92,22 @@
<string name="photo">Photo</string>

<string name="no_files">no Files</string>
<string name="storage">Storage</string>

<string name="warning">Warning!</string>
<string name="file_explorer_warning_message">The File Explorer is an
<b>experimental</b>
feature.
<br/>
The developer does not take any responsibility for the loss of any data or files.
<br/>
<b>Use at Your own risk.</b>
</string>

<!--ImageView ContentDescription-->
<string name="image">Image</string>
<string name="indicator">Indicator</string>

<string name="video_indicator">Video Indicator</string>
<string name="hidden_folder_indicator">Hidden Folder Indicator</string>
<string name="print">Print</string>
<string name="storage">Storage</string>
</resources>

0 comments on commit 4ebfaaf

Please sign in to comment.