Merge branch 'master' of https://gitlab.com/relan/fdroidclient
This commit is contained in:
commit
17b6ca83d7
@ -2,12 +2,11 @@
|
|||||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
android:layout_width="fill_parent"
|
android:layout_width="fill_parent"
|
||||||
android:layout_height="fill_parent"
|
android:layout_height="fill_parent"
|
||||||
android:paddingLeft="8dp"
|
android:paddingLeft="24dp"
|
||||||
android:paddingStart="8dp"
|
android:paddingStart="24dp"
|
||||||
android:paddingRight="8dp"
|
android:paddingRight="24dp"
|
||||||
android:paddingEnd="8dp"
|
android:paddingEnd="24dp"
|
||||||
android:paddingTop="6dp"
|
android:paddingTop="20dp"
|
||||||
android:paddingBottom="6dp"
|
|
||||||
android:baselineAligned="false"
|
android:baselineAligned="false"
|
||||||
android:orientation="vertical">
|
android:orientation="vertical">
|
||||||
|
|
||||||
|
@ -3,7 +3,11 @@
|
|||||||
xmlns:tools="http://schemas.android.com/tools"
|
xmlns:tools="http://schemas.android.com/tools"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:padding="6dp">
|
android:paddingLeft="24dp"
|
||||||
|
android:paddingStart="24dp"
|
||||||
|
android:paddingRight="24dp"
|
||||||
|
android:paddingEnd="24dp"
|
||||||
|
android:paddingTop="20dp">
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:id="@+id/add_repo_form"
|
android:id="@+id/add_repo_form"
|
||||||
|
@ -1,12 +1,17 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent" >
|
android:layout_height="match_parent"
|
||||||
|
android:paddingLeft="24dp"
|
||||||
|
android:paddingStart="24dp"
|
||||||
|
android:paddingRight="24dp"
|
||||||
|
android:paddingEnd="24dp"
|
||||||
|
android:paddingTop="20dp" >
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:id="@+id/reposcanprogresslayout"
|
android:id="@+id/reposcanprogresslayout"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="50dp"
|
android:layout_height="wrap_content"
|
||||||
android:layout_alignParentTop="true"
|
android:layout_alignParentTop="true"
|
||||||
android:layout_alignParentLeft="true"
|
android:layout_alignParentLeft="true"
|
||||||
android:layout_alignParentStart="true"
|
android:layout_alignParentStart="true"
|
||||||
@ -42,4 +47,4 @@
|
|||||||
android:padding="8sp"
|
android:padding="8sp"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
</RelativeLayout>
|
</RelativeLayout>
|
||||||
|
14
F-Droid/res/values-v11/styles.xml
Normal file
14
F-Droid/res/values-v11/styles.xml
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<resources>
|
||||||
|
|
||||||
|
<style name="AlertDialogBaseThemeDark" parent="Theme.AppCompat.Dialog.Alert">
|
||||||
|
<item name="android:windowMinWidthMajor">@android:dimen/dialog_min_width_major</item>
|
||||||
|
<item name="android:windowMinWidthMinor">@android:dimen/dialog_min_width_minor</item>
|
||||||
|
</style>
|
||||||
|
|
||||||
|
<style name="AlertDialogBaseThemeLight" parent="Theme.AppCompat.Light.Dialog.Alert">
|
||||||
|
<item name="android:windowMinWidthMajor">@android:dimen/dialog_min_width_major</item>
|
||||||
|
<item name="android:windowMinWidthMinor">@android:dimen/dialog_min_width_minor</item>
|
||||||
|
</style>
|
||||||
|
|
||||||
|
</resources>
|
@ -3,6 +3,7 @@
|
|||||||
|
|
||||||
<style name="AppThemeDark" parent="AppBaseThemeDark">
|
<style name="AppThemeDark" parent="AppBaseThemeDark">
|
||||||
<!-- customizations that are not API-level specific go here. -->
|
<!-- customizations that are not API-level specific go here. -->
|
||||||
|
<item name="android:alertDialogTheme">@style/AlertDialogThemeDark</item>
|
||||||
<item name="android:colorEdgeEffect">@color/fdroid_blue</item>
|
<item name="android:colorEdgeEffect">@color/fdroid_blue</item>
|
||||||
<item name="android:colorControlActivated">@color/fdroid_green</item>
|
<item name="android:colorControlActivated">@color/fdroid_green</item>
|
||||||
<item name="android:colorControlHighlight">@color/fdroid_green</item>
|
<item name="android:colorControlHighlight">@color/fdroid_green</item>
|
||||||
@ -10,7 +11,8 @@
|
|||||||
|
|
||||||
<style name="AppThemeLight" parent="AppBaseThemeLight">
|
<style name="AppThemeLight" parent="AppBaseThemeLight">
|
||||||
<!-- customizations that are not API-level specific go here. -->
|
<!-- customizations that are not API-level specific go here. -->
|
||||||
|
<item name="android:alertDialogTheme">@style/AlertDialogThemeLight</item>
|
||||||
<item name="android:colorEdgeEffect">@color/fdroid_blue</item>
|
<item name="android:colorEdgeEffect">@color/fdroid_blue</item>
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
</resources>
|
</resources>
|
||||||
|
@ -6,6 +6,8 @@
|
|||||||
<item name="colorPrimary">@color/fdroid_blue</item>
|
<item name="colorPrimary">@color/fdroid_blue</item>
|
||||||
<item name="colorPrimaryDark">@color/fdroid_blue_dark</item>
|
<item name="colorPrimaryDark">@color/fdroid_blue_dark</item>
|
||||||
<item name="colorAccent">@color/fdroid_green</item>
|
<item name="colorAccent">@color/fdroid_green</item>
|
||||||
|
<item name="android:textColorLink">@color/fdroid_green</item>
|
||||||
|
<item name="alertDialogTheme">@style/AlertDialogThemeDark</item>
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<style name="AppBaseThemeLight" parent="Theme.AppCompat.Light.DarkActionBar">
|
<style name="AppBaseThemeLight" parent="Theme.AppCompat.Light.DarkActionBar">
|
||||||
@ -14,17 +16,14 @@
|
|||||||
<item name="colorPrimary">@color/fdroid_blue</item>
|
<item name="colorPrimary">@color/fdroid_blue</item>
|
||||||
<item name="colorPrimaryDark">@color/fdroid_blue_dark</item>
|
<item name="colorPrimaryDark">@color/fdroid_blue_dark</item>
|
||||||
<item name="colorAccent">@color/fdroid_green</item>
|
<item name="colorAccent">@color/fdroid_green</item>
|
||||||
|
<item name="android:textColorLink">@color/fdroid_green</item>
|
||||||
|
<item name="alertDialogTheme">@style/AlertDialogThemeLight</item>
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<color name="black">#FF000000</color>
|
<color name="black">#FF000000</color>
|
||||||
<color name="white">#FFFFFFFF</color>
|
<color name="white">#FFFFFFFF</color>
|
||||||
<color name="red">#FFFF0000</color>
|
<color name="red">#FFFF0000</color>
|
||||||
|
|
||||||
<style name="AboutDialogLight" parent="@android:style/Theme.Dialog">
|
|
||||||
<item name="@android:windowBackground">@color/black</item>
|
|
||||||
<item name="@android:textColor">@color/white</item>
|
|
||||||
</style>
|
|
||||||
|
|
||||||
<style name="AppThemeDark" parent="AppBaseThemeDark">
|
<style name="AppThemeDark" parent="AppBaseThemeDark">
|
||||||
<!-- customizations that are not API-level specific go here. -->
|
<!-- customizations that are not API-level specific go here. -->
|
||||||
</style>
|
</style>
|
||||||
@ -33,6 +32,16 @@
|
|||||||
<!-- customizations that are not API-level specific go here. -->
|
<!-- customizations that are not API-level specific go here. -->
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
|
<style name="AlertDialogBaseThemeDark" parent="Theme.AppCompat.Dialog.Alert" />
|
||||||
|
<style name="AlertDialogThemeDark" parent="AlertDialogBaseThemeDark">
|
||||||
|
<item name="colorAccent">@color/fdroid_green</item>
|
||||||
|
</style>
|
||||||
|
|
||||||
|
<style name="AlertDialogBaseThemeLight" parent="Theme.AppCompat.Light.Dialog.Alert" />
|
||||||
|
<style name="AlertDialogThemeLight" parent="AlertDialogBaseThemeLight">
|
||||||
|
<item name="colorAccent">@color/fdroid_green</item>
|
||||||
|
</style>
|
||||||
|
|
||||||
<style name="SwapTheme.Wizard" parent="AppThemeDark">
|
<style name="SwapTheme.Wizard" parent="AppThemeDark">
|
||||||
<item name="android:windowBackground">@drawable/swap_window_background</item>
|
<item name="android:windowBackground">@drawable/swap_window_background</item>
|
||||||
<item name="android:actionBarStyle">@style/Widget.AppCompat.ActionBar.Solid</item>
|
<item name="android:actionBarStyle">@style/Widget.AppCompat.ActionBar.Solid</item>
|
||||||
|
@ -21,7 +21,6 @@
|
|||||||
package org.fdroid.fdroid;
|
package org.fdroid.fdroid;
|
||||||
|
|
||||||
import android.app.Activity;
|
import android.app.Activity;
|
||||||
import android.app.AlertDialog;
|
|
||||||
import android.app.ProgressDialog;
|
import android.app.ProgressDialog;
|
||||||
import android.bluetooth.BluetoothAdapter;
|
import android.bluetooth.BluetoothAdapter;
|
||||||
import android.content.ActivityNotFoundException;
|
import android.content.ActivityNotFoundException;
|
||||||
@ -43,6 +42,7 @@ import android.support.v4.app.ListFragment;
|
|||||||
import android.support.v4.app.NavUtils;
|
import android.support.v4.app.NavUtils;
|
||||||
import android.support.v4.view.MenuItemCompat;
|
import android.support.v4.view.MenuItemCompat;
|
||||||
import android.support.v7.app.ActionBarActivity;
|
import android.support.v7.app.ActionBarActivity;
|
||||||
|
import android.support.v7.app.AlertDialog;
|
||||||
import android.text.Html;
|
import android.text.Html;
|
||||||
import android.text.Layout;
|
import android.text.Layout;
|
||||||
import android.text.Selection;
|
import android.text.Selection;
|
||||||
|
@ -19,7 +19,6 @@
|
|||||||
|
|
||||||
package org.fdroid.fdroid;
|
package org.fdroid.fdroid;
|
||||||
|
|
||||||
import android.app.AlertDialog;
|
|
||||||
import android.app.NotificationManager;
|
import android.app.NotificationManager;
|
||||||
import android.app.SearchManager;
|
import android.app.SearchManager;
|
||||||
import android.bluetooth.BluetoothAdapter;
|
import android.bluetooth.BluetoothAdapter;
|
||||||
@ -30,13 +29,12 @@ import android.content.pm.PackageInfo;
|
|||||||
import android.content.res.Configuration;
|
import android.content.res.Configuration;
|
||||||
import android.database.ContentObserver;
|
import android.database.ContentObserver;
|
||||||
import android.net.Uri;
|
import android.net.Uri;
|
||||||
import android.os.Build;
|
|
||||||
import android.os.Bundle;
|
import android.os.Bundle;
|
||||||
import android.support.v4.view.ViewPager;
|
import android.support.v4.view.ViewPager;
|
||||||
import android.support.v7.app.ActionBarActivity;
|
import android.support.v7.app.ActionBarActivity;
|
||||||
|
import android.support.v7.app.AlertDialog;
|
||||||
import android.text.TextUtils;
|
import android.text.TextUtils;
|
||||||
import android.util.Log;
|
import android.util.Log;
|
||||||
import android.view.ContextThemeWrapper;
|
|
||||||
import android.view.LayoutInflater;
|
import android.view.LayoutInflater;
|
||||||
import android.view.Menu;
|
import android.view.Menu;
|
||||||
import android.view.MenuItem;
|
import android.view.MenuItem;
|
||||||
@ -279,16 +277,7 @@ public class FDroid extends ActionBarActivity {
|
|||||||
return true;
|
return true;
|
||||||
|
|
||||||
case R.id.action_about:
|
case R.id.action_about:
|
||||||
View view;
|
View view = LayoutInflater.from(this).inflate(R.layout.about, null);
|
||||||
if (Build.VERSION.SDK_INT >= 11) {
|
|
||||||
LayoutInflater li = LayoutInflater.from(this);
|
|
||||||
view = li.inflate(R.layout.about, null);
|
|
||||||
} else {
|
|
||||||
view = View.inflate(
|
|
||||||
new ContextThemeWrapper(this, R.style.AboutDialogLight),
|
|
||||||
R.layout.about, null);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Fill in the version...
|
// Fill in the version...
|
||||||
try {
|
try {
|
||||||
PackageInfo pi = getPackageManager()
|
PackageInfo pi = getPackageManager()
|
||||||
@ -299,15 +288,7 @@ public class FDroid extends ActionBarActivity {
|
|||||||
} catch (Exception ignored) {
|
} catch (Exception ignored) {
|
||||||
}
|
}
|
||||||
|
|
||||||
AlertDialog.Builder builder;
|
AlertDialog.Builder builder = new AlertDialog.Builder(this).setView(view);
|
||||||
if (Build.VERSION.SDK_INT >= 11) {
|
|
||||||
builder = new AlertDialog.Builder(this).setView(view);
|
|
||||||
} else {
|
|
||||||
builder = new AlertDialog.Builder(
|
|
||||||
new ContextThemeWrapper(
|
|
||||||
this, R.style.AboutDialogLight)
|
|
||||||
).setView(view);
|
|
||||||
}
|
|
||||||
final AlertDialog alrt = builder.create();
|
final AlertDialog alrt = builder.create();
|
||||||
alrt.setTitle(getString(R.string.about_title));
|
alrt.setTitle(getString(R.string.about_title));
|
||||||
alrt.setButton(AlertDialog.BUTTON_NEUTRAL,
|
alrt.setButton(AlertDialog.BUTTON_NEUTRAL,
|
||||||
|
@ -18,7 +18,6 @@
|
|||||||
package org.fdroid.fdroid.installer;
|
package org.fdroid.fdroid.installer;
|
||||||
|
|
||||||
import android.annotation.TargetApi;
|
import android.annotation.TargetApi;
|
||||||
import android.app.AlertDialog;
|
|
||||||
import android.content.Context;
|
import android.content.Context;
|
||||||
import android.content.pm.ApplicationInfo;
|
import android.content.pm.ApplicationInfo;
|
||||||
import android.content.pm.PackageInfo;
|
import android.content.pm.PackageInfo;
|
||||||
@ -29,6 +28,7 @@ import android.content.pm.PermissionInfo;
|
|||||||
import android.graphics.drawable.Drawable;
|
import android.graphics.drawable.Drawable;
|
||||||
import android.os.Build;
|
import android.os.Build;
|
||||||
import android.os.Parcel;
|
import android.os.Parcel;
|
||||||
|
import android.support.v7.app.AlertDialog;
|
||||||
import android.text.SpannableStringBuilder;
|
import android.text.SpannableStringBuilder;
|
||||||
import android.text.TextUtils;
|
import android.text.TextUtils;
|
||||||
import android.util.AttributeSet;
|
import android.util.AttributeSet;
|
||||||
|
@ -20,7 +20,6 @@
|
|||||||
package org.fdroid.fdroid.installer;
|
package org.fdroid.fdroid.installer;
|
||||||
|
|
||||||
import android.app.Activity;
|
import android.app.Activity;
|
||||||
import android.app.AlertDialog;
|
|
||||||
import android.app.Notification;
|
import android.app.Notification;
|
||||||
import android.app.NotificationManager;
|
import android.app.NotificationManager;
|
||||||
import android.app.PendingIntent;
|
import android.app.PendingIntent;
|
||||||
@ -32,6 +31,7 @@ import android.os.AsyncTask;
|
|||||||
import android.os.Bundle;
|
import android.os.Bundle;
|
||||||
import android.support.v4.app.FragmentActivity;
|
import android.support.v4.app.FragmentActivity;
|
||||||
import android.support.v4.app.NotificationCompat;
|
import android.support.v4.app.NotificationCompat;
|
||||||
|
import android.support.v7.app.AlertDialog;
|
||||||
import android.text.Html;
|
import android.text.Html;
|
||||||
import android.util.Log;
|
import android.util.Log;
|
||||||
import android.view.ContextThemeWrapper;
|
import android.view.ContextThemeWrapper;
|
||||||
|
@ -21,7 +21,6 @@
|
|||||||
package org.fdroid.fdroid.installer;
|
package org.fdroid.fdroid.installer;
|
||||||
|
|
||||||
import android.app.Activity;
|
import android.app.Activity;
|
||||||
import android.app.AlertDialog;
|
|
||||||
import android.content.DialogInterface;
|
import android.content.DialogInterface;
|
||||||
import android.content.Intent;
|
import android.content.Intent;
|
||||||
import android.content.pm.ApplicationInfo;
|
import android.content.pm.ApplicationInfo;
|
||||||
@ -30,6 +29,7 @@ import android.content.pm.IPackageInstallObserver;
|
|||||||
import android.content.pm.PackageManager;
|
import android.content.pm.PackageManager;
|
||||||
import android.net.Uri;
|
import android.net.Uri;
|
||||||
import android.os.RemoteException;
|
import android.os.RemoteException;
|
||||||
|
import android.support.v7.app.AlertDialog;
|
||||||
import android.util.Log;
|
import android.util.Log;
|
||||||
|
|
||||||
import org.fdroid.fdroid.R;
|
import org.fdroid.fdroid.R;
|
||||||
|
@ -19,7 +19,6 @@
|
|||||||
|
|
||||||
package org.fdroid.fdroid.views;
|
package org.fdroid.fdroid.views;
|
||||||
|
|
||||||
import android.app.AlertDialog;
|
|
||||||
import android.content.ContentValues;
|
import android.content.ContentValues;
|
||||||
import android.content.Context;
|
import android.content.Context;
|
||||||
import android.content.DialogInterface;
|
import android.content.DialogInterface;
|
||||||
@ -42,6 +41,7 @@ import android.support.v4.app.NavUtils;
|
|||||||
import android.support.v4.content.CursorLoader;
|
import android.support.v4.content.CursorLoader;
|
||||||
import android.support.v4.content.Loader;
|
import android.support.v4.content.Loader;
|
||||||
import android.support.v7.app.ActionBarActivity;
|
import android.support.v7.app.ActionBarActivity;
|
||||||
|
import android.support.v7.app.AlertDialog;
|
||||||
import android.text.Editable;
|
import android.text.Editable;
|
||||||
import android.text.TextUtils;
|
import android.text.TextUtils;
|
||||||
import android.text.TextWatcher;
|
import android.text.TextWatcher;
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
package org.fdroid.fdroid.views.fragments;
|
package org.fdroid.fdroid.views.fragments;
|
||||||
|
|
||||||
import android.app.AlertDialog;
|
|
||||||
import android.content.DialogInterface;
|
import android.content.DialogInterface;
|
||||||
import android.content.Intent;
|
import android.content.Intent;
|
||||||
import android.content.SharedPreferences;
|
import android.content.SharedPreferences;
|
||||||
@ -11,6 +10,7 @@ import android.preference.EditTextPreference;
|
|||||||
import android.preference.ListPreference;
|
import android.preference.ListPreference;
|
||||||
import android.preference.Preference;
|
import android.preference.Preference;
|
||||||
import android.support.v4.preference.PreferenceFragment;
|
import android.support.v4.preference.PreferenceFragment;
|
||||||
|
import android.support.v7.app.AlertDialog;
|
||||||
import android.text.Html;
|
import android.text.Html;
|
||||||
import android.text.TextUtils;
|
import android.text.TextUtils;
|
||||||
|
|
||||||
|
@ -2,7 +2,6 @@ package org.fdroid.fdroid.views.fragments;
|
|||||||
|
|
||||||
import android.annotation.TargetApi;
|
import android.annotation.TargetApi;
|
||||||
import android.app.Activity;
|
import android.app.Activity;
|
||||||
import android.app.AlertDialog;
|
|
||||||
import android.content.ContentValues;
|
import android.content.ContentValues;
|
||||||
import android.content.DialogInterface;
|
import android.content.DialogInterface;
|
||||||
import android.content.Intent;
|
import android.content.Intent;
|
||||||
@ -11,6 +10,7 @@ import android.os.Build;
|
|||||||
import android.os.Bundle;
|
import android.os.Bundle;
|
||||||
import android.support.v4.app.Fragment;
|
import android.support.v4.app.Fragment;
|
||||||
import android.support.v4.view.MenuItemCompat;
|
import android.support.v4.view.MenuItemCompat;
|
||||||
|
import android.support.v7.app.AlertDialog;
|
||||||
import android.text.Editable;
|
import android.text.Editable;
|
||||||
import android.text.TextUtils;
|
import android.text.TextUtils;
|
||||||
import android.text.TextWatcher;
|
import android.text.TextWatcher;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user