-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
26 changed files
with
878 additions
and
1,209 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
Jan Kuehle <[email protected]> | ||
Jan Kuehle <[email protected]> <[email protected]> | ||
Jan Kuehle <[email protected]> <Jan@Jan-Desktop> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<div> | ||
André Marcelo Alvarenga<br> | ||
<i>for the brazilian portuguese (pt_BR) translation.</i> | ||
</div> | ||
<div> | ||
gluon9<br> | ||
<i>for the french (fr) translation.</i> | ||
</div> | ||
<div> | ||
Igor Almeida<br> | ||
<i>for the help with F-Droid.</i> | ||
</div> | ||
<div> | ||
Jesper Runeson<br> | ||
<i>for the amazing app icon.</i> | ||
</div> | ||
<div> | ||
Mihai Ibanescu<br> | ||
<i>for the Fuel Consumption setting.</i> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
/* | ||
* Copyright 2017 Jan Kühle | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
package me.kuehle.carreport.util; | ||
|
||
import android.content.Context; | ||
import android.text.Html; | ||
import android.text.Spanned; | ||
import android.util.Log; | ||
|
||
import java.io.IOException; | ||
import java.io.InputStream; | ||
|
||
public class Assets { | ||
private static final String TAG = "Assets"; | ||
|
||
public static Spanned getHtml(Context context, String path) { | ||
String result; | ||
try { | ||
InputStream in = context.getAssets().open(path); | ||
byte[] buffer = new byte[in.available()]; | ||
in.read(buffer); | ||
in.close(); | ||
|
||
result = new String(buffer); | ||
} catch (IOException e) { | ||
Log.e(TAG, "Error reading help html file.", e); | ||
result = "Error reading help html file."; | ||
} | ||
|
||
return Html.fromHtml(result); | ||
} | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
$Inkscape = "C:\Program Files\Inkscape\inkscape.com" | ||
$Resources = "$PSScriptRoot" | ||
$Destination = Join-Path $PSScriptRoot "..\app\src\main\res" | ||
|
||
|
||
Write-Host ----------------------------------------------- | ||
Write-Host ic_c_launcher_48dp | ||
Write-Host ----------------------------------------------- | ||
|
||
$Sizes = @( "xxxhdpi", "xxhdpi", "xhdpi", "hdpi", "mdpi" ) | ||
foreach ($size in $Sizes) | ||
{ | ||
& $Inkscape ` | ||
--without-gui ` | ||
--export-png="$Destination\drawable-$size\ic_c_launcher_48dp.png" ` | ||
--export-id="e-$size" ` | ||
--export-dpi=96 ` | ||
"$Resources\ic_launcher.svg" | ||
} | ||
|
||
Write-Host ----------------------------------------------- | ||
Write-Host ic_c_launcher_80dp | ||
Write-Host ----------------------------------------------- | ||
|
||
$Sizes = @( "xxhdpi", "xhdpi", "hdpi", "mdpi" ) | ||
foreach ($size in $Sizes) | ||
{ | ||
& $Inkscape ` | ||
--without-gui ` | ||
--export-png="$Destination\drawable-$size\ic_c_launcher_96dp.png" ` | ||
--export-id="e-$size" ` | ||
--export-dpi=192 ` | ||
"$Resources\ic_launcher.svg" | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.