bugfix
This commit is contained in:
parent
dbc7ff3b7d
commit
71d24e832b
|
@ -139,7 +139,11 @@
|
|||
<activity
|
||||
android:name=".ui.hs.HiddenServicesActivity"
|
||||
android:label="@string/title_activity_hidden_services"
|
||||
android:theme="@style/DefaultTheme" />
|
||||
android:theme="@style/DefaultTheme" >
|
||||
<meta-data
|
||||
android:name="android.support.PARENT_ACTIVITY"
|
||||
android:value="org.torproject.android.OrbotMainActivity" />
|
||||
</activity>
|
||||
|
||||
<provider
|
||||
android:name=".ui.hs.providers.HSContentProvider"
|
||||
|
|
|
@ -32,6 +32,8 @@ public class HiddenServicesActivity extends AppCompatActivity {
|
|||
HSContentProvider.HiddenService.CREATED_BY_USER
|
||||
};
|
||||
|
||||
private String mWhere = HSContentProvider.HiddenService.CREATED_BY_USER + "=1";
|
||||
|
||||
@Override
|
||||
protected void onCreate(Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
|
@ -55,7 +57,7 @@ public class HiddenServicesActivity extends AppCompatActivity {
|
|||
mAdapter = new OnionListAdapter(
|
||||
this,
|
||||
mCR.query(
|
||||
HSContentProvider.CONTENT_URI, mProjection, "created_by_user=1", null, null
|
||||
HSContentProvider.CONTENT_URI, mProjection, mWhere, null, null
|
||||
),
|
||||
0
|
||||
);
|
||||
|
@ -93,7 +95,7 @@ public class HiddenServicesActivity extends AppCompatActivity {
|
|||
@Override
|
||||
public void onChange(boolean selfChange) {
|
||||
mAdapter.changeCursor(mCR.query(
|
||||
HSContentProvider.CONTENT_URI, mProjection, null, null, null
|
||||
HSContentProvider.CONTENT_URI, mProjection, mWhere, null, null
|
||||
));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue