-
Notifications
You must be signed in to change notification settings - Fork 555
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1748 from DroidPlanner/release-3.2.1-beta8
Release 3.2.1 beta 8
- Loading branch information
Showing
22 changed files
with
269 additions
and
107 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
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,42 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
|
||
|
||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
xmlns:tools="http://schemas.android.com/tools" | ||
android:id="@+id/chg_row" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:gravity="center_vertical" | ||
android:minHeight="48dp" | ||
android:orientation="horizontal"> | ||
|
||
<!-- ChangeLog Row [Bullet Point] You have to use the id="chg_textbullet" --> | ||
<TextView | ||
android:id="@+id/chg_textbullet" | ||
android:layout_width="wrap_content" | ||
android:layout_height="match_parent" | ||
android:gravity="center_vertical" | ||
android:paddingLeft="12dp" | ||
android:paddingStart="12dp" | ||
android:text="@string/changelog_row_bulletpoint" | ||
android:textAppearance="@android:style/TextAppearance.Large" | ||
android:textColor="@color/chglib_material_color_text_1" /> | ||
|
||
|
||
<!-- ChangeLog Row [Text] You have to use the id="chg_text" --> | ||
<TextView | ||
android:id="@+id/chg_text" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:gravity="center_vertical" | ||
android:minHeight="48dp" | ||
android:paddingLeft="8dp" | ||
android:paddingRight="8dp" | ||
android:paddingBottom="4dp" | ||
android:paddingTop="4dp" | ||
android:textColor="@color/chglib_material_color_text_1" | ||
android:textSize="@dimen/chglib_material_list_fontsize" | ||
tools:text="Use DashClock with Android 4.2's Daydream feature; great for use with desktop docks!" /> | ||
</LinearLayout> | ||
|
||
|
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 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
xmlns:tools="http://schemas.android.com/tools" | ||
android:id="@+id/chg_rowheader" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:gravity="center_vertical" | ||
android:minHeight="56dp" | ||
android:orientation="horizontal" | ||
android:paddingLeft="12dp" | ||
android:paddingRight="12dp"> | ||
|
||
|
||
<!-- ChangeLog Header [Version] You have to use the id="chg_headerVersion" --> | ||
<TextView | ||
android:id="@+id/chg_headerVersion" | ||
style="?android:attr/listSeparatorTextViewStyle" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:gravity="center_vertical" | ||
android:paddingBottom="8dp" | ||
android:paddingTop="8dp" | ||
android:textAllCaps="true" | ||
android:textColor="@color/chglib_material_color_text_1" | ||
android:textSize="@dimen/chglib_material_list_suheader_fontsize" | ||
android:textStyle="bold" | ||
tools:text="VERSION 1.5" /> | ||
|
||
<!-- ChangeLog Header [Date] You have to use the id="chg_headerDate" --> | ||
<TextView | ||
android:id="@+id/chg_headerDate" | ||
style="?android:attr/listSeparatorTextViewStyle" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:gravity="center_vertical" | ||
android:paddingBottom="8dp" | ||
android:paddingTop="8dp" | ||
tools:text="JUNE 17,2013" | ||
android:textAllCaps="true" | ||
android:textColor="@color/chglib_material_color_text_1" | ||
android:textSize="@dimen/chglib_material_list_suheader_fontsize" | ||
android:textStyle="bold" /> | ||
|
||
|
||
</LinearLayout> |
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
28 changes: 28 additions & 0 deletions
28
Android/src/org/droidplanner/android/dialogs/ClearBTPreferenceFragmentCompat.java
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,28 @@ | ||
package org.droidplanner.android.dialogs; | ||
|
||
import android.os.Bundle; | ||
import android.support.v7.preference.Preference; | ||
import android.support.v7.preference.PreferenceDialogFragmentCompat; | ||
|
||
import org.droidplanner.android.utils.prefs.DroidPlannerPrefs; | ||
|
||
/** | ||
* Created by fhuya on 5/12/2016. | ||
*/ | ||
public class ClearBTPreferenceFragmentCompat extends PreferenceDialogFragmentCompat { | ||
|
||
public static ClearBTPreferenceFragmentCompat newInstance(Preference preference){ | ||
ClearBTPreferenceFragmentCompat fragment = new ClearBTPreferenceFragmentCompat(); | ||
Bundle bundle = new Bundle(1); | ||
bundle.putString(ARG_KEY, preference.getKey()); | ||
fragment.setArguments(bundle); | ||
return fragment; | ||
} | ||
|
||
@Override | ||
public void onDialogClosed(boolean positiveResult) { | ||
if(positiveResult) { | ||
DroidPlannerPrefs.getInstance(getContext()).setBluetoothDeviceAddress(""); | ||
} | ||
} | ||
} |
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
Oops, something went wrong.